Debian Codegraph @

lib/gvc/gvcext.h

raw
1 /// @file
2 /// @ingroup gvc_api
3 /*************************************************************************
4 * Copyright (c) 2011 AT&T Intellectual Property
5 * All rights reserved. This program and the accompanying materials
6 * are made available under the terms of the Eclipse Public License v1.0
7 * which accompanies this distribution, and is available at
8 * https://www.eclipse.org/legal/epl-v10.html
9 *
10 * Contributors: Details at https://graphviz.org
11 *************************************************************************/
12
13 /* Common header used by both clients and plugins */
14
15 #pragma once
16
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20
21 /*
22 * Define an apis array of name strings using an enumerated api_t as index.
23 * The enumerated type is defined here. The apis array is
24 * inititialized in gvplugin.c by redefining ELEM and reinvoking APIS.
25 */
26 #define APIS ELEM(render) ELEM(layout) ELEM(textlayout) ELEM(device) ELEM(loadimage)
27
28 /*
29 * Define api_t using names based on the plugin names with API_ prefixed.
30 */
31 #define ELEM(x) API_##x,
32 typedef enum { APIS } api_t; /* API_render, API_layout, ... */
33 #undef ELEM
34
35 typedef struct GVJ_s GVJ_t;
36 typedef struct GVG_s GVG_t;
37 typedef struct GVC_s GVC_t; ///< graphviz context
38
39 typedef struct {
40 const char *name;
41 void* address;
42 } lt_symlist_t;
43
44 typedef struct gvplugin_available_s gvplugin_available_t;
45
46 #if !defined(LTDL_H)
47 extern lt_symlist_t lt_preloaded_symbols[];
48 #endif
49
50 #ifdef __cplusplus
51 }
52 #endif