summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-14 03:03:26 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-14 03:03:26 +0000
commit6807e26a08e866f2e958169b97e4279112830542 (patch)
tree408b188948b214dfa28051c3f258aa3e41c30f65
parenta5e44201d3c3fb669761d7460bc2346f01173929 (diff)
Add skeleton for transfer daemon
-rw-r--r--configure.in1
-rw-r--r--transfer/Makefile.am13
-rw-r--r--transfer/main.c31
3 files changed, 45 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 5ceb9ebf..baf00ef5 100644
--- a/configure.in
+++ b/configure.in
@@ -27,6 +27,7 @@ AC_FUNC_PPOLL
AC_PATH_BLUEZ
AC_PATH_DBUS
AC_PATH_GLIB
+AC_PATH_OPENOBEX
AC_PATH_OPENSYNC
AC_PATH_ALSA
AC_PATH_USB
diff --git a/transfer/Makefile.am b/transfer/Makefile.am
index 02742923..babe164e 100644
--- a/transfer/Makefile.am
+++ b/transfer/Makefile.am
@@ -1,2 +1,15 @@
+if OBEX
+noinst_PROGRAMS = transferd
+
+transferd_SOURCES = main.c
+
+LDADD = $(top_builddir)/common/libhelper.a \
+ @DBUS_LIBS@ @OPENOBEX_LIBS@ @BLUEZ_LIBS@
+endif
+
+AM_CFLAGS = @BLUEZ_CFLAGS@ @OPENOBEX_CFLAGS@ @DBUS_CFLAGS@
+
+INCLUDES = -I$(top_srcdir)/common
+
MAINTAINERCLEANFILES = Makefile.in
diff --git a/transfer/main.c b/transfer/main.c
new file mode 100644
index 00000000..5b2536ec
--- /dev/null
+++ b/transfer/main.c
@@ -0,0 +1,31 @@
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2006-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
+
+int main(int argc, char *argv[])
+{
+ return 0;
+}