Graphviz  2.41.20170921.2350
Data Structures | Macros | Typedefs | Enumerations | Variables
gvrender_core_json.c File Reference
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "macros.h"
#include "const.h"
#include "xdot.h"
#include "gvplugin_render.h"
#include "gvplugin_device.h"
#include "agxbuf.h"
#include "utils.h"
#include "gvc.h"
#include "gvio.h"
#include "gvcint.h"
Include dependency graph for gvrender_core_json.c:

Go to the source code of this file.

Data Structures

struct  state_t
 
struct  gvid_t
 
struct  intm
 

Macros

#define ID   "id"
 
#define ND_gid(n)   (((gvid_t*)aggetrec(n, ID, FALSE))->id)
 
#define ED_gid(n)   (((gvid_t*)aggetrec(n, ID, FALSE))->id)
 
#define GD_gid(n)   (((gvid_t*)aggetrec(n, ID, FALSE))->id)
 
#define IS_CLUSTER(s)   (!strncmp(agnameof(s), "cluster", 7))
 
#define LOCALNAMEPREFIX   '%'
 
#define NEW(t)   (t*)calloc(1,sizeof(t))
 

Typedefs

typedef int(* putstrfn )(void *chan, const char *str)
 
typedef int(* flushfn )(void *chan)
 

Enumerations

enum  format_type {
  FORMAT_PNG_XDOT, FORMAT_GIF_XDOT, FORMAT_JPEG_XDOT, FORMAT_SVG_XDOT,
  FORMAT_PS_XDOT, FORMAT_PNG_DOT, FORMAT_GIF_DOT, FORMAT_JPEG_DOT,
  FORMAT_SVG_DOT, FORMAT_PS_DOT, FORMAT_PNG_MAP, FORMAT_GIF_MAP,
  FORMAT_JPEG_MAP, FORMAT_SVG_MAP, FORMAT_PS_MAP, FORMAT_PNG_SVG,
  FORMAT_GIF_SVG, FORMAT_JPEG_SVG, FORMAT_SVG_SVG, FORMAT_PNG_FIG,
  FORMAT_GIF_FIG, FORMAT_JPEG_FIG, FORMAT_PNG_VRML, FORMAT_GIF_VRML,
  FORMAT_JPEG_VRML, FORMAT_PS_PS, FORMAT_PSLIB_PS, FORMAT_PNG_VML,
  FORMAT_GIF_VML, FORMAT_JPEG_VML, FORMAT_GIF_TK, FORMAT_DIA,
  FORMAT_DOT, FORMAT_CANON, FORMAT_PLAIN, FORMAT_PLAIN_EXT,
  FORMAT_XDOT, FORMAT_XDOT12, FORMAT_XDOT14, FORMAT_FIG,
  FORMAT_HPGL, FORMAT_JSON, FORMAT_JSON0, FORMAT_DOT_JSON,
  FORMAT_XDOT_JSON, FORMAT_IMAP, FORMAT_ISMAP, FORMAT_CMAP,
  FORMAT_CMAPX, FORMAT_MIF, FORMAT_MP, FORMAT_PIC,
  FORMAT_POV, FORMAT_PS, FORMAT_PS2, FORMAT_EPS,
  FORMAT_SVG, FORMAT_SVGZ, FORMAT_TK, FORMAT_VML,
  FORMAT_VMLZ, FORMAT_VTX, FORMAT_PNG_GD, FORMAT_GIF_GD,
  FORMAT_JPG_GD, FORMAT_GD_GD, FORMAT_GD2_GD, FORMAT_XPM_GD,
  FORMAT_WBMP_GD, FORMAT_XBM_GD, FORMAT_PNG_PS, FORMAT_GIF_PS,
  FORMAT_JPG_PS, FORMAT_GD_PS, FORMAT_GD2_PS, FORMAT_XPM_PS,
  FORMAT_WBMP_PS, FORMAT_XBM_PS, FORMAT_PNG_CAIRO, FORMAT_GIF_CAIRO,
  FORMAT_JPG_CAIRO, FORMAT_GD_CAIRO, FORMAT_GD2_CAIRO, FORMAT_XPM_CAIRO,
  FORMAT_WBMP_CAIRO, FORMAT_XBM_CAIRO, FORMAT_GIF, FORMAT_JPEG,
  FORMAT_PNG, FORMAT_WBMP, FORMAT_GD, FORMAT_GD2,
  FORMAT_XBM, FORMAT_PS_PS, FORMAT_PS, FORMAT_PS2,
  FORMAT_EPS, FORMAT_PNG_CAIRO, FORMAT_PNG_PS, FORMAT_CAIRO,
  FORMAT_PNG, FORMAT_PS, FORMAT_PDF, FORMAT_SVG
}
 

