Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
tcldot-id.c File Reference
#include <stdint.h>
#include <util/alloc.h>
#include <util/unreachable.h>
#include "tcldot.h"
Include dependency graph for tcldot-id.c:

Go to the source code of this file.

Functions

static void * myiddisc_open (Agraph_t *g, Agdisc_t *disc)
 
static long myiddisc_map (void *state, int objtype, char *str, uint64_t *id, int createflag)
 
static long myiddisc_alloc (void *state, int objtype, uint64_t request_id)
 
static void myiddisc_free (void *state, int objtype, uint64_t id)
 
static char * myiddisc_print (void *state, int objtype, uint64_t id)
 
static void myiddisc_idregister (void *state, int objtype, void *obj)
 

Variables

Agiddisc_t myiddisc
 

Function Documentation

◆ myiddisc_alloc()

static long myiddisc_alloc ( void *  state,
int  objtype,
uint64_t  request_id 
)
static

Definition at line 47 of file tcldot-id.c.

◆ myiddisc_free()

static void myiddisc_free ( void *  state,
int  objtype,
uint64_t  id 
)
static

Definition at line 53 of file tcldot-id.c.

References agstrfree(), and gctx_t::g.

Here is the call graph for this function:

◆ myiddisc_idregister()

static void myiddisc_idregister ( void *  state,
int  objtype,
void *  obj 
)
static

Definition at line 82 of file tcldot-id.c.

References AGINEDGE, AGNODE, AGOUTEDGE, AGRAPH, edgecmd(), graphcmd(), gctx_t::ictx, ictx_t::interp, nodecmd(), NULL, obj2cmd(), and UNREACHABLE.

Here is the call graph for this function:

◆ myiddisc_map()

static long myiddisc_map ( void *  state,
int  objtype,
char *  str,
uint64_t *  id,
int  createflag 
)
static

Definition at line 26 of file tcldot-id.c.

References agstrbind(), agstrdup(), ictx_t::ctr, gctx_t::g, gctx_t::ictx, and str.

Here is the call graph for this function:

◆ myiddisc_open()

static void * myiddisc_open ( Agraph_t g,
Agdisc_t disc 
)
static

Definition at line 17 of file tcldot-id.c.

References disc, gctx_t::g, gv_alloc(), and gctx_t::ictx.

Here is the call graph for this function:

◆ myiddisc_print()

static char * myiddisc_print ( void *  state,
int  objtype,
uint64_t  id 
)
static

Definition at line 73 of file tcldot-id.c.

Variable Documentation

◆ myiddisc

Agiddisc_t myiddisc
Initial value:
= {
}
void free(void *)
static void myiddisc_free(void *state, int objtype, uint64_t id)
Definition tcldot-id.c:53
static char * myiddisc_print(void *state, int objtype, uint64_t id)
Definition tcldot-id.c:73
static long myiddisc_map(void *state, int objtype, char *str, uint64_t *id, int createflag)
Definition tcldot-id.c:26
static long myiddisc_alloc(void *state, int objtype, uint64_t request_id)
Definition tcldot-id.c:47
static void * myiddisc_open(Agraph_t *g, Agdisc_t *disc)
Definition tcldot-id.c:17
static void myiddisc_idregister(void *state, int objtype, void *obj)
Definition tcldot-id.c:82

Definition at line 97 of file tcldot-id.c.

Referenced by Tcldot_Init().