summaryrefslogtreecommitdiffstats
path: root/sdpd/service.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-08-22 01:50:41 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-08-22 01:50:41 +0000
commitb22d297c0c679b400d7825367e31fed46c552a49 (patch)
tree48f403d960004356af7ce70bedfc4f2490231945 /sdpd/service.c
parent145dfdd4b2e09f6b5b9e0be03d134c0242261b81 (diff)
First attempt for automatic setting of service classes value
Diffstat (limited to 'sdpd/service.c')
-rw-r--r--sdpd/service.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/sdpd/service.c b/sdpd/service.c
index e37a0c38..f84ddc9a 100644
--- a/sdpd/service.c
+++ b/sdpd/service.c
@@ -42,7 +42,9 @@
#include "sdpd.h"
#include "logging.h"
-static sdp_record_t *server;
+static sdp_record_t *server = NULL;
+
+static uint8_t service_classes = 0x00;
/*
* List of version numbers supported by the SDP server.
@@ -117,6 +119,13 @@ static void update_svclass_list(void)
}
debug("Service classes 0x%02x", val);
+
+ service_classes = val;
+}
+
+uint8_t get_service_classes(void)
+{
+ return service_classes;
}
void register_public_browse_group(void)