I will resend this patch due to a wrong commit message.
On Mon, Feb 25, 2013 at 5:36 PM, Paulo Borges <[email protected]>wrote:
> This commit allows asymmetric profiles that do not have UUIDs
> available to uniquely identify which role is been registered.
> ---
> plugins/bluez5.c | 5 ++++-
> plugins/bluez5.h | 2 +-
> 2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/plugins/bluez5.c b/plugins/bluez5.c
> index 788f3a2..04dd39d 100644
> --- a/plugins/bluez5.c
> +++ b/plugins/bluez5.c
> @@ -110,7 +110,7 @@ done:
>
> int bt_register_profile(DBusConnection *conn, const char *uuid,
> uint16_t version, const char *name,
> - const char *object)
> + const char *object, const char*
> role)
> {
> DBusMessageIter iter, dict;
> DBusPendingCall *c;
> @@ -129,6 +129,9 @@ int bt_register_profile(DBusConnection *conn, const
> char *uuid,
> ofono_dbus_dict_append(&dict, "Name", DBUS_TYPE_STRING, &name);
> ofono_dbus_dict_append(&dict, "Version", DBUS_TYPE_UINT16,
> &version);
>
> + if (role)
> + ofono_dbus_dict_append(&dict, "Role", DBUS_TYPE_STRING,
> &role);
> +
> dbus_message_iter_close_container(&iter, &dict);
>
> if (!dbus_connection_send_with_reply(conn, msg, &c, -1)) {
> diff --git a/plugins/bluez5.h b/plugins/bluez5.h
> index 1432068..17e925f 100644
> --- a/plugins/bluez5.h
> +++ b/plugins/bluez5.h
> @@ -71,7 +71,7 @@ int bt_bacmp(const bdaddr_t *ba1, const bdaddr_t *ba2);
>
> int bt_register_profile(DBusConnection *conn, const char *uuid,
> uint16_t version, const char *name,
> - const char *object);
> + const char *object, const char
> *role);
>
> void bt_unregister_profile(DBusConnection *conn, const char *object);
>
> --
> 1.7.9.5
>
>
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono