diff options
Diffstat (limited to 'hcid/plugin.h')
| -rw-r--r-- | hcid/plugin.h | 12 | 
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 \ +		}; | 
