summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-03-13 18:13:28 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-03-13 18:13:28 +0000
commit74b978057e7b3f8cad2952c0fe50a17a118339ad (patch)
tree59306984fc67c4e5af24d884fb7949f65f9c00af
parent6bd2d4e0d8f2a74c1ec87a9de3d00a612e9c7bf7 (diff)
downloadbluez-74b978057e7b3f8cad2952c0fe50a17a118339ad.tar.gz
Add skeleton for manager interface
-rw-r--r--input/Makefile.am3
-rw-r--r--input/main.c1
-rw-r--r--input/manager.c37
-rw-r--r--input/manager.h25
4 files changed, 65 insertions, 1 deletions
diff --git a/input/Makefile.am b/input/Makefile.am
index e39bd254f..523e001b3 100644
--- a/input/Makefile.am
+++ b/input/Makefile.am
@@ -11,7 +11,8 @@ servicedir = $(libdir)/bluetooth
service_PROGRAMS = bluetoothd-service-input
bluetoothd_service_input_SOURCES = main.c \
- server.h server.c device.h device.c storage.h storage.c
+ manager.h manager.c server.h server.c \
+ device.h device.c storage.h storage.c
LDADD = $(top_builddir)/common/libhelper.a \
@GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
diff --git a/input/main.c b/input/main.c
index db0678c5e..688c8a58b 100644
--- a/input/main.c
+++ b/input/main.c
@@ -39,6 +39,7 @@
#include "dbus.h"
#include "logging.h"
+#include "manager.h"
#include "server.h"
#include "device.h"
diff --git a/input/manager.c b/input/manager.c
new file mode 100644
index 000000000..ab45339f6
--- /dev/null
+++ b/input/manager.c
@@ -0,0 +1,37 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2007 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 "manager.h"
+
+int input_init(void)
+{
+ return 0;
+}
+
+void input_exit(void)
+{
+}
diff --git a/input/manager.h b/input/manager.h
new file mode 100644
index 000000000..98e6d2d8e
--- /dev/null
+++ b/input/manager.h
@@ -0,0 +1,25 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2007 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
+ *
+ */
+
+int input_init(void);
+void input_exit(void);