summaryrefslogtreecommitdiffstats
path: root/hcid/plugin.h
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-03-11 19:58:56 +0000
committerMarcel Holtmann <marcel@holtmann.org>2008-03-11 19:58:56 +0000
commitf891d23d47274a8788ccdd738ee160f27fb0935b (patch)
tree3d539b63f712e5cb258b44319450f4c91e99791f /hcid/plugin.h
parent37f937248cb8f16dfa726b2ef659ce7a3e930529 (diff)
Add plugin definition structure
Diffstat (limited to 'hcid/plugin.h')
-rw-r--r--hcid/plugin.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/hcid/plugin.h b/hcid/plugin.h
index 970a27ad..9248aab6 100644
--- a/hcid/plugin.h
+++ b/hcid/plugin.h
@@ -21,5 +21,13 @@
*
*/
-gboolean plugin_init(void);
-void plugin_cleanup(void);
+struct bluetooth_plugin_desc {
+ const char *name;
+ int (*init) (void);
+ void (*exit) (void);
+};
+
+#define BLUETOOTH_PLUGIN_DEFINE(name,init,exit) \
+ struct bluetooth_plugin_desc bluetooth_plugin_desc = { \
+ name, init, exit \
+ };