Variables

gvrender_engine_t json_engine
 
gvrender_features_t render_features_json1
 
gvrender_features_t render_features_json
 
gvdevice_features_t device_features_json_nop
 
gvdevice_features_t device_features_json
 
gvplugin_installed_t gvrender_json_types []
 
gvplugin_installed_t gvdevice_json_types []
 

Macro Definition Documentation

#define ED_gid (   n)    (((gvid_t*)aggetrec(n, ID, FALSE))->id)

Definition at line 59 of file gvrender_core_json.c.

#define GD_gid (   n)    (((gvid_t*)aggetrec(n, ID, FALSE))->id)

Definition at line 60 of file gvrender_core_json.c.

#define ID   "id"

Definition at line 57 of file gvrender_core_json.c.

Referenced by SpringSmoother_new(), and StressMajorizationSmoother2_new().

#define IS_CLUSTER (   s)    (!strncmp(agnameof(s), "cluster", 7))

Definition at line 62 of file gvrender_core_json.c.

#define LOCALNAMEPREFIX   '%'

Definition at line 77 of file gvrender_core_json.c.

#define ND_gid (   n)    (((gvid_t*)aggetrec(n, ID, FALSE))->id)

Definition at line 58 of file gvrender_core_json.c.

#define NEW (   t)    (t*)calloc(1,sizeof(t))

Definition at line 618 of file gvrender_core_json.c.

Typedef Documentation

typedef int(* flushfn)(void *chan)

Definition at line 714 of file gvrender_core_json.c.

typedef int(* putstrfn)(void *chan, const char *str)

Definition at line 713 of file gvrender_core_json.c.

Enumeration Type Documentation

Enumerator
FORMAT_PNG_XDOT 
FORMAT_GIF_XDOT 
FORMAT_JPEG_XDOT 
FORMAT_SVG_XDOT 
FORMAT_PS_XDOT 
FORMAT_PNG_DOT 
FORMAT_GIF_DOT 
FORMAT_JPEG_DOT 
FORMAT_SVG_DOT 
FORMAT_PS_DOT 
FORMAT_PNG_MAP 
FORMAT_GIF_MAP 
FORMAT_JPEG_MAP 
FORMAT_SVG_MAP 
FORMAT_PS_MAP 
FORMAT_PNG_SVG 
FORMAT_GIF_SVG 
FORMAT_JPEG_SVG 
FORMAT_SVG_SVG 
FORMAT_PNG_FIG 
FORMAT_GIF_FIG 
FORMAT_JPEG_FIG 
FORMAT_PNG_VRML 
FORMAT_GIF_VRML 
FORMAT_JPEG_VRML 
FORMAT_PS_PS 
FORMAT_PSLIB_PS 
FORMAT_PNG_VML 
FORMAT_GIF_VML 
FORMAT_JPEG_VML 
FORMAT_GIF_TK 
FORMAT_DIA 
FORMAT_DOT 
FORMAT_CANON 
FORMAT_PLAIN 
FORMAT_PLAIN_EXT 
FORMAT_XDOT 
FORMAT_XDOT12 
FORMAT_XDOT14 
FORMAT_FIG 
FORMAT_HPGL 
FORMAT_JSON 
FORMAT_JSON0 
FORMAT_DOT_JSON 
FORMAT_XDOT_JSON 
FORMAT_IMAP 
FORMAT_ISMAP 
FORMAT_CMAP 
FORMAT_CMAPX 
FORMAT_MIF 
FORMAT_MP 
FORMAT_PIC 
FORMAT_POV 
FORMAT_PS 
FORMAT_PS2 
FORMAT_EPS 
FORMAT_SVG 
FORMAT_SVGZ 
FORMAT_TK 
FORMAT_VML 
FORMAT_VMLZ 
FORMAT_VTX 
FORMAT_PNG_GD 
FORMAT_GIF_GD 
FORMAT_JPG_GD 
FORMAT_GD_GD 
FORMAT_GD2_GD 
FORMAT_XPM_GD 
FORMAT_WBMP_GD 
FORMAT_XBM_GD 
FORMAT_PNG_PS 
FORMAT_GIF_PS 
FORMAT_JPG_PS 
FORMAT_GD_PS 
FORMAT_GD2_PS 
FORMAT_XPM_PS 
FORMAT_WBMP_PS 
FORMAT_XBM_PS 
FORMAT_PNG_CAIRO 
FORMAT_GIF_CAIRO 
FORMAT_JPG_CAIRO 
FORMAT_GD_CAIRO 
FORMAT_GD2_CAIRO 
FORMAT_XPM_CAIRO 
FORMAT_WBMP_CAIRO 
FORMAT_XBM_CAIRO 
FORMAT_GIF 
FORMAT_JPEG 
FORMAT_PNG 
FORMAT_WBMP 
FORMAT_GD 
FORMAT_GD2 
FORMAT_XBM 
FORMAT_PS_PS 
FORMAT_PS 
FORMAT_PS2 
FORMAT_EPS 
FORMAT_PNG_CAIRO 
FORMAT_PNG_PS 
FORMAT_CAIRO 
FORMAT_PNG 
FORMAT_PS 
FORMAT_PDF 
FORMAT_SVG 

