diff options
Diffstat (limited to 'sdpd')
-rw-r--r-- | sdpd/sdpd.h | 2 | ||||
-rw-r--r-- | sdpd/service.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/sdpd/sdpd.h b/sdpd/sdpd.h index d3d45b85..dbb1ee09 100644 --- a/sdpd/sdpd.h +++ b/sdpd/sdpd.h @@ -86,3 +86,5 @@ void stop_sdp_server(void); int add_record_to_server(sdp_record_t *rec); int remove_record_from_server(uint32_t handle); + +uint8_t get_service_classes(void); 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) |