summaryrefslogtreecommitdiff
path: root/src/profile.h
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-11-09 14:12:05 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-11-09 16:52:48 +0200
commitab2297f2f494e7cb4cbdb8a2bbfbf4c2d41f62cf (patch)
treedcf555199b09bc9d677f1ceacab6ac272b768103 /src/profile.h
parentc4b6d0376785a5ec433400b52727f2e779e1d75e (diff)
downloadbluez-ab2297f2f494e7cb4cbdb8a2bbfbf4c2d41f62cf.tar.gz
core: Add support for custom Profile.NewConnection properties
Diffstat (limited to 'src/profile.h')
-rw-r--r--src/profile.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/profile.h b/src/profile.h
index e20b38354..7ece2bf5c 100644
--- a/src/profile.h
+++ b/src/profile.h
@@ -59,6 +59,21 @@ void btd_profile_foreach(void (*func)(struct btd_profile *p, void *data),
int btd_profile_register(struct btd_profile *profile);
void btd_profile_unregister(struct btd_profile *profile);
+typedef bool (*btd_profile_prop_exists)(const char *uuid,
+ struct btd_device *dev,
+ void *user_data);
+
+typedef bool (*btd_profile_prop_get)(const char *uuid,
+ struct btd_device *dev,
+ DBusMessageIter *iter,
+ void *user_data);
+
+void btd_profile_add_custom_prop(const char *uuid, const char *type,
+ const char *name,
+ btd_profile_prop_exists exists,
+ btd_profile_prop_get get,
+ void *user_data);
+
void btd_profile_cleanup(void);
DBusMessage *btd_profile_reg_ext(DBusConnection *conn, DBusMessage *msg,