* @brief RTP player memory management
*/
-#include <config.h>
-#include "types.h"
+#include "common.h"
#include <pthread.h>
-#include <assert.h>
-#include <string.h>
#include "mem.h"
#include "vector.h"
static pthread_mutex_t mem_lock = PTHREAD_MUTEX_INITIALIZER;
/** @brief Return a new packet */
-struct packet *new_packet(void) {
+struct packet *playrtp_new_packet(void) {
struct packet *p;
pthread_mutex_lock(&mem_lock);
}
/** @brief Free a packet */
-void free_packet(struct packet *p) {
+void playrtp_free_packet(struct packet *p) {
union free_packet *u = (union free_packet *)p;
pthread_mutex_lock(&mem_lock);
u->next = free_packets;