annotate toolboxes/graph_visualisation/include/graphviz/gvplugin.h @ 0:cc4b1211e677 tip

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
rev   line source
Daniel@0 1 /* $Id: gvplugin.h,v 1.31 2009/07/14 13:18:07 ellson Exp $ $Revision: 1.31 $ */
Daniel@0 2 /* vim:set shiftwidth=4 ts=8: */
Daniel@0 3
Daniel@0 4 /**********************************************************
Daniel@0 5 * This software is part of the graphviz package *
Daniel@0 6 * http://www.graphviz.org/ *
Daniel@0 7 * *
Daniel@0 8 * Copyright (c) 1994-2004 AT&T Corp. *
Daniel@0 9 * and is licensed under the *
Daniel@0 10 * Common Public License, Version 1.0 *
Daniel@0 11 * by AT&T Corp. *
Daniel@0 12 * *
Daniel@0 13 * Information and Software Systems Research *
Daniel@0 14 * AT&T Research, Florham Park NJ *
Daniel@0 15 **********************************************************/
Daniel@0 16
Daniel@0 17 /* Header used by plugins */
Daniel@0 18
Daniel@0 19 #ifndef GVPLUGIN_H
Daniel@0 20 #define GVPLUGIN_H
Daniel@0 21
Daniel@0 22 #ifdef __cplusplus
Daniel@0 23 extern "C" {
Daniel@0 24 #endif
Daniel@0 25
Daniel@0 26 #include "gvcext.h"
Daniel@0 27
Daniel@0 28 /*
Daniel@0 29 * Terminology:
Daniel@0 30 *
Daniel@0 31 * package - e.g. libgvplugin_cairo.so
Daniel@0 32 * api - e.g. render
Daniel@0 33 * type - e.g. "png", "ps"
Daniel@0 34 */
Daniel@0 35
Daniel@0 36 typedef struct {
Daniel@0 37 int id; /* an id that is only unique within a package
Daniel@0 38 of plugins of the same api.
Daniel@0 39 A renderer-type such as "png" in the cairo package
Daniel@0 40 has an id that is different from the "ps" type
Daniel@0 41 in the same package */
Daniel@0 42 const char *type; /* a string name, such as "png" or "ps" that
Daniel@0 43 distinguishes different types withing the same
Daniel@0 44 (renderer in this case) */
Daniel@0 45 int quality; /* an arbitrary integer used for ordering plugins of
Daniel@0 46 the same type from different packages */
Daniel@0 47 void *engine; /* pointer to the jump table for the plugin */
Daniel@0 48 void *features; /* pointer to the feature description
Daniel@0 49 void* because type varies by api */
Daniel@0 50 } gvplugin_installed_t;
Daniel@0 51
Daniel@0 52 typedef struct {
Daniel@0 53 api_t api;
Daniel@0 54 gvplugin_installed_t *types;
Daniel@0 55 } gvplugin_api_t;
Daniel@0 56
Daniel@0 57 typedef struct {
Daniel@0 58 char *packagename; /* used when this plugin is builtin and has
Daniel@0 59 no pathname */
Daniel@0 60 gvplugin_api_t *apis;
Daniel@0 61 } gvplugin_library_t;
Daniel@0 62
Daniel@0 63 #ifdef __cplusplus
Daniel@0 64 }
Daniel@0 65 #endif
Daniel@0 66 #endif /* GVPLUGIN_H */