Graphviz  2.35.20130930.0449
Macros | Functions
gvc.c File Reference
#include "gvc.h"
#include "const.h"
#include "gvcjob.h"
#include "gvcint.h"
#include "gvcproc.h"
#include "gvconfig.h"
#include "gvio.h"
Include dependency graph for gvc.c:

Go to the source code of this file.

Macros

#define OUTPUT_DATA_INITIAL_ALLOCATION   4096
 

Functions

GVC_tgvContext (void)
 
GVC_tgvContextPlugins (const lt_symlist_t *builtins, int demand_loading)
 
int gvLayout (GVC_t *gvc, graph_t *g, const char *engine)
 
int gvRender (GVC_t *gvc, graph_t *g, const char *format, FILE *out)
 
int gvRenderFilename (GVC_t *gvc, graph_t *g, const char *format, const char *filename)
 
int gvRenderContext (GVC_t *gvc, graph_t *g, const char *format, void *context)
 
int gvRenderData (GVC_t *gvc, graph_t *g, const char *format, char **result, unsigned int *length)
 
void gvFreeRenderData (char *data)
 
void gvAddLibrary (GVC_t *gvc, gvplugin_library_t *lib)
 
char ** gvcInfo (GVC_t *gvc)
 
char * gvcVersion (GVC_t *gvc)
 
char * gvcBuildDate (GVC_t *gvc)
 

Macro Definition Documentation

#define OUTPUT_DATA_INITIAL_ALLOCATION   4096

Referenced by gvRenderData().

Function Documentation

void gvAddLibrary ( GVC_t gvc,
gvplugin_library_t lib 
)

Add a library from your user application

Parameters
gvcGraphviz context to add library to
liblibrary to add

Definition at line 264 of file gvc.c.

References gvconfig_plugin_install_from_library(), and NULL.

char* gvcBuildDate ( GVC_t gvc)

Definition at line 271 of file gvc.c.

References GVC_s::common, and GVCOMMON_s::info.

char** gvcInfo ( GVC_t gvc)

Definition at line 269 of file gvc.c.

References GVC_s::common, and GVCOMMON_s::info.

GVC_t* gvContext ( void  )

Definition at line 43 of file gvc.c.

References agattr(), aginit, AGNODE, agnodeattr(), FALSE, gvconfig(), gvNEWcontext(), NODENAME_ESC, NULL, and TRUE.

GVC_t* gvContextPlugins ( const lt_symlist_t builtins,
int  demand_loading 
)

Definition at line 59 of file gvc.c.

References agattr(), aginit, AGNODE, agnodeattr(), FALSE, gvconfig(), gvNEWcontext(), NODENAME_ESC, and NULL.

Referenced by main().

char* gvcVersion ( GVC_t gvc)

Definition at line 270 of file gvc.c.

References GVC_s::common, and GVCOMMON_s::info.

void gvFreeRenderData ( char *  data)

Definition at line 259 of file gvc.c.

References free().

int gvLayout ( GVC_t gvc,
graph_t g,
const char *  engine 
)

Definition at line 81 of file gvc.c.

References AGERR, agerr(), agsafeset(), GD_bb, GD_drawing, gvlayout_select(), gvLayoutJobs(), gvplugin_list(), NO_SUPPORT, and ROUND.

Referenced by layout().

int gvRender ( GVC_t gvc,
graph_t g,
const char *  format,
FILE *  out 
)
int gvRenderContext ( GVC_t gvc,
graph_t g,
const char *  format,
void *  context 
)
int gvRenderData ( GVC_t gvc,
graph_t g,
const char *  format,
char **  result,
unsigned int *  length 
)
int gvRenderFilename ( GVC_t gvc,
graph_t g,
const char *  format,
const char *  filename 
)