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 | #ifndef PATCHWORK_H |
15 | #define PATCHWORK_H |
16 | |
17 | #include "render.h" |
18 | #include "fdp.h" |
19 | |
20 | #ifdef __cplusplus |
21 | extern "C" { |
22 | #endif |
23 | |
24 | typedef struct { |
25 | graph_t *parent; |
26 | } rdata; |
27 | |
28 | #define RDATA(n) ((rdata*)(ND_alg(n))) |
29 | #define SPARENT(n) (RDATA(n)->parent) |
30 | |
31 | extern void patchwork_layout(Agraph_t * g); |
32 | extern void patchwork_cleanup(Agraph_t * g); |
33 | extern void patchworkLayout(Agraph_t *g); |
34 | |
35 | #ifdef __cplusplus |
36 | } |
37 | #endif |
38 | #endif |
39 | |