diff options
author | Alok Barsode <alokbarsode@gmail.com> | 2009-03-17 18:56:21 +0530 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-03-14 07:11:47 +0100 |
commit | bf6a4a577408aa6192c40f9a789788badb1a386a (patch) | |
tree | b6fa932a57ea77a02f54e040dc7c78e2a6475d2a /src/plugin.h | |
parent | 3f009ea6dfc5bee61a1b4b7b947370584687d131 (diff) |
Adding version check for plugins.
Diffstat (limited to 'src/plugin.h')
-rw-r--r-- | src/plugin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugin.h b/src/plugin.h index 31bcce87..62d5f758 100644 --- a/src/plugin.h +++ b/src/plugin.h @@ -23,13 +23,14 @@ struct bluetooth_plugin_desc { const char *name; + const char *version; int (*init) (void); void (*exit) (void); }; -#define BLUETOOTH_PLUGIN_DEFINE(name,init,exit) \ +#define BLUETOOTH_PLUGIN_DEFINE(name,version,init,exit) \ extern struct bluetooth_plugin_desc bluetooth_plugin_desc \ __attribute__ ((visibility("default"))); \ struct bluetooth_plugin_desc bluetooth_plugin_desc = { \ - name, init, exit \ + name, version, init, exit \ }; |