summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.h
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-08 13:41:17 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2006-11-08 13:41:17 +0000
commit346cb4d17e492265b9e14c6352c8ee6c564b5498 (patch)
tree02642134862d6df694658abe41d6c315b040c82b /hcid/dbus-service.h
parent4ed477329df88211caca3806824249fab80f5a7e (diff)
Register the service record using the binary registration function
Diffstat (limited to 'hcid/dbus-service.h')
-rw-r--r--hcid/dbus-service.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/hcid/dbus-service.h b/hcid/dbus-service.h
index 3ed36099..4476d937 100644
--- a/hcid/dbus-service.h
+++ b/hcid/dbus-service.h
@@ -34,7 +34,7 @@ struct service_agent {
char *description;
int running;
struct slist *trusted_devices;
- struct slist *records;
+ struct slist *records; /* list of binary records */
};
struct service_call {
@@ -43,6 +43,15 @@ struct service_call {
struct service_agent *agent;
};
+struct binary_record {
+ uint32_t handle;
+ sdp_buf_t *buf;
+};
+
+struct binary_record *binary_record_new();
+void binary_record_free(struct binary_record *rec);
+int binary_record_cmp(struct binary_record *rec, uint32_t *handle);
+
int register_service_agent(DBusConnection *conn, const char *sender, const char *path,
const char *name, const char *description);
int unregister_service_agent(DBusConnection *conn, const char *sender,