1 | /* $Id$ $Revision$ */ |
2 | /* vim:set shiftwidth=4 ts=8: */ |
3 | |
4 | /************************************************************************* |
5 | * Copyright (c) 2011 AT&T Intellectual Property |
6 | * All rights reserved. This program and the accompanying materials |
7 | * are made available under the terms of the Eclipse Public License v1.0 |
8 | * which accompanies this distribution, and is available at |
9 | * http://www.eclipse.org/legal/epl-v10.html |
10 | * |
11 | * Contributors: See CVS logs. Details at http://www.graphviz.org/ |
12 | *************************************************************************/ |
13 | |
14 | #ifdef __cplusplus |
15 | extern "C" { |
16 | #endif |
17 | |
18 | #ifndef NODESET_H |
19 | #define NODESET_H |
20 | |
21 | #include <render.h> |
22 | |
23 | typedef struct { |
24 | Dtlink_t link; |
25 | Agnode_t *np; |
26 | } nsitem_t; |
27 | |
28 | typedef Dt_t nodeset_t; |
29 | |
30 | extern nodeset_t *mkNodeset(void); |
31 | extern void freeNodeset(nodeset_t *); |
32 | extern void clearNodeset(nodeset_t *); |
33 | extern void insertNodeset(nodeset_t * ns, Agnode_t * n); |
34 | extern void removeNodeset(nodeset_t *, Agnode_t * n); |
35 | extern int sizeNodeset(nodeset_t * ns); |
36 | |
37 | #ifdef DEBUG |
38 | extern void printNodeset(nodeset_t *); |
39 | #endif |
40 | |
41 | #endif |
42 | |
43 | #ifdef __cplusplus |
44 | } |
45 | #endif |
46 | |