/* * CCRTP4C (A wrapper for ccRTP so you can use it in C programs) * Copyright Anthony Minessale II * */ #ifndef CCRTP4C_H #define CCRTP4C_H #ifdef __cplusplus #include #include #include #include #include #include #ifndef WIN32 #include #include #else #include #endif // WIN32 #if 0 #include #include #include #include #endif extern "C" { #endif typedef enum { SR, RR, SDES, BYE, APP, UNK } jrtp4c_packet_t; #ifndef uint32_t #ifdef WIN32 typedef unsigned int uint32_t; #else #include #endif #endif struct jrtp4c; struct jrtp4c *jrtp4c_new(char *rx_ip, int rx_port, char *tx_ip, int tx_port, int payload, int sps, const char **err); void jrtp4c_destroy(struct jrtp4c **jrtp4c); int jrtp4c_read(struct jrtp4c *jrtp4c, void *data, int datalen, int *payload_type); int jrtp4c_write(struct jrtp4c *jrtp4c, void *data, int datalen, uint32_t ts); uint32_t jrtp4c_start(struct jrtp4c *jrtp4c); uint32_t jrtp4c_get_ssrc(struct jrtp4c *jrtp4c); void jrtp4c_killread(struct jrtp4c *jrtp4c); #ifdef __cplusplus } #endif #endif