From f891d23d47274a8788ccdd738ee160f27fb0935b Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 11 Mar 2008 19:58:56 +0000 Subject: Add plugin definition structure --- hcid/plugin.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'hcid/plugin.h') 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 \ + }; -- cgit