X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=src%2Finclude%2Fcore%2Fplugin.h;h=e6ea7573cf15a0514c939c754eed48ae16c10964;hp=3d938807f61d2c1098dae31429157946b908b2f8;hb=56b97a180a53aecbfe9f7162b8ece3faae973cf9;hpb=6e8ab1faa4b9eeaec2f3a422e9aa66c552e94146;ds=sidebyside diff --git a/src/include/core/plugin.h b/src/include/core/plugin.h index 3d93880..e6ea757 100644 --- a/src/include/core/plugin.h +++ b/src/include/core/plugin.h @@ -45,8 +45,22 @@ typedef struct { } sdb_plugin_ctx_t; #define SDB_PLUGIN_CTX_INIT { 0 } -struct sdb_plugin_info; -typedef struct sdb_plugin_info sdb_plugin_info_t; +typedef struct { + char *plugin_name; + char *filename; + + /* public attributes */ + char *description; + char *copyright; + char *license; + + int version; + int plugin_version; +} sdb_plugin_info_t; +#define SDB_PLUGIN_INFO_INIT { \ + /* plugin_name */ NULL, /* filename */ NULL, /* desc */ NULL, \ + /* copyright */ NULL, /* license */ NULL, \ + /* version */ -1, /* plugin_version */ -1 } /* this should be used in the header of a plugin to avoid * missing prototype warnings/errors for the plugin init