summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/Makefile.am2
-rw-r--r--hcid/main.c5
-rw-r--r--hcid/plugin.c37
-rw-r--r--hcid/plugin.h25
4 files changed, 68 insertions, 1 deletions
diff --git a/hcid/Makefile.am b/hcid/Makefile.am
index c2f00b12..fe5f8caa 100644
--- a/hcid/Makefile.am
+++ b/hcid/Makefile.am
@@ -16,7 +16,7 @@ noinst_LIBRARIES = libhciserver.a
libhciserver_a_SOURCES = hcid.h security.c storage.c \
parser.h parser.y lexer.l kword.c kword.h \
server.h server.c manager.h manager.c \
- adapter.h adapter.c device.h device.c \
+ adapter.h adapter.c device.h device.c plugin.h plugin.c \
dbus-common.c dbus-common.h dbus-error.c dbus-error.h \
dbus-database.c dbus-database.h dbus-security.c dbus-security.h \
dbus-service.c dbus-service.h dbus-test.c dbus-test.h \
diff --git a/hcid/main.c b/hcid/main.c
index 3e9e4483..e1cfd1d1 100644
--- a/hcid/main.c
+++ b/hcid/main.c
@@ -53,6 +53,7 @@
#include "hcid.h"
#include "sdpd.h"
#include "server.h"
+#include "plugin.h"
#include "adapter.h"
#include "dbus-common.h"
#include "dbus-service.h"
@@ -847,6 +848,8 @@ int main(int argc, char *argv[])
enable_debug();
}
+ plugin_init();
+
/* Create and bind HCI socket */
if ((hcid.sock = socket(AF_BLUETOOTH, SOCK_RAW, BTPROTO_HCI)) < 0) {
error("Can't open HCI socket: %s (%d)",
@@ -940,6 +943,8 @@ int main(int argc, char *argv[])
cleanup_sdp_session();
+ plugin_cleanup();
+
g_main_loop_unref(event_loop);
info("Exit");
diff --git a/hcid/plugin.c b/hcid/plugin.c
new file mode 100644
index 00000000..23a1c9e4
--- /dev/null
+++ b/hcid/plugin.c
@@ -0,0 +1,37 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2008 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <glib.h>
+
+gboolean plugin_init(void)
+{
+ return FALSE;
+}
+
+void plugin_cleanup(void)
+{
+}
diff --git a/hcid/plugin.h b/hcid/plugin.h
new file mode 100644
index 00000000..970a27ad
--- /dev/null
+++ b/hcid/plugin.h
@@ -0,0 +1,25 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2008 Marcel Holtmann <marcel@holtmann.org>
+ *
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ */
+
+gboolean plugin_init(void);
+void plugin_cleanup(void);