00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef GVC_H
00018 #define GVC_H
00019
00020 #include "types.h"
00021 #include "graph.h"
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00027 #define dotneato_initialize dotneato_initialize_DEPRECATED_BY_gvParseArgs
00028 #define parse_args parse_args_DEPRECATED_BY_gvParseArgs
00029
00030 #define dot_layout dot_layout_DEPRECATED_BY_gvLayout
00031 #define neato_layout dot_layout_DEPRECATED_BY_gvLayout
00032 #define fdp_layout dot_layout_DEPRECATED_BY_gvLayout
00033 #define circo_layout dot_layout_DEPRECATED_BY_gvLayout
00034 #define twopi_layout dot_layout_DEPRECATED_BY_gvLayout
00035 #define gvBindContext gvBindContext_DEPRECATED_BY_gvLayout
00036 #define gvlayout_layout gvlayout_layout_DEPRECATED_BY_gvLayoutJobs
00037
00038 #define emit_jobs emit_jobs_DEPRECATED_BY_gvRenderJobs
00039 #define dotneato_write dotneato_write_DEPRECATED_BY_gvRenderJobs
00040
00041 #define dot_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00042 #define neato_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00043 #define fdp_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00044 #define circo_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00045 #define twopi_cleanup dot_cleanup_DEPRECATED_BY_gvFreeLayout
00046 #define gvlayout_cleanup gvlayout_cleanup_DEPRECATED_BY_gvFreeLayout
00047
00048 #define gvCleanup gvCleanup_DEPRECATED_BY_gvFreeContext
00049 #define dotneato_terminate dotneato_terminate_DEPRECATED_BY_gvFreeContext
00050 #define next_input_graph next_input_graph_DEPRECATED_BY_gvNextInputGraph
00051
00052
00053
00054 extern void gvToggle(int);
00055
00056
00057 extern GVC_t *gvNEWcontext(char **info, char *user);
00058 extern char *gvUsername(void);
00059
00060
00061
00062 extern GVC_t *gvContext(void);
00063
00064
00065 extern char **gvcInfo(GVC_t*);
00066 extern char *gvcVersion(GVC_t*);
00067 extern char *gvcBuildDate(GVC_t*);
00068 extern char *gvcUsername(GVC_t*);
00069
00070
00071 extern int gvParseArgs(GVC_t *gvc, int argc, char **argv);
00072 extern graph_t *gvNextInputGraph(GVC_t *gvc);
00073
00074
00075 extern int gvLayout(GVC_t *gvc, graph_t *g, char *engine);
00076
00077
00078 extern int gvLayoutJobs(GVC_t *gvc, graph_t *g);
00079
00080
00081 extern void attach_attrs(graph_t *g);
00082
00083
00084 extern char *agstrdup_html(char *s);
00085 extern int aghtmlstr(char *s);
00086
00087
00088 extern int gvRender(GVC_t *gvc, graph_t *g, char *format, FILE *out);
00089
00090
00091 extern int gvRenderFilename(GVC_t *gvc, graph_t *g, char *format, char *filename);
00092
00093
00094 extern int gvRenderData(GVC_t *gvc, graph_t *g, char *format, char **result, unsigned int *length);
00095
00096
00097 extern int gvRenderJobs(GVC_t *gvc, graph_t *g);
00098
00099
00100 extern int gvFreeLayout(GVC_t *gvc, graph_t *g);
00101
00102
00103 extern int gvFreeContext(GVC_t *gvc);
00104
00105 #ifdef __cplusplus
00106 }
00107 #endif
00108 #endif