/*
* Copyright (C) 2006 Andre Noll <maan@systemlinux.org>
*
- * 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
- * (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.
- *
- * 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, USA.
+ * Licensed under the GPL v2. For licencing details see COPYING.
*/
/**
* \sa filter_chain filter_chain_info filter
*/
+#include <sys/types.h>
+#include <dirent.h>
+
#include "para.h"
#include "grab_client.cmdline.h"
#include "list.h"
#include "error.h"
#include "string.h"
#include "fd.h"
+#include "crypt.h"
/** grab clients that are not yet attached to a filter node */
struct list_head inactive_grab_client_list;
{
PARA_INFO_LOG("adding grab client %p (fd %d) to inactive list\n",
gc, gc->fd);
- list_add(&gc->node, &inactive_grab_client_list);
+ para_list_add(&gc->node, &inactive_grab_client_list);
}
static void gc_free(struct grab_client *gc)
{
PARA_INFO_LOG("activating %p (fd %d, filter node: %p)\n", gc, gc->fd, fn);
list_del(&gc->node);
- list_add(&gc->fcb.node, &fn->callbacks);
+ para_list_add(&gc->fcb.node, &fn->callbacks);
}
/**
* activate inactive grab clients if possible
*
- * \param slot audiod's slot for the new audio file
+ * \param slot_num audiod's slot for the new audio file
* \param audio_format_num the number of the audio format of the new audio file
* \param filter_list the list of activated filters for that new audio file
*
* This has to be called once during startup before any other function from
* grab_client.c may be used. It initializes \a inactive_grab_client_list.
*/
-void init_grabbing()
+void init_grabbing(void)
{
PARA_INFO_LOG("%s", "grab init\n");
INIT_LIST_HEAD(&inactive_grab_client_list);