OSDN Git Service

build: Add obexctl command line client
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Aug 2013 12:13:22 +0000 (15:13 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 15 Oct 2013 13:50:13 +0000 (16:50 +0300)
obexctl is intended to be a command line client of obexd.

.gitignore
Makefile.tools
tools/obexctl.c [new file with mode: 0644]

index e492c3f..6b97247 100644 (file)
@@ -65,6 +65,7 @@ tools/bluetooth-player
 tools/l2cap-tester
 tools/sco-tester
 tools/btinfo
+tools/obexctl
 test/sap_client.pyc
 test/bluezutils.pyc
 unit/test-eir
index 87bb62e..840b95c 100644 (file)
@@ -218,7 +218,7 @@ endif
 if READLINE
 noinst_PROGRAMS += attrib/gatttool \
                        tools/obex-client-tool tools/obex-server-tool \
-                       tools/bluetooth-player
+                       tools/bluetooth-player tools/obexctl
 
 attrib_gatttool_SOURCES = attrib/gatttool.c attrib/att.c attrib/gatt.c \
                                attrib/gattrib.c btio/btio.c \
@@ -240,6 +240,11 @@ tools_bluetooth_player_SOURCES = tools/bluetooth-player.c \
                                client/display.h client/display.c
 tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
                                @GLIB_LIBS@ @DBUS_LIBS@ -lreadline
+
+tools_obexctl_SOURCES = tools/obexctl.c \
+                               client/display.h client/display.c
+tools_obexctl_LDADD = gdbus/libgdbus-internal.la \
+                               @GLIB_LIBS@ @DBUS_LIBS@ -lreadline
 endif
 
 if EXPERIMENTAL
diff --git a/tools/obexctl.c b/tools/obexctl.c
new file mode 100644 (file)
index 0000000..0006799
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ *
+ *  BlueZ - Bluetooth protocol stack for Linux
+ *
+ *  Copyright (C) 2013  Intel Corporation. All rights reserved.
+ *
+ *
+ *  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;
+}