14 #ifndef ATT_GRAPHPVT_H
15 #define ATT_GRAPHPVT_H 1
24 # define CGHDR_API __declspec(dllexport)
26 # define CGHDR_API __declspec(dllimport)
29 # define CGHDR_API extern
37 #include <sys/types.h>
52 #define streq(s,t) ((*s == *t) && !strcmp((s),(t)))
54 #define NOTUSED(var) (void) var
56 #define NILgraph NIL(Agraph_t*)
57 #define NILnode NIL(Agnode_t*)
58 #define NILedge NIL(Agedge_t*)
59 #define NILsym NIL(Agsym_t*)
60 #define NILstr NIL(char*)
64 #define LOCALNAMEPREFIX '%'
66 #define AGDISC(g,d) ((g)->clos->disc.d)
67 #define AGCLOS(g,d) ((g)->clos->state.d)
68 #define AGNEW(g,t) ((t*)(agalloc(g,sizeof(t))))
70 #define ISALNUM(c) ((isalnum(c)) || ((c) == '_') || (!isascii(c)))
135 IDTYPE *result,
int allocflag);
160 #define CB_INITIALIZE 100
161 #define CB_UPDATE 101
162 #define CB_DELETION 102
void agnodeattr_init(Agraph_t *g, Agnode_t *n)
void aginternalmapinsert(Agraph_t *g, int objtype, char *str, IDTYPE result)
int(* Dtcompar_f)(Dt_t *, void *, void *, Dtdisc_t *)
void agdtdisc(Agraph_t *g, Dict_t *dict, Dtdisc_t *disc)
void agdelcb(Agraph_t *g, void *obj, Agcbstack_t *disc)
void agraphattr_init(Agraph_t *g)
void agmarkhtmlstr(char *s)
int agdtclose(Agraph_t *g, Dict_t *dict)
Dtdisc_t Ag_mainedge_seq_disc
void agrecclose(Agobj_t *obj)
Dtdisc_t Ag_subgraph_id_disc
int agmapnametoid(Agraph_t *g, int objtype, char *str, IDTYPE *result, int allocflag)
Dtdisc_t Ag_subedge_id_disc
Agraph_t * agopen1(Agraph_t *g)
void agregister(Agraph_t *g, int objtype, void *obj)
void aglexinit(Agdisc_t *disc, void *ifile)
Dtdisc_t Ag_subnode_seq_disc
Dtcompar_f agdictorder(Agraph_t *, Dict_t *, Dtcompar_f)
int agstrclose(Agraph_t *g)
Dtdisc_t Ag_subnode_id_disc
void agsyspushdisc(Agraph_t *g, Agcbdisc_t *cb, void *state, int stack)
uint64_t agnextseq(Agraph_t *g, int objtype)
Dtdisc_t Ag_mainedge_id_disc
Agdatadict_t * agdatadict(Agraph_t *g, int cflag)
void agedgeattr_init(Agraph_t *g, Agedge_t *e)
void agrecord_callback(Agraph_t *g, Agobj_t *obj, int kind, Agsym_t *optsym)
void aginitcb(Agraph_t *g, void *obj, Agcbstack_t *disc)
char * aginternalmapprint(Agraph_t *g, int objtype, IDTYPE id)
int agnamecmpf(Dict_t *d, void *, void *, Dtdisc_t *disc)
void agedgeattr_delete(Agedge_t *e)
char * agprintid(Agobj_t *obj)
long agdtdelete(Agraph_t *g, Dict_t *dict, void *obj)
void agdelnodeimage(Agraph_t *g, Agnode_t *node, void *ignored)
void agupdcb(Agraph_t *g, void *obj, Agsym_t *sym, Agcbstack_t *disc)
void agdeledgeimage(Agraph_t *g, Agedge_t *edge, void *ignored)
int aginternalmaplookup(Agraph_t *g, int objtype, char *str, IDTYPE *result)
void aginternalmapclose(Agraph_t *g)
EXTERN Agraph_t * Ag_G_global
void agmethod_delete(Agraph_t *g, void *obj)
void agfreeid(Agraph_t *g, int objtype, IDTYPE id)
int aginternalmapdelete(Agraph_t *g, int objtype, IDTYPE id)
Dtdisc_t Ag_subedge_seq_disc
void agmethod_init(Agraph_t *g, void *obj)
void * agrebind0(Agraph_t *g, void *obj)
void agedgesetop(Agraph_t *g, Agedge_t *e, int insertion)
Agattr_t * agattrrec(void *obj)
Dict_t * agdtopen(Agraph_t *g, Dtdisc_t *disc, Dtmethod_t *method)
int agallocid(Agraph_t *g, int objtype, IDTYPE request)
CGHDR_API int agrename(Agobj_t *obj, char *newname)
int agedgecmpf(Dict_t *d, void *arg_e0, void *arg_e1, Dtdisc_t *disc)
void agset_node_disc(Agraph_t *g, Dtdisc_t *disc)
Agnode_t * node(Agraph_t *g, char *name)
void * agdictobjmem(Dict_t *dict, void *p, size_t size, Dtdisc_t *disc)
void agmethod_upd(Agraph_t *g, void *obj, Agsym_t *sym)
void agnodeattr_delete(Agnode_t *n)
Agnode_t * agfindnode_by_id(Agraph_t *g, IDTYPE id)
int agsyspopdisc(Agraph_t *g, Agcbdisc_t *cb, int stack)
int agapply(Agraph_t *g, Agobj_t *obj, agobjfn_t fn, void *arg, int preorder)
void agdictobjfree(Dict_t *dict, void *p, Dtdisc_t *disc)
void(* agobjfn_t)(Agraph_t *g, Agobj_t *obj, void *arg)
int agraphattr_delete(Agraph_t *g)
Agedge_t * edge(Agraph_t *g, Agnode_t *t, Agnode_t *h)