chiark / gitweb /
scripts/teardown.in no longer removes things that are (now) installed
[disorder] / clients / playrtp-mem.c
index e101978bad0aafaa7bbabe73fe73ff9aafac7400..2a868de87bd1d1874e868782582a23fc77e32835 100644 (file)
  * @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"
@@ -63,7 +60,7 @@ static size_t count_free_packets;
 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);
@@ -83,7 +80,7 @@ struct packet *new_packet(void) {
 }
 
 /** @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;