From a0e02526592a3a07cabe8052b4be96b0900c8b88 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Mon, 8 Jun 2009 23:17:46 +0100 Subject: Rename common/ dir to lib/ So as to avoid confusing readers of the code. --- lib/bluetooth-plugin.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lib/bluetooth-plugin.h (limited to 'lib/bluetooth-plugin.h') diff --git a/lib/bluetooth-plugin.h b/lib/bluetooth-plugin.h new file mode 100644 index 00000000..9f6069c0 --- /dev/null +++ b/lib/bluetooth-plugin.h @@ -0,0 +1,36 @@ +#ifndef _GNOME_BLUETOOTH_PLUGIN_H_ +#define _GNOME_BLUETOOTH_PLUGIN_H_ + +#include +#include + +typedef struct _GbtPluginInfo GbtPluginInfo; +typedef struct _GbtPlugin GbtPlugin; + +struct _GbtPluginInfo +{ + const char *id; + gboolean (* has_config_widget) (const char *bdaddr, const char **uuids); + GtkWidget * (* get_config_widgets) (const char *bdaddr, const char **uuids); + void (* device_removed) (const char *bdaddr); +}; + +struct _GbtPlugin +{ + GModule *module; + GbtPluginInfo *info; +}; + +#define GBT_INIT_PLUGIN(plugininfo) \ + gboolean gbt_init_plugin (GbtPlugin *plugin); \ + G_MODULE_EXPORT gboolean \ + gbt_init_plugin (GbtPlugin *plugin) { \ + plugin->info = &(plugininfo); \ + return TRUE; \ + } + +#define SOEXT ("." G_MODULE_SUFFIX) +#define SOEXT_LEN (strlen (SOEXT)) + +#endif /* _GNOME_BLUETOOTH_PLUGIN_H_ */ + -- cgit v1.2.1