Commit 087b7092 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

sdp module: using isize_t in API.

parent 36243851
......@@ -58,8 +58,8 @@ struct sdp_printer_s {
int pr_size;
su_home_t *pr_home;
char *pr_buffer;
int pr_bsiz;
int pr_used;
size_t pr_bsiz;
size_t pr_used;
/* various flags */
unsigned pr_ok : 1;
unsigned pr_strict : 1;
......@@ -116,7 +116,7 @@ static void print_session(sdp_printer_t *p, sdp_session_t const *session);
sdp_printer_t *sdp_print(su_home_t *home,
sdp_session_t const *session,
char msgbuf[],
int msgsize,
isize_t msgsize,
int flags)
sdp_printer_t *p = su_salloc(home, sizeof(*p));
......@@ -203,7 +203,7 @@ char const *sdp_message(sdp_printer_t *p)
* The function sdp_message_size() returns number of bytes in SDP
* message or @c 0 upon an error.
int sdp_message_size(sdp_printer_t *p)
isize_t sdp_message_size(sdp_printer_t *p)
if (p && p->pr_ok)
return p->pr_used;
......@@ -544,10 +544,10 @@ typedef struct sdp_printer_s sdp_printer_t;
typedef sdp_printer_t *sdp_printer;
SOFIAPUBFUN sdp_printer_t *sdp_print(su_home_t *, sdp_session_t const *session,
char msgbuf[], int maxmsgsize, int flags);
char msgbuf[], isize_t maxmsgsize, int flags);
SOFIAPUBFUN char const *sdp_printing_error(sdp_printer_t *p);
SOFIAPUBFUN char const *sdp_message(sdp_printer_t *p);
SOFIAPUBFUN int sdp_message_size(sdp_printer_t *p);
SOFIAPUBFUN isize_t sdp_message_size(sdp_printer_t *p);
SOFIAPUBFUN void sdp_printer_free(sdp_printer_t *p);
#define sdp_mapped_attribute_find sdp_attribute_mapped_find
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment