Graphviz 13.0.0~dev.20241220.2304
|
supports user-supplied data More...
#include "config.h"
#include <stdbool.h>
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | ingraph_state |
Functions | |
ingraph_state * | newIngraph (ingraph_state *, char **) |
ingraph_state * | newIng (ingraph_state *, char **, Agraph_t *(*readf)(void *)) |
ingraph_state * | newIngGraphs (ingraph_state *, Agraph_t **, Agraph_t *(*readf)(void *)) |
void | closeIngraph (ingraph_state *sp) |
Agraph_t * | nextGraph (ingraph_state *) |
char * | fileName (ingraph_state *) |
Return name of current file being processed. | |
The ingraphs library works with libcgraph with all user-supplied data. For this to work, the include file relies upon its context to supply a definition of Agraph_t.
Definition in file ingraphs.h.
void closeIngraph | ( | ingraph_state * | sp | ) |
Definition at line 147 of file ingraphs.c.
References ingraph_state::Files, ingraph_state::fp, free(), ingraph_state::heap, ingraph_state::ingraphs, and ingraph_state::u.
Referenced by gvpr().
char * fileName | ( | ingraph_state * | sp | ) |
Definition at line 156 of file ingraphs.c.
References ingraph_state::ctr, ingraph_state::Files, fname, ingraph_state::ingraphs, and ingraph_state::u.
Referenced by add_graph_to_viewport_from_file(), CMainWindow::addFile(), glCompButtonAddPngGlyph(), gvpr_core(), loadAttrs(), MdiChild::loadFile(), MdiChild::loadPreview(), main(), main(), nextFile(), ImageViewer::open(), save_graph_with_file_name(), MdiChild::saveAs(), MdiChild::saveFile(), and stripFileExtension().
ingraph_state * newIng | ( | ingraph_state * | sp, |
char ** | files, | ||
Agraph_t *(*)(void *) | readf | ||
) |
Definition at line 120 of file ingraphs.c.
References new_ing().
Referenced by gvpr_core(), and newIngraph().
ingraph_state * newIngGraphs | ( | ingraph_state * | sp, |
Agraph_t ** | graphs, | ||
Agraph_t *(*)(void *) | readf | ||
) |
Definition at line 128 of file ingraphs.c.
References new_ing().
Referenced by gvpr_core().
ingraph_state * newIngraph | ( | ingraph_state * | sp, |
char ** | files | ||
) |
Definition at line 140 of file ingraphs.c.
References dflt_read(), and newIng().
Referenced by main(), main(), and readGraphs().
Agraph_t * nextGraph | ( | ingraph_state * | sp | ) |
Definition at line 61 of file ingraphs.c.
References ingraph_state::ctr, ingraph_state::Files, ingraph_state::fp, ingraph_state::Graphs, ingraph_state::ingraphs, nextFile(), NULL, ingraph_state::readf, and ingraph_state::u.
Referenced by gvpr_core(), main(), main(), and readGraphs().