summaryrefslogtreecommitdiff
path: root/src/plugins/plugin-def.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugin-def.h')
-rw-r--r--src/plugins/plugin-def.h61
1 files changed, 2 insertions, 59 deletions
diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h
index bb5641b..7895eeb 100644
--- a/src/plugins/plugin-def.h
+++ b/src/plugins/plugin-def.h
@@ -45,9 +45,7 @@ typedef uint32_t plugin_abi_version_t;
#define GET_ABI_MIN_VERSION(vs) ((vs >> 16) & 0xff)
#define GET_ABI_REV_VERSION(vs) (vs & 0xffff)
-#define CURRENT_ABI_VERSION DEFINE_PLUGIN_ABI_VERSION(0, 2, 0)
-
-//#define HARD_CODE_CURRENT_ABI_VERSION const plugin_abi_version_t abi_version = CURRENT_ABI_VERSION
+#define CURRENT_ABI_VERSION DEFINE_PLUGIN_ABI_VERSION(0, 3, 0)
@@ -235,6 +233,7 @@ typedef struct _plugin_interface
char *name; /* Désignation humaine courte */
char *desc; /* Description plus loquace */
char *version; /* Version du greffon */
+ char *url; /* Site Web associé */
bool container; /* Mise en place de greffons ? */
@@ -247,61 +246,5 @@ typedef struct _plugin_interface
} plugin_interface;
-/* Facilitations de déclarations */
-
-#define EMPTY_PG_LIST(name) \
- name = NULL, \
- name ## _count = 0 \
-
-#define BUILD_PG_LIST(name, lst) \
- name = lst, \
- name ## _count = sizeof(lst) / sizeof(lst[0]) \
-
-#define AL(...) BUILD_PG_LIST(.actions, ((plugin_action_t []){ __VA_ARGS__ }))
-
-#define RL(...) BUILD_PG_LIST(.required, ((char *[]){ __VA_ARGS__ }))
-
-#define NO_REQ EMPTY_PG_LIST(.required)
-
-
-#define DEFINE_CHRYSALIDE_PLUGIN(t, n, d, v, r, a) \
-G_MODULE_EXPORT const plugin_interface _chrysalide_plugin = { \
- \
- .magic = CHRYSALIDE_PLUGIN_MAGIC, \
- .abi_version = CURRENT_ABI_VERSION, \
- \
- .gtp_name = t, \
- .name = n, \
- .desc = d, \
- .version = v, \
- \
- .container = false, \
- \
- r, \
- \
- a, \
- \
-}
-
-#define DEFINE_CHRYSALIDE_CONTAINER_PLUGIN(t, n, d, v, r, a) \
-G_MODULE_EXPORT const plugin_interface _chrysalide_plugin = { \
- \
- .magic = CHRYSALIDE_PLUGIN_MAGIC, \
- .abi_version = CURRENT_ABI_VERSION, \
- \
- .gtp_name = t, \
- .name = n, \
- .desc = d, \
- .version = v, \
- \
- .container = true, \
- \
- r, \
- \
- a, \
- \
-}
-
-
#endif /* _PLUGINS_PLUGIN_DEF_H */