X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/8e3fe3d8ea9f5e75b6f1be4e4ae8cf2c16db88e3..c0f84b88cab9518d29900e02a9fb67776820e902:/clients/playrtp-mem.c?ds=inline
diff --git a/clients/playrtp-mem.c b/clients/playrtp-mem.c
index e101978..ce45c9c 100644
--- a/clients/playrtp-mem.c
+++ b/clients/playrtp-mem.c
@@ -2,31 +2,26 @@
* This file is part of DisOrder.
* Copyright (C) 2007 Richard Kettlewell
*
- * This program is free software; you can redistribute it and/or modify
+ * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
- * This program is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * General Public License for more details.
- *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
+ * along with this program. If not, see .
*/
/** @file clients/playrtp-mem.c
* @brief RTP player memory management
*/
-#include
-#include "types.h"
+#include "common.h"
#include
-#include
-#include
#include "mem.h"
#include "vector.h"
@@ -63,7 +58,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 +78,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;