Functions | Variables

announce.c File Reference

Include dependency graph for announce.c:

Functions

static void sap_destroy (vlc_object_t *p_this)
session_descriptor_tsout_AnnounceRegisterSDP (vlc_object_t *obj, const char *psz_sdp, const char *psz_dst)
 Registers a new session with the announce handler, using a pregenerated SDP.
int sout_AnnounceUnRegister (vlc_object_t *obj, session_descriptor_t *p_session)
 Unregisters an existing session.

Variables

static vlc_mutex_t sap_mutex = PTHREAD_MUTEX_INITIALIZER

Function Documentation

static void sap_destroy ( vlc_object_t p_this  )  [static]

References libvlc_priv().

Referenced by sout_AnnounceRegisterSDP().

session_descriptor_t* sout_AnnounceRegisterSDP ( vlc_object_t obj,
const char *  psz_sdp,
const char *  psz_dst 
)

Registers a new session with the announce handler, using a pregenerated SDP.

Parameters:
obj a VLC object
psz_sdp the SDP to register
psz_dst session address (needed for SAP address auto detection)
Returns:
the new session descriptor structure

References session_descriptor_t::addr, session_descriptor_t::addrlen, freeaddrinfo(), libvlc_priv(), msg_Dbg, msg_Err, session_descriptor_t::psz_sdp, SAP_Add(), SAP_Create(), sap_destroy(), sap_mutex, strdup(), vlc_getaddrinfo(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_OBJECT, vlc_object_hold, vlc_object_release, and vlc_object_set_destructor.

int sout_AnnounceUnRegister ( vlc_object_t obj,
session_descriptor_t p_session 
)

Unregisters an existing session.

Parameters:
obj a VLC object
p_session the session descriptor
Returns:
VLC_SUCCESS or an error

References libvlc_priv(), msg_Dbg, session_descriptor_t::psz_sdp, SAP_Del(), sap_mutex, vlc_mutex_lock(), vlc_mutex_unlock(), and vlc_object_release.


Variable Documentation

vlc_mutex_t sap_mutex = PTHREAD_MUTEX_INITIALIZER [static]
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines