diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-11-17 11:35:12 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-11-17 16:00:19 +0200 |
commit | 0fb2aff3164567f000b4ef40b91d41c70287e6c6 (patch) | |
tree | 6178d8ec99ed70d317855b8cb7e8493fe0cf47ef /client/gatt.h | |
parent | 7319353d40ab22b4e7775125952f631785520dc5 (diff) | |
download | bluez-0fb2aff3164567f000b4ef40b91d41c70287e6c6.tar.gz |
shared/shell: Use wordexp to parse arguments
This ensures the arguments are parsed properly.
Diffstat (limited to 'client/gatt.h')
-rw-r--r-- | client/gatt.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/client/gatt.h b/client/gatt.h index 9bab42902..f4c36b870 100644 --- a/client/gatt.h +++ b/client/gatt.h @@ -47,18 +47,21 @@ void gatt_release_notify(GDBusProxy *proxy, const char *arg); void gatt_add_manager(GDBusProxy *proxy); void gatt_remove_manager(GDBusProxy *proxy); -void gatt_register_app(DBusConnection *conn, GDBusProxy *proxy, wordexp_t *w); +void gatt_register_app(DBusConnection *conn, GDBusProxy *proxy, + int argc, char *argv[]); void gatt_unregister_app(DBusConnection *conn, GDBusProxy *proxy); void gatt_register_service(DBusConnection *conn, GDBusProxy *proxy, - wordexp_t *w); + int argc, char *argv[]); void gatt_unregister_service(DBusConnection *conn, GDBusProxy *proxy, - wordexp_t *w); + int argc, char *argv[]); -void gatt_register_chrc(DBusConnection *conn, GDBusProxy *proxy, wordexp_t *w); +void gatt_register_chrc(DBusConnection *conn, GDBusProxy *proxy, + int argc, char *argv[]); void gatt_unregister_chrc(DBusConnection *conn, GDBusProxy *proxy, - wordexp_t *w); + int argc, char *argv[]); -void gatt_register_desc(DBusConnection *conn, GDBusProxy *proxy, wordexp_t *w); +void gatt_register_desc(DBusConnection *conn, GDBusProxy *proxy, + int argc, char *argv[]); void gatt_unregister_desc(DBusConnection *conn, GDBusProxy *proxy, - wordexp_t *w); + int argc, char *argv[]); |