summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-service.h
diff options
context:
space:
mode:
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,