summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-04-23 17:12:00 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-04-23 17:12:00 +0000
commit6dc594dbea588a7285dff7eac35d1c0c3fca206d (patch)
tree8da2a3bae1a108d25f4047160d0d843dab6d2f98
parent71889d8638c31b0274e0a279b7879cd96aef7a50 (diff)
Add skeleton for manager interface
-rw-r--r--serial/Makefile.am2
-rw-r--r--serial/main.c2
-rw-r--r--serial/manager.c26
-rw-r--r--serial/manager.h22
4 files changed, 51 insertions, 1 deletions
diff --git a/serial/Makefile.am b/serial/Makefile.am
index 7cb86842..e8fd392c 100644
--- a/serial/Makefile.am
+++ b/serial/Makefile.am
@@ -1,7 +1,7 @@
noinst_PROGRAMS = bluetoothd-service-serial
-bluetoothd_service_serial_SOURCES = main.c
+bluetoothd_service_serial_SOURCES = main.c manager.h manager.c
LDADD = $(top_builddir)/common/libhelper.a \
@GLIB_LIBS@ @DBUS_LIBS@ @BLUEZ_LIBS@
diff --git a/serial/main.c b/serial/main.c
index b6f52d46..d249e672 100644
--- a/serial/main.c
+++ b/serial/main.c
@@ -30,6 +30,8 @@
#include "logging.h"
+#include "manager.h"
+
static void sig_term(int sig)
{
}
diff --git a/serial/manager.c b/serial/manager.c
new file mode 100644
index 00000000..2f4ab59e
--- /dev/null
+++ b/serial/manager.c
@@ -0,0 +1,26 @@
+/*
+ *
+ * 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
diff --git a/serial/manager.h b/serial/manager.h
new file mode 100644
index 00000000..e87dd676
--- /dev/null
+++ b/serial/manager.h
@@ -0,0 +1,22 @@
+/*
+ *
+ * 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
+ *
+ */