]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - user_list.h
server: Constify return value of lookup_user().
[paraslash.git] / user_list.h
index 3a77e98fa8c4636406035ce66f7842235832db4d..e4fbd46656e289c2f7f27fd9240749ad00d766a6 100644 (file)
@@ -1,8 +1,4 @@
-/*
- * Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>
- *
- * Licensed under the GPL v2. For licencing details see COPYING.
- */
+/* Copyright (C) 2006 Andre Noll <maan@tuebingen.mpg.de>, see file COPYING. */
 
 /** \file user_list.h exported functions from user_list.c */
 
@@ -15,6 +11,7 @@
  * is read at server startup.
  */
 enum server_command_permissions {
+       NO_PERMISSION_REQUIRED = 0, /** None of the below. */
        AFS_READ = 1, /** Read-only operation on the AFS database. */
        AFS_WRITE = 2, /** Read-write operation on the AFS database. */
        VSS_READ = 4, /** Read-only operation on the virtual streaming system. */
@@ -36,4 +33,4 @@ struct user {
 };
 
 void init_user_list(char *user_list_file);
-struct user *lookup_user(const char *name);
+const struct user *lookup_user(const char *name);