~ubuntu-branches/ubuntu/lucid/graphviz/lucid-security

« back to all changes in this revision

Viewing changes to tools/src/ingraphs.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen M Moraco
  • Date: 2002-02-05 18:52:12 UTC
  • Revision ID: james.westby@ubuntu.com-20020205185212-8i04c70te00rc40y
Tags: upstream-1.7.16
ImportĀ upstreamĀ versionĀ 1.7.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INGRAPHS_H
 
2
#define INGRAPHS_H
 
3
 
 
4
/* The ingraphs library works with both libagraph and with 
 
5
 * libgraph, with all user-supplied data. For this to work,
 
6
 * the include file relies upon its context to supply a
 
7
 * definition of Agraph_t.
 
8
 */
 
9
 
 
10
#include <stdio.h>
 
11
 
 
12
typedef Agraph_t*  (*opengfn)(FILE*);
 
13
 
 
14
typedef struct {
 
15
    char**     Files;
 
16
    int        ctr;
 
17
    FILE*      fp;
 
18
    opengfn    openf;
 
19
} ingraph_state;
 
20
 
 
21
extern ingraph_state* newIngraph (ingraph_state*, char**, opengfn);
 
22
extern void closeIngraph (ingraph_state* sp);
 
23
extern Agraph_t* nextGraph (ingraph_state*);
 
24
extern char* fileName (ingraph_state*);
 
25
 
 
26
#endif