* call.c (z_candidate::template_decl): Rename from template.
[official-gcc.git] / libbanshee / engine / dot.h
blob7e221e6814578ba50e4d3beed8c0ed19f8e66e31
1 /*
2 * Copyright (c) 2000-2001
3 * The Regents of the University of California. All rights reserved.
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. Neither the name of the University nor the names of its contributors
14 * may be used to endorse or promote products derived from this software
15 * without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
31 #ifndef DOT_H
32 #define DOT_H
34 #include <stdio.h>
35 #include "linkage.h"
36 #include "bool.h"
38 EXTERN_C_BEGIN
40 typedef int dot_node;
42 typedef struct
44 enum n_attrs
46 n_color,
47 n_fontcolor,
48 n_fontname,
49 n_fontsize,
50 n_height,
51 n_width,
52 n_label,
53 n_layer,
54 n_shape,
55 n_shapefile,
56 n_style
57 } name;
58 const char *value;
59 } node_attr;
61 typedef struct
63 enum e_attrs
65 e_color,
66 e_decorate,
67 e_dir,
68 e_fontcolor,
69 e_fontname,
70 e_fontsize,
71 e_id,
72 e_label,
73 e_layer,
74 e_minlen,
75 e_style,
76 e_weight
77 } name;
78 const char *value;
79 } edge_attr;
81 typedef struct
83 enum g_attrs
85 g_center,
86 g_clusterrank,
87 g_color,
88 g_concentrate,
89 g_fontcolor,
90 g_fontname,
91 g_fontsize,
92 g_label,
93 g_layerseq,
94 g_margin,
95 g_mclimit,
96 g_nodesep,
97 g_nslimit,
98 g_ordering,
99 g_orientation,
100 g_page,
101 g_rank,
102 g_rankdir,
103 g_ranksep,
104 g_ratio,
105 g_size
106 } name;
107 const char *value;
108 } graph_attr;
110 void dot_start(FILE *to,const char *name,bool directed,bool strict);
112 void dot_global_graph_style(graph_attr *attrs,int n);
113 void dot_global_edge_style(edge_attr *attrs,int n);
114 void dot_global_node_style(node_attr *attrs,int n);
116 dot_node dot_get_node(char *label) deletes;
117 void dot_node_style(dot_node node,node_attr *attrs,int n);
119 void dot_plain_edge(dot_node from, dot_node to);
120 void dot_styled_edge(dot_node from, dot_node to, edge_attr *attrs,int n);
122 void dot_end(void) deletes;
124 EXTERN_C_END
126 #endif /* DOT_H */