Graphviz 12.0.1~dev.20240715.2254
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)(void*);
52 bool heap;
53 unsigned errors;
55
56CGHDR_API ingraph_state *newIngraph(ingraph_state *, char **);
57CGHDR_API ingraph_state *newIng(ingraph_state *, char **, Agraph_t *(*readf)(void*));
58CGHDR_API ingraph_state *newIngGraphs(ingraph_state *, Agraph_t**, Agraph_t *(*readf)(void*));
59CGHDR_API void closeIngraph(ingraph_state * sp);
60CGHDR_API Agraph_t *nextGraph(ingraph_state *);
61CGHDR_API char *fileName(ingraph_state *);
62
63#ifdef __cplusplus
64}
65#endif
void closeIngraph(ingraph_state *sp)
Definition ingraphs.c:147
char * fileName(ingraph_state *)
Return name of current file being processed.
Definition ingraphs.c:156
ingraph_state * newIngGraphs(ingraph_state *, Agraph_t **, Agraph_t *(*readf)(void *))
Definition ingraphs.c:128
Agraph_t * nextGraph(ingraph_state *)
Definition ingraphs.c:61
ingraph_state * newIng(ingraph_state *, char **, Agraph_t *(*readf)(void *))
Definition ingraphs.c:120
ingraph_state * newIngraph(ingraph_state *, char **)
Definition ingraphs.c:140
graph or subgraph
Definition cgraph.h:425
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