#include "config.h"
#include <sofia-sip/su_alloc.h>
#include "sofia-sip/sdp.h"
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
Include dependency graph for sdp_print.c:
Functions | |
sdp_printer_t * | sdp_print (su_home_t *home, sdp_session_t const *session, char msgbuf[], isize_t msgsize, int flags) |
Print a SDP description. | |
char const * | sdp_printing_error (sdp_printer_t *p) |
Get encoding error. | |
char const * | sdp_message (sdp_printer_t *p) |
Get encoded SDP message. | |
isize_t | sdp_message_size (sdp_printer_t *p) |
Get size of encoded SDP message. | |
void | sdp_printer_free (sdp_printer_t *p) |
Free a SDP printer. |
char const* sdp_message | ( | sdp_printer_t * | p | ) |
Get encoded SDP message.
Return a pointer to a C string containing the SDP message.
p | Pointer to an sdp_printer_t object. |
isize_t sdp_message_size | ( | sdp_printer_t * | p | ) |
Get size of encoded SDP message.
Return the size of the encoded SDP message.
p | Pointer to an sdp_printer_t object. |
sdp_printer_t* sdp_print | ( | su_home_t * | home, | |
sdp_session_t const * | session, | |||
char | msgbuf[], | |||
isize_t | msgsize, | |||
int | flags | |||
) |
Print a SDP description.
Encode the contents of the SDP session structure sdp_session_t to the msgbuf. The msgbuf has size msgsize bytes. If msgbuf is NULL
, the sdp_print() function allocates the required buffer from the home heap.
home | Memory home (may be NULL). | |
session | SDP session description structure to be encoded. | |
msgbuf | Buffer to which encoding is stored (may be NULL). | |
msgsize | Size of msgbuf. | |
flags | Flags specifying the encoding options. |
sdp_print()
may allocate a new buffer for it from the heap.void sdp_printer_free | ( | sdp_printer_t * | p | ) |
Free a SDP printer.
Free the printer object p and the message buffer possibly associated with it.
p | Pointer to an sdp_printer_t object. |
char const* sdp_printing_error | ( | sdp_printer_t * | p | ) |
Get encoding error.
Return a message describing the encoding error.
p | Pointer to an sdp_printer_t object. |