diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-23 18:57:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-23 19:01:46 (GMT) |
commit | abefe01dd260cddbd253ba0c03d9c903138c71c1 (patch) | |
tree | 834f683e79893534324af94c537984542b7dc00a /src/plugins/plugin-def.h | |
parent | 50eb8c462e7ad2b4e5b82d27b1af6e86091ea272 (diff) |
Tracked the reference counter for plugins with more care.
Diffstat (limited to 'src/plugins/plugin-def.h')
-rw-r--r-- | src/plugins/plugin-def.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h index a497517..6bc2086 100644 --- a/src/plugins/plugin-def.h +++ b/src/plugins/plugin-def.h @@ -27,6 +27,7 @@ #include <gmodule.h> +#include <stdbool.h> #include <stdint.h> @@ -295,6 +296,8 @@ typedef struct _plugin_interface const char *desc; /* Description plus loquace */ const char *version; /* Version du greffon */ + bool container; /* Mise en place de greffons ? */ + const char **required; /* Pré-chargements requis */ size_t required_count; /* Quantité de ces dépendances */ @@ -329,6 +332,26 @@ G_MODULE_EXPORT const plugin_interface _chrysalide_plugin = { \ .desc = d, \ .version = v, \ \ + .container = false, \ + \ + r, \ + \ + a, \ + \ +} + +#define DEFINE_CHRYSALIDE_CONTAINER_PLUGIN(n, d, v, r, a) \ +G_MODULE_EXPORT const plugin_interface _chrysalide_plugin = { \ + \ + .magic = CHRYSALIDE_PLUGIN_MAGIC, \ + .abi_version = CURRENT_ABI_VERSION, \ + \ + .name = n, \ + .desc = d, \ + .version = v, \ + \ + .container = true, \ + \ r, \ \ a, \ |