X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=user_list.h;h=c18eb57d049551fc8fe30e1d67c08795395a5389;hp=0efa5c5540f8421c3ff9e2f668cfbeb46e9e5296;hb=5b30367a7e47fe5b9014599586e819305d76c9b0;hpb=c2708c767b300a33c8636681ed4550d4f3be0ce0 diff --git a/user_list.h b/user_list.h index 0efa5c55..c18eb57d 100644 --- a/user_list.h +++ b/user_list.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006 Andre Noll + * Copyright (C) 2006-2007 Andre Noll * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,12 +24,12 @@ /** * permission flags that can be set individually for any server command * - * - DB_READ: command reads from the database - * - DB_WRITE: command changes the contents of the database - * - AFS_READ: command reads information about the current audio stream - * - AFS_WRITE: command changes the current audio stream + * - AFS_READ: read-only command of the audio file selector + * - AFS_WRITE: command changes state of the audio file selector + * - VSS_READ: command reads information about the current audio stream + * - VSS_WRITE: command changes the current audio stream */ -enum {DB_READ = 1, DB_WRITE = 2, AFS_READ = 4, AFS_WRITE = 8}; +enum {AFS_READ = 1, AFS_WRITE = 2, VSS_READ = 4, VSS_WRITE = 8}; /** * data needed to authenticate the user @@ -46,4 +46,4 @@ struct user { }; void init_user_list(char *user_list_file); -int get_user(struct user *user); +struct user *lookup_user(const char *name);