X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=user.h;h=216b71aa4bddedeb935b0953b3ec15ab87518763;hp=7a06876369bcf6345919d44a424a2dddff50aaa1;hb=cd5cfb4c2dbbf5615c78d1e439f0cbfb08437b43;hpb=63ef06be534ab9a8f31865ef6c2324f0a951aef9 diff --git a/user.h b/user.h index 7a06876..216b71a 100644 --- a/user.h +++ b/user.h @@ -1,3 +1,11 @@ +/* + * Copyright (C) 2008 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ + +/** \file user.h \brief User structures and exported symbols from user.c. */ + /** The columns of the id table. */ enum user_table_columns { /** The numer of the directory. */ @@ -20,12 +28,6 @@ struct user_info { char *pw_name; /** The user table of this user.*/ struct osl_table *table; - /** Total number of files owned by this user. */ - uint64_t files; - /** Total number of bytes owned by this user. */ - uint64_t bytes; - /** Total number of directories that contain at least one file */ - uint64_t dirs; /** The description of the user table. */ struct osl_table_description *desc; }; @@ -38,8 +40,6 @@ int read_uid_file(void); int write_uid_file(void); void create_hash_table(unsigned bits); -void sort_hash_table(int (*comp)(const void *, const void *)); - int for_each_admissible_user(int (*func)(struct user_info *, void *), void *data); int parse_uid_arg(const char *orig_arg, struct uid_range **ur);