diff options
author | Vinicius Costa Gomes <vinicius.gomes@openbossa.org> | 2013-02-01 20:33:07 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-02-14 08:47:10 -0600 |
commit | 22f05f7832239561d80c93f281b3033396d50f68 (patch) | |
tree | 8ff2286c9f754aec41a1073541ed6bd99ad68fb1 /plugins/bluez5.h | |
parent | 86224f57241f7155917f9135b99394503ee94029 (diff) | |
download | ofono-22f05f7832239561d80c93f281b3033396d50f68.tar.bz2 |
bluez5: Add support for Connecting/Disconnecting per UUID
This adds supports for sending the ConnectProfile() and
DisconnectProfile() messages for the org.bluez.Device1 interface.
Diffstat (limited to 'plugins/bluez5.h')
-rw-r--r-- | plugins/bluez5.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/bluez5.h b/plugins/bluez5.h index 16245ebd..3155901e 100644 --- a/plugins/bluez5.h +++ b/plugins/bluez5.h @@ -73,3 +73,13 @@ int bt_register_profile(DBusConnection *conn, const char *uuid, const char *name, const char *object); void bt_unregister_profile(DBusConnection *conn, const char *object); + +typedef void (*bt_finish_cb)(gboolean success, gpointer user_data); + +void bt_connect_profile(DBusConnection *conn, + const char *device, const char *uuid, + bt_finish_cb cb, gpointer user_data); + +void bt_disconnect_profile(DBusConnection *conn, + const char *device, const char *uuid, + bt_finish_cb cb, gpointer user_data); |