diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-12-21 17:23:22 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-12-21 17:23:22 +0200 |
commit | 365a597557e3d368b69f84aaeb4b020f299fea20 (patch) | |
tree | 96b33a68e58102ce00f2cecbc8be58cf146d8de8 /src/profile.h | |
parent | f493c77f9ac37cf17b2206a02cb9192bfa1394b5 (diff) | |
download | bluez-365a597557e3d368b69f84aaeb4b020f299fea20.tar.gz |
core: Fix being able to register the same custom property multiple times
btd_profile_add_custom_prop should check if the a property with the same
name already exists, in addition to that btd_profile_add_custom_prop now
returns a boolean indicating the success or failure of the operation.
Diffstat (limited to 'src/profile.h')
-rw-r--r-- | src/profile.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/profile.h b/src/profile.h index 27ccdd3a4..d858925d8 100644 --- a/src/profile.h +++ b/src/profile.h @@ -67,7 +67,7 @@ typedef bool (*btd_profile_prop_get)(const char *uuid, DBusMessageIter *iter, void *user_data); -void btd_profile_add_custom_prop(const char *uuid, const char *type, +bool btd_profile_add_custom_prop(const char *uuid, const char *type, const char *name, btd_profile_prop_exists exists, btd_profile_prop_get get, |