X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=grab_client.h;h=a4e81ced7283144e65db596898b2637196ded577;hp=59ba697ede885c73c548a0e885bc816eb2a35284;hb=f652ce6afe7f6fd0e42814505234cbf4321a736e;hpb=1d7a26dca86a639db694663738ccc01acaa88aba diff --git a/grab_client.h b/grab_client.h index 59ba697e..a4e81ced 100644 --- a/grab_client.h +++ b/grab_client.h @@ -1,49 +1,10 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file grab_client.h exported symbols from grab_client.c */ -#include "config.h" - -/** - * How to handle blocking writes for the grab client fds. - */ -enum grab_mode { - /** Ignore the data and do not write. */ - GM_SLOPPY, - /** Write anyway (default). */ - GM_AGGRESSIVE, - /** Close fd if write would block. */ - GM_PEDANTIC, -}; - -/** Flags specified as arguments to the grab command. */ -enum grab_flags { - /** Stop grabbing if audio file changes. */ - GF_ONE_SHOT = 1, -}; - -/** Describes one active grab client. */ -struct grab_client { - /* The value of the -p option. */ - char *parent; - /** The file descriptor to send the grabbed stream to. */ - int fd; - /** See \ref grab_mode. */ - enum grab_mode mode; - /** Flags given at the command line. */ - enum grab_flags flags; - /** The point of the grab client's node in the buffer tree. */ - struct btr_node *btrn; - /* The task of this grab client. */ - struct task task; - /** All grab clients belong either to a filter node or to the inactive list. */ - struct list_head node; -}; - -int grab_client_new(int fd, int argc, char **argv); -void activate_grab_clients(void); -void init_grabbing(void); +int grab_client_new(int fd, int argc, char **argv, struct sched *s); +void activate_grab_clients(struct sched *s);