2 * Copyright (C) 2006-2013 Andre Noll <maan@systemlinux.org>
4 * Licensed under the GPL v2. For licencing details see COPYING.
7 /** \file user_list.h exported functions from user_list.c */
10 * permission flags that can be set individually for any server command
12 * - AFS_READ: read-only command of the audio file selector
13 * - AFS_WRITE: command changes state of the audio file selector
14 * - VSS_READ: command reads information about the current audio stream
15 * - VSS_WRITE: command changes the current audio stream
17 enum {AFS_READ = 1, AFS_WRITE = 2, VSS_READ = 4, VSS_WRITE = 8};
20 * data needed to authenticate the user
23 /** The position of this user in the list of users. */
24 struct list_head node;
27 /** The public key. */
28 struct asymmetric_key *pubkey;
29 /** The privileges of this user. */
33 void init_user_list(char *user_list_file);
34 struct user *lookup_user(const char *name);