mediastreamer2 5.2.0
|
mediastreamer2 mscommon.h include file More...
#include <bctoolbox/port.h>
#include <bctoolbox/list.h>
#include <bctoolbox/logging.h>
#include <ortp/port.h>
#include <ortp/str_utils.h>
#include <ortp/payloadtype.h>
#include <time.h>
Data Structures | |
struct | UInt96 |
struct | UInt128 |
Macros | |
#define | MS_UNUSED(x) ((void)(x)) |
#define | ms_malloc ortp_malloc |
#define | ms_malloc0 ortp_malloc0 |
#define | ms_realloc ortp_realloc |
#define | ms_new ortp_new |
#define | ms_new0 ortp_new0 |
#define | ms_free ortp_free |
#define | ms_strdup ortp_strdup |
#define | ms_strndup bctbx_strndup |
#define | ms_strdup_printf ortp_strdup_printf |
#define | ms_strcat_printf ortp_strcat_printf |
#define | ms_mutex_t ortp_mutex_t |
#define | ms_mutex_init ortp_mutex_init |
#define | ms_mutex_destroy ortp_mutex_destroy |
#define | ms_mutex_lock ortp_mutex_lock |
#define | ms_mutex_unlock ortp_mutex_unlock |
#define | ms_cond_t ortp_cond_t |
#define | ms_cond_init ortp_cond_init |
#define | ms_cond_wait ortp_cond_wait |
#define | ms_cond_signal ortp_cond_signal |
#define | ms_cond_broadcast ortp_cond_broadcast |
#define | ms_cond_destroy ortp_cond_destroy |
#define | MS_DEFAULT_MAX_PAYLOAD_SIZE 1440 |
#define | MS2_INLINE ORTP_INLINE |
#define | MS2_PUBLIC |
#define | MS2_VAR_PUBLIC extern |
#define | ms_time time |
#define | ms_debug(fmt, ...) |
#define | ms_message bctbx_message |
#define | ms_warning bctbx_warning |
#define | ms_error bctbx_error |
#define | ms_fatal bctbx_fatal |
#define | ms_return_val_if_fail(_expr_, _ret_) if (!(_expr_)) { ms_fatal("assert "#_expr_ "failed"); return (_ret_);} |
#define | ms_return_if_fail(_expr_) if (!(_expr_)){ ms_fatal("assert "#_expr_ "failed"); return ;} |
#define | ms_thread_t ortp_thread_t |
#define | ms_thread_create ortp_thread_create |
#define | ms_thread_join ortp_thread_join |
#define | ms_thread_self ortp_thread_self |
#define | ms_get_cur_time ortp_get_cur_time |
#define | ms_get_cur_time_ms bctbx_get_cur_time_ms |
#define | MSList bctbx_list_t |
#define | MIN(a, b) ((a)>(b) ? (b) : (a)) |
#define | MAX(a, b) ((a)>(b) ? (a) : (b)) |
#define | ms_init() ms_base_init(), ms_voip_init(), ms_plugins_init() |
#define | ms_exit() ms_voip_exit(), ms_plugins_exit(), ms_base_exit() |
Functions | |
void | ms_thread_exit (void *ret_val) |
bctbx_list_t * | ms_list_append (bctbx_list_t *list, void *data) |
bctbx_list_t * | ms_list_append_link (bctbx_list_t *list, bctbx_list_t *new_elem) |
bctbx_list_t * | ms_list_prepend (bctbx_list_t *list, void *data) |
bctbx_list_t * | ms_list_free (bctbx_list_t *list) |
bctbx_list_t * | ms_list_free_with_data (bctbx_list_t *list, void(*freefunc)(void *)) |
bctbx_list_t * | ms_list_concat (bctbx_list_t *first, bctbx_list_t *second) |
bctbx_list_t * | ms_list_remove (bctbx_list_t *list, void *data) |
bctbx_list_t * | ms_list_remove_custom (bctbx_list_t *list, MSCompareFunc compare_func, const void *user_data) |
int | ms_list_size (const bctbx_list_t *list) |
void | ms_list_for_each (const bctbx_list_t *list, MSIterateFunc iterate_func) |
void | ms_list_for_each2 (const bctbx_list_t *list, MSIterate2Func iterate_func, void *user_data) |
void | ms_list_for_each3 (const bctbx_list_t *list, MSIterate3Func iterate_func, void *user_data, void *factory) |
bctbx_list_t * | ms_list_remove_link (bctbx_list_t *list, bctbx_list_t *elem) |
bctbx_list_t * | ms_list_find (bctbx_list_t *list, void *data) |
bctbx_list_t * | ms_list_find_custom (bctbx_list_t *list, MSCompareFunc compare_func, const void *user_data) |
void * | ms_list_nth_data (const bctbx_list_t *list, int index) |
int | ms_list_position (const bctbx_list_t *list, bctbx_list_t *elem) |
int | ms_list_index (const bctbx_list_t *list, void *data) |
bctbx_list_t * | ms_list_insert_sorted (bctbx_list_t *list, void *data, MSCompareFunc compare_func) |
bctbx_list_t * | ms_list_insert (bctbx_list_t *list, bctbx_list_t *before, void *data) |
bctbx_list_t * | ms_list_copy (const bctbx_list_t *list) |
bctbx_list_t * | ms_list_copy_with_data (const bctbx_list_t *list, void *(*copyfunc)(void *)) |
bctbx_list_t * | ms_list_next (const bctbx_list_t *list) |
char * | ms_tags_list_as_string (const bctbx_list_t *list) |
bool_t | ms_tags_list_contains_tag (const bctbx_list_t *list, const char *tag) |
void | ms_base_init (void) |
void | ms_voip_init (void) |
void | ms_plugins_init (void) |
void | ms_set_plugins_dir (const char *path) |
int | ms_load_plugins (const char *directory) |
void | ms_base_exit (void) |
void | ms_voip_exit (void) |
void | ms_plugins_exit (void) |
void | ms_sleep (int seconds) |
void | ms_usleep (uint64_t usec) |
int | ms_get_payload_max_size (void) |
void | ms_set_payload_max_size (int size) |
int | ms_discover_mtu (const char *destination_host) |
void | ms_set_mtu (int mtu) |
int | ms_get_mtu (void) |
void | ms_set_cpu_count (unsigned int c) |
unsigned int | ms_get_cpu_count (void) |
void | ms_sound_device_description_add (const char *manufacturer, const char *model, const char *platform, unsigned int flags, int delay, int recommended_rate) |
bool_t | ms_is_ipv6 (const char *address) |
bool_t | ms_is_multicast_addr (const struct sockaddr *address) |
bool_t | ms_is_multicast (const char *address) |
char * | ms_load_file_content (FILE *file, size_t *nbytes) |
char * | ms_load_path_content (const char *path, size_t *nbytes) |
mediastreamer2 mscommon.h include file
This file provide the API needed to initialize and reset the mediastreamer2 library.