|
Graphviz 14.0.3~dev.20251028.0232
|
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)(const char *, void *)) |
| ingraph_state * | newIngGraphs (ingraph_state *, Agraph_t **, Agraph_t *(*readf)(const char *, 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 145 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 154 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(), nextGraph(), ImageViewer::open(), save_graph_with_file_name(), MdiChild::saveAs(), MdiChild::saveFile(), and stripFileExtension().
| ingraph_state * newIng | ( | ingraph_state * | sp, |
| char ** | files, | ||
| Agraph_t *(*)(const char *, void *) | readf | ||
| ) |
Definition at line 118 of file ingraphs.c.
References new_ing().
Referenced by gvpr_core(), and newIngraph().
| ingraph_state * newIngGraphs | ( | ingraph_state * | sp, |
| Agraph_t ** | graphs, | ||
| Agraph_t *(*)(const char *, void *) | readf | ||
| ) |
Definition at line 126 of file ingraphs.c.
References new_ing().
Referenced by gvpr_core().
| ingraph_state * newIngraph | ( | ingraph_state * | sp, |
| char ** | files | ||
| ) |
Definition at line 138 of file ingraphs.c.
References dflt_read(), and newIng().
Referenced by main(), main(), and readGraphs().
| Agraph_t * nextGraph | ( | ingraph_state * | sp | ) |
Definition at line 59 of file ingraphs.c.
References ingraph_state::ctr, fileName(), 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().