Debian Codegraph @

lib/circogen/nodelist.h

raw
1 /*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11 #pragma once
12
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <render.h>
18 #include <stddef.h>
19 #include <util/list.h>
20
21 typedef LIST(node_t *) nodelist_t;
22
23 /// Add node after one.
24 extern void appendNodelist(nodelist_t*, size_t, Agnode_t *n);
25
26 /// Make np new front of list, with current last hooked to current first.
27 extern void realignNodelist(nodelist_t *list, size_t np);
28
29 /// Remove cn. Then, insert cn before neighbor if pos == 0 and after
30 /// neighbor otherwise.
31 extern void insertNodelist(nodelist_t *, Agnode_t *, Agnode_t *, int);
32
33 /// Create l1 @ (rev l2) Destroys and frees l2.
34 extern void reverseAppend(nodelist_t *, nodelist_t *);
35
36 #ifdef DEBUG
37 extern void printNodelist(nodelist_t * list);
38 #endif
39
40 #ifdef __cplusplus
41 }
42 #endif