diff options
author | emax <emax@FreeBSD.org> | 2005-05-27 19:11:33 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2005-05-27 19:11:33 +0000 |
commit | 720e9b2d9fb28b57fcae795d38e68d9396f1fb0c (patch) | |
tree | 4dbe1e40ae84309636c8070672a81ba7f90e84ca /lib/libsdp/sdp.3 | |
parent | 9409f5e4f1cae0b940f05349a61181c1a50eda6f (diff) | |
download | FreeBSD-src-720e9b2d9fb28b57fcae795d38e68d9396f1fb0c.zip FreeBSD-src-720e9b2d9fb28b57fcae795d38e68d9396f1fb0c.tar.gz |
Do not tread 128-bit UUID as int128. Provide separate macros to get/put
128-bit UUID libsdp(3). Fix 128-bit UUID printing in sdpcontrol(8).
MFC after: 3 days
Diffstat (limited to 'lib/libsdp/sdp.3')
-rw-r--r-- | lib/libsdp/sdp.3 | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/libsdp/sdp.3 b/lib/libsdp/sdp.3 index c48b595..e80d0ac 100644 --- a/lib/libsdp/sdp.3 +++ b/lib/libsdp/sdp.3 @@ -34,11 +34,13 @@ .Nm SDP_GET32 , .Nm SDP_GET64 , .Nm SDP_GET128 , +.Nm SDP_GET_UUID128 , .Nm SDP_PUT8 , .Nm SDP_PUT16 , .Nm SDP_PUT32 , .Nm SDP_PUT64 , .Nm SDP_PUT128 , +.Nm SDP_PUT_UUID128 , .Nm sdp_open , .Nm sdp_open_local , .Nm sdp_close , @@ -57,11 +59,13 @@ .Fn SDP_GET32 "l" "cp" .Fn SDP_GET64 "l" "cp" .Fn SDP_GET128 "l" "cp" +.Fn SDP_GET_UUID128 "l" "cp" .Fn SDP_PUT8 "b" "cp" .Fn SDP_PUT16 "s" "cp" .Fn SDP_PUT32 "l" "cp" .Fn SDP_PUT64 "l" "cp" .Fn SDP_PUT128 "l" "cp" +.Fn SDP_PUT_UUID128 "l" "cp" .Ft "void *" .Fn sdp_open "bdaddr_t const *l" "bdaddr_t const *r" .Ft "void *" @@ -117,6 +121,14 @@ into the buffer pointed by pointer. The pointer is automatically advanced. .Pp +.Fn SDP_GET_UUID128 +and +.Fn SDP_PUT_UUID128 +macros are used to get and put 128-bit UUID into the buffer pointed by +.Fa cp +pointer. +The pointer is automatically advanced. +.Pp The .Fn sdp_open and @@ -359,7 +371,7 @@ sdp_attr_t proto = { SDP_ATTR_INVALID,0,sizeof(buffer),buffer }; if ((ss = sdp_open(NG_HCI_BDADDR_ANY, remote)) == NULL) /* exit ENOMEM */ if (sdp_error(ss) != 0) - /* exit spd_error(ss) */ + /* exit sdp_error(ss) */ if (sdp_search(ss, 1, &serv, 1, &attr, 1, &proto) != 0) /* exit sdp_error(ss) */ |