aboutsummaryrefslogtreecommitdiff
path: root/lib/libsdp/sdp.h
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@FreeBSD.org>2008-03-11 00:08:40 +0000
committerMaksim Yevmenkin <emax@FreeBSD.org>2008-03-11 00:08:40 +0000
commite096d1e4ba3a4eae9dced02c72e03343ba201b8e (patch)
treeea4889a1d6ba2b01507d86804f52993068e8d31f /lib/libsdp/sdp.h
parent82f1b132a4e99f66895b673d9d25882c836d5345 (diff)
downloadsrc-e096d1e4ba3a4eae9dced02c72e03343ba201b8e.tar.gz
src-e096d1e4ba3a4eae9dced02c72e03343ba201b8e.zip
Add structures to hold SDP parameters for the NAP, GN and PANU profiles.
It should be mentioned that a somewhat similar patch was submitted by Rako < rako29 at gmail dot com > MFC after: 1 week
Notes
Notes: svn path=/head/; revision=177044
Diffstat (limited to 'lib/libsdp/sdp.h')
-rw-r--r--lib/libsdp/sdp.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libsdp/sdp.h b/lib/libsdp/sdp.h
index 96bde638a43c..8d78ae889912 100644
--- a/lib/libsdp/sdp.h
+++ b/lib/libsdp/sdp.h
@@ -647,6 +647,23 @@ struct sdp_sp_profile
typedef struct sdp_sp_profile sdp_sp_profile_t;
typedef struct sdp_sp_profile * sdp_sp_profile_p;
+struct sdp_nap_profile
+{
+ uint16_t security_description; /* HBO: NAP/GN */
+ uint16_t net_access_type; /* HBO: NAP */
+ uint32_t max_net_access_rate; /* HBO: NAP */
+};
+typedef struct sdp_nap_profile sdp_nap_profile_t;
+typedef struct sdp_nap_profile * sdp_nap_profile_p;
+
+/* Reuse struct sdp_nap_profile for GN */
+typedef struct sdp_nap_profile sdp_gn_profile_t;
+typedef struct sdp_nap_profile * sdp_gn_profile_p;
+
+/* Reuse struct sdp_nap_profile for PANU */
+typedef struct sdp_nap_profile sdp_panu_profile_t;
+typedef struct sdp_nap_profile * sdp_panu_profile_p;
+
int32_t sdp_register_service (void *xss, uint16_t uuid,
bdaddr_p const bdaddr, uint8_t const *data,
uint32_t datalen, uint32_t *handle);