Definition at line 38 of file gvrender_core_json.c.

Variable Documentation

gvdevice_features_t device_features_json
Initial value:
= {
0,
{0.,0.},
{0.,0.},
{72.,72.},
}

Definition at line 800 of file gvrender_core_json.c.

gvdevice_features_t device_features_json_nop
Initial value:
= {
{0.,0.},
{0.,0.},
{72.,72.},
}
#define LAYOUT_NOT_REQUIRED
Definition: gvcjob.h:110

Definition at line 793 of file gvrender_core_json.c.

gvplugin_installed_t gvdevice_json_types[]
Initial value:
= {
{FORMAT_JSON, "json:json", 1, NULL, &device_features_json},
{FORMAT_JSON0, "json0:json", 1, NULL, &device_features_json},
{FORMAT_DOT_JSON, "dot_json:json", 1, NULL, &device_features_json_nop},
{FORMAT_XDOT_JSON, "xdot_json:json", 1, NULL, &device_features_json_nop},
{0, NULL, 0, NULL, NULL}
}
gvdevice_features_t device_features_json
#define NULL
Definition: logic.h:39
gvdevice_features_t device_features_json_nop

Definition at line 815 of file gvrender_core_json.c.

gvplugin_installed_t gvrender_json_types[]
Initial value:
= {
{0, NULL, 0, NULL, NULL}
}
gvrender_engine_t json_engine
#define NULL
Definition: logic.h:39
gvrender_features_t render_features_json

Definition at line 807 of file gvrender_core_json.c.

gvrender_engine_t json_engine

Definition at line 741 of file gvrender_core_json.c.

gvrender_features_t render_features_json
Initial value:
= {
0.,
NULL,
0,
}
#define GVRENDER_DOES_TRANSFORM
Definition: gvcjob.h:97
#define GVRENDER_DOES_TARGETS
Definition: gvcjob.h:107
#define GVRENDER_DOES_TOOLTIPS
Definition: gvcjob.h:106
#define GVRENDER_DOES_MAPS
Definition: gvcjob.h:100
#define NULL
Definition: logic.h:39

Definition at line 782 of file gvrender_core_json.c.

gvrender_features_t render_features_json1
Initial value:
= {
0.,
NULL,
0,
}
#define GVRENDER_DOES_TRANSFORM
Definition: gvcjob.h:97
#define NULL
Definition: logic.h:39

Definition at line 774 of file gvrender_core_json.c.