30 #include "ortp/event.h"
41 #define o_list_next(elem) ((elem)->next)
43 OList * o_list_append(
OList *elem,
void * data);
44 OList * o_list_remove(
OList *list,
void *data);
49 #define INT_TO_POINTER(truc) ((long)(long)(truc))
50 #define POINTER_TO_INT(truc) ((int)(long)(truc))
70 #define hton24(x) ((( (x) & 0x00ff0000) >>16) | (( (x) & 0x000000ff) <<16) | ( (x) & 0x0000ff00) )
72 #define ntoh24(x) hton24(x)
74 #if defined(WIN32) || defined(_WIN32_WCE)
75 #define is_would_block_error(errnum) (errnum==WSAEWOULDBLOCK)
77 #define is_would_block_error(errnum) (errnum==EWOULDBLOCK || errnum==EAGAIN)
82 uint64_t ortp_timeval_to_ntp(
const struct timeval *tv);
ORTP_PUBLIC mblk_t * rtp_session_create_telephone_event_packet(RtpSession *session, int start)
Definition: telephonyevents.c:96
Definition: str_utils.h:75
ORTP_PUBLIC int session_set_select(SessionSet *recvs, SessionSet *sends, SessionSet *errors)
Definition: sessionset.c:113
ORTP_PUBLIC int rtp_session_read_telephone_event(RtpSession *session, mblk_t *packet, telephone_event_t **tab)
Definition: telephonyevents.c:304
Definition: str_utils.h:67
Definition: telephonyevents.h:33
ORTP_PUBLIC SessionSet * session_set_new(void)
Definition: sessionset.c:30
General purpose library functions.
ORTP_PUBLIC int rtp_session_send_telephone_events_supported(RtpSession *session)
Definition: telephonyevents.c:61
Definition: str_utils.h:49
ORTP_PUBLIC int rtp_session_sendm_with_ts(RtpSession *session, mblk_t *mp, uint32_t userts)
Definition: rtpsession.c:952
Definition: payloadtype.h:53
Definition: scheduler.h:28
ORTP_PUBLIC int rtp_session_add_telephone_event(RtpSession *session, mblk_t *packet, uint8_t event, int end, uint8_t volume, uint16_t duration)
Definition: telephonyevents.c:137
Sending and receiving multiple streams together with only one thread.
ORTP_PUBLIC int rtp_session_send_dtmf2(RtpSession *session, char dtmf, uint32_t userts, int duration)
Definition: telephonyevents.c:187
Definition: str_utils.h:149
Receiving and sending telephone events (RFC2833)
Definition: rtpsession.h:201
ORTP_PUBLIC int rtp_session_telephone_events_supported(RtpSession *session)
Definition: telephonyevents.c:44
ORTP_PUBLIC void session_set_destroy(SessionSet *set)
Definition: sessionset.c:43
ORTP_PUBLIC int rtp_session_send_dtmf(RtpSession *session, char dtmf, uint32_t userts)
Definition: telephonyevents.c:173
ORTP_PUBLIC int rtp_session_recv_telephone_events_supported(RtpSession *session)
Definition: telephonyevents.c:75
Definition: sessionset.h:88