summaryrefslogtreecommitdiffstats
path: root/sdpd/servicedb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sdpd/servicedb.c')
-rw-r--r--sdpd/servicedb.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/sdpd/servicedb.c b/sdpd/servicedb.c
index 5a6469f5..9f87eca6 100644
--- a/sdpd/servicedb.c
+++ b/sdpd/servicedb.c
@@ -203,3 +203,13 @@ sdp_list_t *sdp_get_record_list()
{
return service_db;
}
+
+uint32_t sdp_next_handle(void)
+{
+ uint32_t handle = 0x10000;
+
+ while (sdp_record_find(handle))
+ handle++;
+
+ return handle;
+}