Debian Codegraph @

lib/neatogen/neatoprocs.h

raw
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 #include <stdbool.h>
14 #include <stddef.h>
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 #include <neatogen/adjust.h>
20
21 #ifdef GVDLL
22 #ifdef NEATOGEN_EXPORTS
23 #define NEATOPROCS_API __declspec(dllexport)
24 #else
25 #define NEATOPROCS_API __declspec(dllimport)
26 #endif
27 #endif
28
29 #ifndef NEATOPROCS_API
30 #define NEATOPROCS_API /* nothing */
31 #endif
32
33 NEATOPROCS_API int checkStart(graph_t * G, int nG, int);
34 NEATOPROCS_API int circuit_model(graph_t *, int);
35 NEATOPROCS_API void diffeq_model(graph_t *, int);
36 NEATOPROCS_API Ppolyline_t getPath(edge_t*, vconfig_t*, bool);
37 NEATOPROCS_API void initial_positions(graph_t *, int);
38 NEATOPROCS_API void jitter3d(Agnode_t *, int);
39 NEATOPROCS_API void jitter_d(Agnode_t *, int, int);
40 NEATOPROCS_API Ppoly_t *makeObstacle(node_t * n, expand_t*, bool);
41 NEATOPROCS_API void makeSelfArcs(edge_t * e, int stepx);
42 NEATOPROCS_API void makeSpline(edge_t *, Ppoly_t **, int, bool);
43 NEATOPROCS_API int init_nop(graph_t * g, int);
44 NEATOPROCS_API void neato_cleanup(graph_t * g);
45 NEATOPROCS_API node_t *neato_dequeue(void);
46 NEATOPROCS_API void neato_enqueue(node_t *);
47 NEATOPROCS_API void neato_init_node(node_t * n);
48 NEATOPROCS_API void neato_layout(Agraph_t * g);
49 NEATOPROCS_API int Plegal_arrangement(Ppoly_t ** polys, int n_polys);
50 NEATOPROCS_API void randompos(Agnode_t *, int);
51 NEATOPROCS_API void s1(graph_t *, node_t *);
52 NEATOPROCS_API int scan_graph(graph_t *);
53 NEATOPROCS_API int scan_graph_mode(graph_t * G, int mode);
54 NEATOPROCS_API void free_scan_graph(graph_t *);
55 NEATOPROCS_API int setSeed (graph_t*, int dflt, long* seedp);
56 NEATOPROCS_API void shortest_path(graph_t *, int);
57 NEATOPROCS_API void solve(double *, double *, double *, size_t);
58 NEATOPROCS_API void solve_model(graph_t *, int);
59 NEATOPROCS_API int solveCircuit(int nG, double **Gm, double **Gm_inv);
60 NEATOPROCS_API void spline_edges(Agraph_t *);
61 NEATOPROCS_API void spline_edges0(Agraph_t *, bool);
62 NEATOPROCS_API int spline_edges1(graph_t * g, int);
63 NEATOPROCS_API int splineEdges(graph_t *,
64 int (*edgefn) (graph_t *, expand_t*, int), int);
65 NEATOPROCS_API void neato_translate(Agraph_t * g);
66 NEATOPROCS_API bool neato_set_aspect(graph_t * g);
67 NEATOPROCS_API void toggle(int);
68 NEATOPROCS_API bool user_pos(Agsym_t *, Agsym_t *, Agnode_t *, int);
69 NEATOPROCS_API double **new_array(int i, int j, double val);
70 NEATOPROCS_API void free_array(double **rv);
71 NEATOPROCS_API int matinv(double **A, double **Ainv, int n);
72
73 #undef NEATOPROCS_API
74
75 #ifdef __cplusplus
76 }
77 #endif