2 * Copyright (C) 2006 Andre Noll <maan@systemlinux.org>
4 * Licensed under the GPL v2. For licencing details see COPYING.
7 /** \file grab_client.h exported symbols from grab_client.c */
12 * How to handle blocking writes for the grab client fds.
15 /** Ignore the data and do not write. */
17 /** Write anyway (default). */
19 /** Close fd if write would block. */
23 /** Flags specified as arguments to the grab command. */
25 /** Stop grabbing if audio file changes. */
29 /** Describes one active grab client. */
31 /* The value of the -p option. */
33 /** The file descriptor to send the grabbed stream to. */
35 /** See \ref grab_mode. */
37 /** Flags given at the command line. */
38 enum grab_flags flags;
39 /** The point of the grab client's node in the buffer tree. */
40 struct btr_node *btrn;
41 /* The task of this grab client. */
43 /** All grab clients belong either to a filter node or to the inactive list. */
44 struct list_head node;
47 int grab_client_new(int fd, int argc, char **argv);
48 void activate_grab_clients(void);
49 void init_grabbing(void);