www.usr.com/support/gpl/USR9113_release1.0.tar.gz
[bcm963xx.git] / userapps / opensource / ftpd / options.h
1 #ifndef __BFTPD_OPTIONS_H
2 #define __BFTPD_OPTIONS_H
3
4 #include "commands.h"
5 #include "mypaths.h"
6
7 #include <pwd.h>
8 #include <grp.h>
9
10 struct bftpd_option {
11   char *name, *value;
12   struct bftpd_option *next;
13 };
14 struct list_of_struct_passwd {
15     struct passwd pwd;
16     struct list_of_struct_passwd *next;
17 };
18 struct list_of_struct_group {
19     struct group grp;
20     struct list_of_struct_group *next;
21 };
22
23 struct directory {
24     char *path;
25     struct bftpd_option *options;
26     struct directory *next;
27 };
28 struct global {
29     struct bftpd_option *options;
30     struct directory *directories;
31 };
32 struct group_of_users {
33     struct list_of_struct_passwd *users;
34     struct list_of_struct_group *groups;
35     char *temp_members;
36     struct bftpd_option *options;
37     struct directory *directories;
38     struct group_of_users *next;
39 };
40 struct user {
41     char *name;
42     struct bftpd_option *options;
43     struct directory *directories;
44     struct user *next;
45 };
46
47 extern struct group_of_users *config_groups;
48 extern struct user *config_users;
49
50 void expand_groups();
51 void config_init();
52 char *config_getoption(char *name);
53 void config_end();
54
55 #endif