actions.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. #pragma once
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include "cgraph.h"
  15. #include <expr/expr.h>
  16. #include <stdio.h>
  17. extern Agobj_t *cloneO(Agraph_t * g, Agobj_t * obj);
  18. extern Agraph_t *cloneG(Agraph_t * g, char* name);
  19. extern Agobj_t *copy(Agraph_t * g, Agobj_t * obj);
  20. extern int copyAttr(Agobj_t * obj, Agobj_t * obj1);
  21. extern int indexOf(char *s1, char *s2);
  22. extern long rindexOf(char *s1, char *s2);
  23. extern size_t match(char *str, char *pat);
  24. extern int lockGraph(Agraph_t * g, int);
  25. extern Agraph_t *compOf(Agraph_t * g, Agnode_t * n);
  26. extern Agedge_t *isEdge(Agraph_t* g, Agnode_t * t, Agnode_t * h, char *key);
  27. extern Agnode_t *addNode(Agraph_t * g, Agnode_t * n, int doAdd);
  28. extern Agedge_t *addEdge(Agraph_t * g, Agedge_t * e, int doAdd);
  29. extern Agraph_t *sameG(void *p1, void *p2, char *fn, char *msg);
  30. extern int compare(Agobj_t *, Agobj_t *);
  31. extern int sfioWrite(Agraph_t*, FILE*);
  32. extern int writeFile(Agraph_t*, char*);
  33. extern int fwriteFile(Expr_t *, Agraph_t *, long long);
  34. extern Agraph_t *readFile(char *);
  35. extern Agraph_t *freadFile(Expr_t *, long long);
  36. extern int openFile(Expr_t *, const char *, const char *);
  37. extern int closeFile(Expr_t *, long long);
  38. extern char *readLine(Expr_t *, long long);
  39. extern char *canon(Expr_t * pgm, char *);
  40. extern char *toHtml(Agraph_t*, char *);
  41. extern char *toLower(Expr_t *pgm, char *src);
  42. extern char *toUpper(Expr_t *pgm, char *src);
  43. extern int deleteObj(Agraph_t * g, Agobj_t * obj);
  44. extern char *colorx(Expr_t *ex, const char *incolor, char *fmt);
  45. extern void gvstart_timer(void);
  46. extern double gvelapsed_sec(void);
  47. #ifdef __cplusplus
  48. }
  49. #endif