Graphviz 13.0.0~dev.20250607.1528
Loading...
Searching...
No Matches
ingraphs.h
Go to the documentation of this file.
1
11/*************************************************************************
12 * Copyright (c) 2011 AT&T Intellectual Property
13 * All rights reserved. This program and the accompanying materials
14 * are made available under the terms of the Eclipse Public License v1.0
15 * which accompanies this distribution, and is available at
16 * https://www.eclipse.org/legal/epl-v10.html
17 *
18 * Contributors: Details at https://graphviz.org
19 *************************************************************************/
20
21#pragma once
22
23#include "config.h"
24#include <stdbool.h>
25#include <stdio.h>
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#ifdef GVDLL
32#ifdef EXPORT_CGHDR
33#define CGHDR_API __declspec(dllexport)
34#else
35#define CGHDR_API __declspec(dllimport)
36#endif
37#endif
38
39#ifndef CGHDR_API
40#define CGHDR_API /* nothing */
41#endif
42
43 typedef struct {
44 union {
45 char** Files;
47 } u;
48 int ctr;
50 void *fp;
51 Agraph_t *(*readf)(const char *, void *);
52 bool heap;
53 unsigned errors;
55
56CGHDR_API ingraph_state *newIngraph(ingraph_state *, char **);
57CGHDR_API ingraph_state *newIng(ingraph_state *, char **,
58 Agraph_t *(*readf)(const char *, void *));
60 Agraph_t *(*readf)(const char *, void *));
61CGHDR_API void closeIngraph(ingraph_state * sp);
62CGHDR_API Agraph_t *nextGraph(ingraph_state *);
63CGHDR_API char *fileName(ingraph_state *);
64
65#ifdef __cplusplus
66}
67#endif
void closeIngraph(ingraph_state *sp)
Definition ingraphs.c:145
char * fileName(ingraph_state *)
Return name of current file being processed.
Definition ingraphs.c:154
ingraph_state * newIngGraphs(ingraph_state *, Agraph_t **, Agraph_t *(*readf)(const char *, void *))
Definition ingraphs.c:126
Agraph_t * nextGraph(ingraph_state *)
Definition ingraphs.c:59
ingraph_state * newIngraph(ingraph_state *, char **)
Definition ingraphs.c:138
ingraph_state * newIng(ingraph_state *, char **, Agraph_t *(*readf)(const char *, void *))
Definition ingraphs.c:118
graph or subgraph
Definition cgraph.h:424
char ** Files
Definition ingraphs.h:45
Agraph_t ** Graphs
Definition ingraphs.h:46
unsigned errors
Definition ingraphs.h:53
void * fp
Definition ingraphs.h:50