summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-common.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-25 22:14:22 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2007-04-25 22:14:22 +0000
commit44847d5dfc0eebba1cebad1fbc89895901bfe09b (patch)
tree8021bc6f212c44e978f1c08f84eb5f6b02a6f186 /hcid/dbus-common.c
parenteefb64d927b48d2de2e100b1f7ee715bf86bbb57 (diff)
Added UpdateServiceRecord
Diffstat (limited to 'hcid/dbus-common.c')
-rw-r--r--hcid/dbus-common.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/hcid/dbus-common.c b/hcid/dbus-common.c
index 7ea19ba9..cccf8da4 100644
--- a/hcid/dbus-common.c
+++ b/hcid/dbus-common.c
@@ -451,6 +451,23 @@ int register_sdp_record(sdp_record_t *rec)
return err;
}
+int update_sdp_record(uint32_t handle, sdp_record_t *rec)
+{
+ if (!get_sdp_session())
+ return -1;
+
+ /* Update on the server */
+ rec->handle = handle;
+ if (sdp_device_record_update(sess, BDADDR_ANY, rec)) {
+ cleanup_sdp_session();
+ error("Service Record update failed: %s(%d).\n",
+ strerror(errno), errno);
+ return -1;
+ }
+
+ return 0;
+}
+
int unregister_sdp_record(uint32_t handle)
{
int err;