Graphviz  2.31.20130524.0447
Defines | Functions
lib/gvc/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 <stdlib.h>
Include dependency graph for gvc.c:

Go to the source code of this file.

Defines

#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 gvAddLibrary (GVC_t *gvc, gvplugin_library_t *lib)
char ** gvcInfo (GVC_t *gvc)
char * gvcVersion (GVC_t *gvc)
char * gvcBuildDate (GVC_t *gvc)

Define 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 256 of file gvc.c.

References gvconfig_plugin_install_from_library(), and NULL.

char* gvcBuildDate ( GVC_t gvc)

Definition at line 263 of file gvc.c.

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

char** gvcInfo ( GVC_t gvc)

Definition at line 261 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 aginit, agnodeattr, NULL, NODENAME_ESC, agattr(), AGNODE, gvNEWcontext(), TRUE, gvconfig(), and FALSE.

GVC_t* gvContextPlugins ( const lt_symlist_t builtins,
int  demand_loading 
)

Definition at line 59 of file gvc.c.

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

Referenced by main().

char* gvcVersion ( GVC_t gvc)

Definition at line 262 of file gvc.c.

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

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

Definition at line 81 of file gvc.c.

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

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 
)