From bff6703d6bac440bcf4e87c35892b34664852169 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Mon, 12 Aug 2013 15:13:22 +0300 Subject: [PATCH] build: Add obexctl command line client obexctl is intended to be a command line client of obexd. --- .gitignore | 1 + Makefile.tools | 7 ++++++- tools/obexctl.c | 31 +++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 tools/obexctl.c diff --git a/.gitignore b/.gitignore index e492c3fd3..6b9724701 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/Makefile.tools b/Makefile.tools index 87bb62e8d..840b95cbe 100644 --- a/Makefile.tools +++ b/Makefile.tools @@ -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 index 000000000..0006799e0 --- /dev/null +++ b/tools/obexctl.c @@ -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 +#endif + +int main(int argc, char *argv[]) +{ + return 0; +} -- 2.47.3