Dont assign restore tasks to stateless clients; improve logs
[ladish.git] / lashd / alsa_client.h
bloba1a94436642fbbfd733823c3b9d8857b9b230d77
1 /*
2 * LASH
4 * Copyright (C) 2002 Robert Ham <rah@bash.sh>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef __LASHD_ALSA_CLIENT_H__
22 #define __LASHD_ALSA_CLIENT_H__
24 #include "../config.h"
26 #ifdef HAVE_ALSA
28 # include <uuid/uuid.h>
30 # include "types.h"
31 # include "common/list.h"
33 struct _alsa_client
35 unsigned char client_id;
36 uuid_t id;
37 lash_list_t * patches;
38 lash_list_t * old_patches;
39 lash_list_t * backup_patches;
42 alsa_client_t * alsa_client_new ();
43 void alsa_client_destroy (alsa_client_t * client);
45 void alsa_client_set_id (alsa_client_t * client, uuid_t id);
46 void alsa_client_set_client_id (alsa_client_t * client, unsigned char client_id);
48 lash_list_t * alsa_client_dup_patches (const alsa_client_t * client);
49 lash_list_t * alsa_client_get_patches (alsa_client_t * client);
50 unsigned char alsa_client_get_client_id (const alsa_client_t * client);
51 void alsa_client_get_id (const alsa_client_t * client, uuid_t id);
53 void alsa_client_free_patches (alsa_client_t * client);
54 void alsa_client_free_backup_patches (alsa_client_t * client);
56 #endif /* HAVE_ALSA */
58 #endif /* __LASHD_ALSA_CLIENT_H__ */