| 1 | /* $Id$ $Revision$ */ |
| 2 | /* vim:set shiftwidth=4 ts=8: */ |
| 3 | |
| 4 | /************************************************************************* |
| 5 | * Copyright (c) 2011 AT&T Intellectual Property |
| 6 | * All rights reserved. This program and the accompanying materials |
| 7 | * are made available under the terms of the Eclipse Public License v1.0 |
| 8 | * which accompanies this distribution, and is available at |
| 9 | * http://www.eclipse.org/legal/epl-v10.html |
| 10 | * |
| 11 | * Contributors: See CVS logs. Details at http://www.graphviz.org/ |
| 12 | *************************************************************************/ |
| 13 | |
| 14 | #include "gvplugin.h" |
| 15 | |
| 16 | extern gvplugin_installed_t gvrender_gd_types[]; |
| 17 | extern gvplugin_installed_t gvrender_vrml_types[]; |
| 18 | extern gvplugin_installed_t gvtextlayout_gd_types[]; |
| 19 | extern gvplugin_installed_t gvloadimage_gd_types[]; |
| 20 | extern gvplugin_installed_t gvdevice_gd_types[]; |
| 21 | extern gvplugin_installed_t gvdevice_gd_types2[]; |
| 22 | extern gvplugin_installed_t gvdevice_vrml_types[]; |
| 23 | |
| 24 | static gvplugin_api_t apis[] = { |
| 25 | {API_render, gvrender_gd_types}, |
| 26 | {API_render, gvrender_vrml_types}, |
| 27 | {API_textlayout, gvtextlayout_gd_types}, |
| 28 | {API_loadimage, gvloadimage_gd_types}, |
| 29 | {API_device, gvdevice_gd_types}, |
| 30 | {API_device, gvdevice_gd_types2}, |
| 31 | {API_device, gvdevice_vrml_types}, |
| 32 | {(api_t)0, 0}, |
| 33 | }; |
| 34 | |
| 35 | #ifdef _WIN32 |
| 36 | # define GVPLUGIN_GD_API __declspec(dllexport) |
| 37 | #else |
| 38 | # define GVPLUGIN_GD_API |
| 39 | #endif |
| 40 | |
| 41 | GVPLUGIN_GD_API gvplugin_library_t gvplugin_gd_LTX_library = { "gd" , apis }; |
| 42 | |