summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-07-04 17:29:17 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-07-04 17:29:17 +0000
commit952e7cc56afa29f77a828aa256985ba38a06fa80 (patch)
tree63bb8e64c73cece9aef5bcf1fcf9d344cd99554c
parentdb90836e94acf58c4433281e2762e2560440ef51 (diff)
Add Bluetooth daemon skeleton
-rw-r--r--daemon/Makefile.am12
-rw-r--r--daemon/main.c41
2 files changed, 53 insertions, 0 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 930bbe6e..df307144 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -2,4 +2,16 @@
# $Id$
#
+if DBUS
+sbin_PROGRAMS = bluetoothd
+
+bluetoothd_SOURCES = main.c
+
+bluetoothd_LDADD = @DBUS_LIBS@ @BLUEZ_LIBS@ $(top_builddir)/common/libtextfile.a
+endif
+
+AM_CFLAGS = @BLUEZ_CFLAGS@ @DBUS_CFLAGS@
+
+INCLUDES = -I$(top_srcdir)/common
+
MAINTAINERCLEANFILES = Makefile.in
diff --git a/daemon/main.c b/daemon/main.c
new file mode 100644
index 00000000..df39a66c
--- /dev/null
+++ b/daemon/main.c
@@ -0,0 +1,41 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2004-2005 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include <stdio.h>
+#include <errno.h>
+#include <sys/socket.h>
+
+#include <bluetooth/bluetooth.h>
+#include <bluetooth/hci.h>
+#include <bluetooth/hci_lib.h>
+
+#include <dbus/dbus.h>
+
+int main(int argc, char *argv[])
+{
+ return 0;
+}