gui: Use variable-sized input buffer for the audiod pipe.
[paraslash.git] / dccp_send.c
index d66b800..1e62d28 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -13,6 +13,7 @@
 
 #include <sys/types.h>
 #include <dirent.h>
+#include <osl.h>
 
 #include "para.h"
 #include "error.h"
@@ -63,13 +64,14 @@ static void dccp_post_select(fd_set *rfds, __a_unused fd_set *wfds)
 }
 
 static void dccp_send(long unsigned current_chunk,
-               __a_unused long unsigned chunks_sent, const char *buf, size_t len)
+               __a_unused long unsigned chunks_sent, const char *buf,
+               size_t len, const char *header_buf, size_t header_len)
 {
        struct sender_client *sc, *tmp;
 
        list_for_each_entry_safe(sc, tmp, &dss->client_list, node)
                send_chunk(sc, dss, DCCP_MAX_BYTES_PER_WRITE, current_chunk, buf,
-                       len);
+                       len, header_buf, header_len);
 }
 
 static void dccp_shutdown_clients(void)