| 1 |
/** |
| 2 |
* @file |
| 3 |
* @ingroup common_utils |
| 4 |
* @ingroup common_render |
| 5 |
*/ |
| 6 |
/************************************************************************* |
| 7 |
* Copyright (c) 2011 AT&T Intellectual Property |
| 8 |
* All rights reserved. This program and the accompanying materials |
| 9 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 10 |
* which accompanies this distribution, and is available at |
| 11 |
* https://www.eclipse.org/legal/epl-v10.html |
| 12 |
* |
| 13 |
* Contributors: Details at https://graphviz.org |
| 14 |
*************************************************************************/ |
| 15 |
|
| 16 |
#pragma once |
| 17 |
|
| 18 |
#include <cgraph/cgraph.h> |
| 19 |
#include <stdbool.h> |
| 20 |
#include <stdlib.h> |
| 21 |
#include <util/list.h> |
| 22 |
|
| 23 |
#ifdef __cplusplus |
| 24 |
extern "C" { |
| 25 |
#endif |
| 26 |
|
| 27 |
#ifdef GVDLL |
| 28 |
#ifdef GVC_EXPORTS |
| 29 |
#define GLOBALS_API __declspec(dllexport) |
| 30 |
#else |
| 31 |
#define GLOBALS_API __declspec(dllimport) |
| 32 |
#endif |
| 33 |
#endif |
| 34 |
|
| 35 |
/// @cond |
| 36 |
#ifndef GLOBALS_API |
| 37 |
#define GLOBALS_API /* nothing */ |
| 38 |
#endif |
| 39 |
|
| 40 |
#ifndef EXTERN |
| 41 |
#define EXTERN extern |
| 42 |
#endif |
| 43 |
/// @endcond |
| 44 |
|
| 45 |
typedef LIST(char *) show_boxes_t; |
| 46 |
|
| 47 |
GLOBALS_API EXTERN const char **Lib; /* from command line */ |
| 48 |
GLOBALS_API EXTERN char *Gvfilepath; /* Per-process path of files allowed in image attributes (also ps libs) */ |
| 49 |
GLOBALS_API EXTERN char *Gvimagepath; /* Per-graph path of files allowed in image attributes (also ps libs) */ |
| 50 |
|
| 51 |
GLOBALS_API EXTERN unsigned char Verbose; |
| 52 |
GLOBALS_API EXTERN bool Reduce; |
| 53 |
GLOBALS_API EXTERN char *HTTPServerEnVar; |
| 54 |
GLOBALS_API EXTERN int graphviz_errors; |
| 55 |
GLOBALS_API EXTERN int Nop; |
| 56 |
GLOBALS_API EXTERN double PSinputscale; |
| 57 |
GLOBALS_API extern show_boxes_t Show_boxes; // emit code for correct box coordinates |
| 58 |
GLOBALS_API EXTERN int CL_type; /* NONE, LOCAL, GLOBAL */ |
| 59 |
GLOBALS_API EXTERN bool Concentrate; /// if parallel edges should be merged |
| 60 |
GLOBALS_API EXTERN double Epsilon; /* defined in input_graph */ |
| 61 |
GLOBALS_API EXTERN int MaxIter; |
| 62 |
GLOBALS_API EXTERN unsigned short Ndim; |
| 63 |
GLOBALS_API EXTERN int State; /* last finished phase */ |
| 64 |
GLOBALS_API EXTERN int EdgeLabelsDone; /* true if edge labels have been positioned */ |
| 65 |
GLOBALS_API EXTERN double Initial_dist; |
| 66 |
GLOBALS_API EXTERN double Damping; |
| 67 |
GLOBALS_API EXTERN bool Y_invert; ///< invert y in dot & plain output |
| 68 |
GLOBALS_API EXTERN int GvExitOnUsage; /* gvParseArgs() should exit on usage or error */ |
| 69 |
|
| 70 |
GLOBALS_API EXTERN Agsym_t |
| 71 |
*G_ordering, *G_peripheries, *G_penwidth, |
| 72 |
*G_gradientangle, *G_margin; |
| 73 |
GLOBALS_API EXTERN Agsym_t |
| 74 |
*N_height, *N_width, *N_shape, *N_color, *N_fillcolor, |
| 75 |
*N_fontsize, *N_fontname, *N_fontcolor, |
| 76 |
*N_label, *N_xlabel, *N_nojustify, *N_style, *N_showboxes, |
| 77 |
*N_sides, *N_peripheries, *N_ordering, *N_orientation, |
| 78 |
*N_skew, *N_distortion, *N_fixed, *N_imagescale, *N_imagepos, *N_layer, |
| 79 |
*N_group, *N_comment, *N_vertices, *N_z, |
| 80 |
*N_penwidth, *N_gradientangle; |
| 81 |
GLOBALS_API EXTERN Agsym_t |
| 82 |
*E_weight, *E_minlen, *E_color, *E_fillcolor, |
| 83 |
*E_fontsize, *E_fontname, *E_fontcolor, |
| 84 |
*E_label, *E_xlabel, *E_dir, *E_style, *E_decorate, |
| 85 |
*E_showboxes, *E_arrowsz, *E_constr, *E_layer, |
| 86 |
*E_comment, *E_label_float, |
| 87 |
*E_samehead, *E_sametail, |
| 88 |
*E_headlabel, *E_taillabel, |
| 89 |
*E_labelfontsize, *E_labelfontname, *E_labelfontcolor, |
| 90 |
*E_labeldistance, *E_labelangle, |
| 91 |
*E_tailclip, *E_headclip, |
| 92 |
*E_penwidth; |
| 93 |
|
| 94 |
GLOBALS_API extern struct fdpParms_s* fdp_parms; |
| 95 |
|
| 96 |
#undef EXTERN |
| 97 |
#undef GLOBALS_API |
| 98 |
|
| 99 |
#ifdef __cplusplus |
| 100 |
} |
| 101 |
#endif |