gvplugin_gd.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include <gvc/gvplugin.h>
  11. extern gvplugin_installed_t gvrender_gd_types[];
  12. extern gvplugin_installed_t gvrender_vrml_types[];
  13. extern gvplugin_installed_t gvtextlayout_gd_types[];
  14. extern gvplugin_installed_t gvloadimage_gd_types[];
  15. extern gvplugin_installed_t gvdevice_gd_types[];
  16. extern gvplugin_installed_t gvdevice_gd_types2[];
  17. extern gvplugin_installed_t gvdevice_vrml_types[];
  18. static gvplugin_api_t apis[] = {
  19. {API_render, gvrender_gd_types},
  20. {API_render, gvrender_vrml_types},
  21. {API_textlayout, gvtextlayout_gd_types},
  22. {API_loadimage, gvloadimage_gd_types},
  23. {API_device, gvdevice_gd_types},
  24. {API_device, gvdevice_gd_types2},
  25. {API_device, gvdevice_vrml_types},
  26. {(api_t)0, 0},
  27. };
  28. #ifdef GVDLL
  29. #define GVPLUGIN_GD_API __declspec(dllexport)
  30. #else
  31. #define GVPLUGIN_GD_API
  32. #endif
  33. GVPLUGIN_GD_API gvplugin_library_t gvplugin_gd_LTX_library = { "gd", apis };