diff options
author | emax <emax@FreeBSD.org> | 2004-01-09 18:19:12 +0000 |
---|---|---|
committer | emax <emax@FreeBSD.org> | 2004-01-09 18:19:12 +0000 |
commit | a67ee2bd6ef51c55ecdd5ff68d710908cf65d27f (patch) | |
tree | 6edd52105de3fc153df6b4a94ba397fac5c090a0 /lib/libsdp/sdp.3 | |
parent | 2497266fae5105d666d9b331cbf142d8308fd9ce (diff) | |
download | FreeBSD-src-a67ee2bd6ef51c55ecdd5ff68d710908cf65d27f.zip FreeBSD-src-a67ee2bd6ef51c55ecdd5ff68d710908cf65d27f.tar.gz |
Prepare libsdp(3) for the upcoming sdpd import
Also while i'm here s/u_int/uint
Reviewed by: imp (mentor), ru
Diffstat (limited to 'lib/libsdp/sdp.3')
-rw-r--r-- | lib/libsdp/sdp.3 | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/libsdp/sdp.3 b/lib/libsdp/sdp.3 index 94ef34e..88c6ff7 100644 --- a/lib/libsdp/sdp.3 +++ b/lib/libsdp/sdp.3 @@ -79,11 +79,11 @@ .Ft int32_t .Fn sdp_error "void *xs" .Ft int32_t -.Fn sdp_search "void *xs" "u_int32_t plen" "u_int16_t const *pp" "u_int32_t alen" "u_int32_t const *ap" "u_int32_t vlen" "sdp_attr_t *vp" +.Fn sdp_search "void *xs" "uint32_t plen" "uint16_t const *pp" "uint32_t alen" "uint32_t const *ap" "uint32_t vlen" "sdp_attr_t *vp" .Ft char const * const -.Fn sdp_attr2desc "u_int16_t attr" +.Fn sdp_attr2desc "uint16_t attr" .Ft char const * const -.Fn sdp_uuid2desc "u_int16_t uuid" +.Fn sdp_uuid2desc "uint16_t uuid" .Sh DESCRIPTION The .Fn SDP_GET8 , @@ -204,13 +204,13 @@ Each structure describes single SDP attribute and defined as follows: .Bd -literal -offset indent struct sdp_attr { - u_int16_t flags; + uint16_t flags; #define SDP_ATTR_OK (0 << 0) #define SDP_ATTR_INVALID (1 << 0) #define SDP_ATTR_TRUNCATED (1 << 1) - u_int16_t attr; /* SDP_ATTR_xxx */ - u_int32_t vlen; /* length of the value[] in bytes */ - u_int8_t *value; /* base pointer */ + uint16_t attr; /* SDP_ATTR_xxx */ + uint32_t vlen; /* length of the value[] in bytes */ + uint8_t *value; /* base pointer */ }; typedef struct sdp_attr sdp_attr_t; typedef struct sdp_attr * sdp_attr_p; @@ -258,10 +258,10 @@ attribute for the service from the remote device. .Bd -literal -offset indent bdaddr_t remote; -u_int8_t buffer[1024]; +uint8_t buffer[1024]; void *ss = NULL; -u_int16_t serv = SDP_SERVICE_CLASS_SERIAL_PORT; -u_int32_t attr = SDP_ATTR_RANGE( +uint16_t serv = SDP_SERVICE_CLASS_SERIAL_PORT; +uint32_t attr = SDP_ATTR_RANGE( SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST, SDP_ATTR_PROTOCOL_DESCRIPTOR_LIST); sdp_attr_t proto = { SDP_ATTR_INVALID,0,sizeof(buffer),buffer }; |