| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
#ifdef __cplusplus |
| 14 |
extern "C" { |
| 15 |
#endif |
| 16 |
|
| 17 |
#include "cgraph.h" |
| 18 |
#include <expr/expr.h> |
| 19 |
#include <stdio.h> |
| 20 |
|
| 21 |
extern Agobj_t *cloneO(Agraph_t * g, Agobj_t * obj); |
| 22 |
extern Agraph_t *cloneG(Agraph_t * g, char* name); |
| 23 |
extern Agobj_t *copy(Agraph_t * g, Agobj_t * obj); |
| 24 |
extern int copyAttr(Agobj_t * obj, Agobj_t * obj1); |
| 25 |
extern int indexOf(char *s1, char *s2); |
| 26 |
extern long rindexOf(char *s1, char *s2); |
| 27 |
extern size_t match(char *str, char *pat); |
| 28 |
extern int lockGraph(Agraph_t * g, int); |
| 29 |
extern Agraph_t *compOf(Agraph_t * g, Agnode_t * n); |
| 30 |
extern Agedge_t *isEdge(Agraph_t* g, Agnode_t * t, Agnode_t * h, char *key); |
| 31 |
extern Agnode_t *addNode(Agraph_t * g, Agnode_t * n, int doAdd); |
| 32 |
extern Agedge_t *addEdge(Agraph_t * g, Agedge_t * e, int doAdd); |
| 33 |
extern Agraph_t *sameG(void *p1, void *p2, char *fn, char *msg); |
| 34 |
extern int compare(Agobj_t *, Agobj_t *); |
| 35 |
extern int sfioWrite(Agraph_t*, FILE*); |
| 36 |
extern int writeFile(Agraph_t*, char*); |
| 37 |
extern int fwriteFile(Expr_t *, Agraph_t *, long long); |
| 38 |
extern Agraph_t *readFile(char *); |
| 39 |
extern Agraph_t *freadFile(Expr_t *, long long); |
| 40 |
extern int openFile(Expr_t *, const char *, const char *); |
| 41 |
extern int closeFile(Expr_t *, long long); |
| 42 |
extern char *readLine(Expr_t *, long long); |
| 43 |
extern char *canon(Expr_t * pgm, char *); |
| 44 |
extern char *toHtml(Agraph_t*, char *); |
| 45 |
extern char *toLower(Expr_t *pgm, char *src); |
| 46 |
extern char *toUpper(Expr_t *pgm, char *src); |
| 47 |
extern int deleteObj(Agraph_t * g, Agobj_t * obj); |
| 48 |
extern char *colorx(Expr_t *ex, const char *incolor, char *fmt); |
| 49 |
|
| 50 |
#ifdef __cplusplus |
| 51 |
} |
| 52 |
#endif |