summaryrefslogtreecommitdiff
path: root/tools/bluetooth-player.c
diff options
context:
space:
mode:
authorERAMOTO Masaya <eramoto.masaya@jp.fujitsu.com>2018-03-26 17:31:04 +0900
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2018-03-27 13:58:19 +0300
commite2a31b1b933e3dc701427ee905a8dda3318158e8 (patch)
treee3b6a369a2861c01f43a24604c1714e247251d97 /tools/bluetooth-player.c
parent14388c1d949616f4df9476caa049c91c38f806a5 (diff)
downloadbluez-e2a31b1b933e3dc701427ee905a8dda3318158e8.tar.gz
tools/bluetooth-player: Return exit status for non-interactive
Diffstat (limited to 'tools/bluetooth-player.c')
-rw-r--r--tools/bluetooth-player.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/bluetooth-player.c b/tools/bluetooth-player.c
index 441a934cc..ccb0b5ee5 100644
--- a/tools/bluetooth-player.c
+++ b/tools/bluetooth-player.c
@@ -1119,6 +1119,7 @@ static void property_changed(GDBusProxy *proxy, const char *name,
int main(int argc, char *argv[])
{
GDBusClient *client;
+ int status;
bt_shell_init(argc, argv, NULL);
bt_shell_set_menu(&main_menu);
@@ -1134,11 +1135,11 @@ int main(int argc, char *argv[])
g_dbus_client_set_proxy_handlers(client, proxy_added, proxy_removed,
property_changed, NULL);
- bt_shell_run();
+ status = bt_shell_run();
g_dbus_client_unref(client);
dbus_connection_unref(dbus_conn);
- return 0;
+ return status;
}