ce940376fdc67128e6ae9636281978f7523273ec
2 * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
19 /** \file user_list.h exported functions from user_list.c */
25 * permission flags that can be set individually for any server command
27 * - DB_READ: command reads from the database
28 * - DB_WRITE: command changes the contents of the database
29 * - VSS_READ: command reads information about the current audio stream
30 * - VSS_WRITE: command changes the current audio stream
32 enum {DB_READ
= 1, DB_WRITE
= 2, VSS_READ
= 4, VSS_WRITE
= 8};
35 * data needed to authenticate the user
38 /** the position of this user in the list of users */
39 struct list_head node
;
42 /** the public RSA key */
44 /** the privileges that this user has */
48 void init_user_list(char *user_list_file
);
49 struct user
*lookup_user(const char *name
);