| 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 EDGELIST_H |
| 19 | #define EDGELIST_H |
| 20 | |
| 21 | #include <render.h> |
| 22 | |
| 23 | typedef struct edgelistitem { |
| 24 | Dtlink_t link; |
| 25 | Agedge_t *edge; |
| 26 | } edgelistitem; |
| 27 | |
| 28 | typedef Dt_t edgelist; |
| 29 | |
| 30 | extern edgelist *init_edgelist(void); |
| 31 | extern void add_edge(edgelist * list, Agedge_t * e); |
| 32 | extern void remove_edge(edgelist * list, Agedge_t * e); |
| 33 | extern void free_edgelist(edgelist * list); |
| 34 | extern int size_edgelist(edgelist * list); |
| 35 | #ifdef DEBUG |
| 36 | extern void print_edge(edgelist *); |
| 37 | #endif |
| 38 | |
| 39 | #endif |
| 40 | |
| 41 | #ifdef __cplusplus |
| 42 | } |
| 43 | #endif |
| 44 | |