Graphviz  2.41.20171026.1811
Data Structures | Macros | Functions | Variables
gvusershape.c File Reference
#include "config.h"
#include <stddef.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <regex.h>
#include "types.h"
#include "logic.h"
#include "memory.h"
#include "agxbuf.h"
#include "utils.h"
#include "gvplugin_loadimage.h"
Include dependency graph for gvusershape.c:

Go to the source code of this file.

Data Structures

struct  knowntype_t
 
struct  stream_t
 

Macros

#define _BLD_gvc   1
 
#define HDRLEN   20
 
#define PNG_MAGIC   "\x89PNG\x0D\x0A\x1A\x0A"
 
#define PS_MAGIC   "%!PS-Adobe-"
 
#define BMP_MAGIC   "BM"
 
#define GIF_MAGIC   "GIF8"
 
#define JPEG_MAGIC   "\xFF\xD8\xFF\xE0"
 
#define PDF_MAGIC   "%PDF-"
 
#define EPS_MAGIC   "\xC5\xD0\xD3\xC6"
 
#define XML_MAGIC   "<?xml"
 
#define SVG_MAGIC   "<svg"
 
#define RIFF_MAGIC   "RIFF"
 
#define WEBP_MAGIC   "WEBP"
 
#define ICO_MAGIC   "\x00\x00\x01\x00"
 
#define RE_NMATCH   4
 
#define KEY   "/MediaBox"
 
#define strc(x)   (*(x->s)?*(x->s):nxtc(x))
 
#define stradv(x)   (x->s++)
 
#define MAX_USERSHAPE_FILES_OPEN   50
 

Functions

shape_descfind_user_shape (const char *)
 
usershape_tgvusershape_find (const char *name)
 
boolean gvusershape_file_access (usershape_t *us)
 
void gvusershape_file_release (usershape_t *us)
 
point gvusershape_size_dpi (usershape_t *us, pointf dpi)
 
point gvusershape_size (graph_t *g, char *name)
 

Variables

char * Gvimagepath
 
char * HTTPServerEnVar
 

Macro Definition Documentation

#define _BLD_gvc   1

Definition at line 37 of file gvusershape.c.

#define BMP_MAGIC   "BM"

Definition at line 58 of file gvusershape.c.

#define EPS_MAGIC   "\xC5\xD0\xD3\xC6"

Definition at line 62 of file gvusershape.c.

#define GIF_MAGIC   "GIF8"

Definition at line 59 of file gvusershape.c.

#define HDRLEN   20

Definition at line 54 of file gvusershape.c.

#define ICO_MAGIC   "\x00\x00\x01\x00"

Definition at line 68 of file gvusershape.c.

#define JPEG_MAGIC   "\xFF\xD8\xFF\xE0"

Definition at line 60 of file gvusershape.c.

#define KEY   "/MediaBox"

Definition at line 437 of file gvusershape.c.

#define MAX_USERSHAPE_FILES_OPEN   50

Definition at line 583 of file gvusershape.c.

Referenced by gvusershape_file_access().

#define PDF_MAGIC   "%PDF-"

Definition at line 61 of file gvusershape.c.

#define PNG_MAGIC   "\x89PNG\x0D\x0A\x1A\x0A"

Definition at line 56 of file gvusershape.c.

#define PS_MAGIC   "%!PS-Adobe-"

Definition at line 57 of file gvusershape.c.

#define RE_NMATCH   4
#define RIFF_MAGIC   "RIFF"

Definition at line 65 of file gvusershape.c.

#define stradv (   x)    (x->s++)

Definition at line 457 of file gvusershape.c.

#define strc (   x)    (*(x->s)?*(x->s):nxtc(x))

Definition at line 456 of file gvusershape.c.

#define SVG_MAGIC   "<svg"

Definition at line 64 of file gvusershape.c.

#define WEBP_MAGIC   "WEBP"

Definition at line 66 of file gvusershape.c.

#define XML_MAGIC   "<?xml"

Definition at line 63 of file gvusershape.c.

Function Documentation

shape_desc* find_user_shape ( const char *  )

Definition at line 3803 of file shapes.c.

References NULL, and streq.

boolean gvusershape_file_access ( usershape_t us)
void gvusershape_file_release ( usershape_t us)

Definition at line 618 of file gvusershape.c.

References usershape_s::f, usershape_s::nocache, and NULL.

usershape_t* gvusershape_find ( const char *  name)

Definition at line 569 of file gvusershape.c.

References assert, dtmatch, and NULL.

point gvusershape_size ( graph_t g,
char *  name 
)
point gvusershape_size_dpi ( usershape_t us,
pointf  dpi 
)

Variable Documentation

char* Gvimagepath

Definition at line 62 of file globals.h.

Referenced by graph_init(), gvusershape_size(), and safefile().

char* HTTPServerEnVar

Definition at line 67 of file globals.h.

Referenced by dotneato_args_initialize(), graph_init(), gvusershape_size(), and safefile().