summaryrefslogtreecommitdiff
path: root/src/sdpd-request.c
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2010-11-24 15:16:56 -0300
committerJohan Hedberg <johan.hedberg@nokia.com>2010-11-25 22:02:00 +0200
commitc23075506221ac49ffb5cb9452e49ef735180a6d (patch)
tree3754328ac7084b05fce6fa95350870651b07c091 /src/sdpd-request.c
parent565ffe72f8b23517953b23595cc7657276841073 (diff)
downloadbluez-c23075506221ac49ffb5cb9452e49ef735180a6d.tar.gz
sdpd header cleanup
Diffstat (limited to 'src/sdpd-request.c')
-rw-r--r--src/sdpd-request.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/sdpd-request.c b/src/sdpd-request.c
index 025de605e..9e4b6b80f 100644
--- a/src/sdpd-request.c
+++ b/src/sdpd-request.c
@@ -45,6 +45,16 @@
#include "sdpd.h"
#include "log.h"
+typedef struct {
+ uint32_t timestamp;
+ union {
+ uint16_t maxBytesSent;
+ uint16_t lastIndexSent;
+ } cStateValue;
+} sdp_cont_state_t;
+
+#define SDP_CONT_STATE_SIZE (sizeof(uint8_t) + sizeof(sdp_cont_state_t))
+
#define MIN(x, y) ((x) < (y)) ? (x): (y)
typedef struct _sdp_cstate_list sdp_cstate_list_t;
@@ -58,7 +68,7 @@ struct _sdp_cstate_list {
static sdp_cstate_list_t *cstates;
// FIXME: should probably remove it when it's found
-sdp_buf_t *sdp_get_cached_rsp(sdp_cont_state_t *cstate)
+static sdp_buf_t *sdp_get_cached_rsp(sdp_cont_state_t *cstate)
{
sdp_cstate_list_t *p;