Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
gvcext.h
Go to the documentation of this file.
1
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
18extern "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;
38
39 typedef struct {
40 const char *name;
41 void* address;
43
45
46#if !defined(LTDL_H)
48#endif
49
50#ifdef __cplusplus
51}
52#endif
lt_symlist_t lt_preloaded_symbols[]
#define APIS
Definition gvcext.h:26
api_t
Definition gvcext.h:32
Definition gvcint.h:80
Definition gvcint.h:69
const char * name
Definition gvcext.h:40
void * address
Definition gvcext.h:41