Qsmtp  0.37
userconf.h
Go to the documentation of this file.
1 
4 #ifndef USERCONF_H
5 #define USERCONF_H
6 
7 #include <control.h>
8 #include <sstring.h>
9 
13 struct userconf {
14  string domainpath;
15  char **userconf;
16  char **domainconf;
18  int userdirfd;
19 };
20 
25 };
26 
33 void userconf_init(struct userconf *ds) __attribute__ ((nonnull (1)));
34 
43 void userconf_free(struct userconf *ds) __attribute__ ((nonnull (1)));
44 
52 int userconf_load_configs(struct userconf *ds) __attribute__ ((nonnull (1)));
53 
64 int userconf_get_buffer(const struct userconf *ds, const char *key, char ***values, checkfunc cf, const unsigned int flags) __attribute__ ((nonnull (1,2,3)));
65 
77 int userconf_find_domain(const struct userconf *ds, const char *key, const char *domain, const unsigned int flags) __attribute__ ((nonnull (1,2,3)));
78 
85 int userbackend_init(void);
86 
90 void userbackend_free(void);
91 
92 #endif
userconf_free
void userconf_free(struct userconf *ds)
free all information in a struct userconf
Definition: vpop.c:437
userconf_init
void userconf_init(struct userconf *ds)
initialize the struct userconf
Definition: vpop.c:427
control.h
headers of functions for control file handling
userbackend_init
int userbackend_init(void)
initialize the backend to query for local users
Definition: vpop.c:405
userconf
the filter configuration for the current user
Definition: userconf.h:13
userconf::domaindirfd
int domaindirfd
Definition: userconf.h:17
userconf::userconf
char ** userconf
Definition: userconf.h:15
sstring.h
definition of string record and headers of corresponding helper functions
userconf::domainpath
string domainpath
Definition: userconf.h:14
userconf_load_configs
int userconf_load_configs(struct userconf *ds)
load the filter settings for user and domain
Definition: vpop.c:451
userconf_none
Definition: userconf.h:22
userconf_inherit
Definition: userconf.h:24
userbackend_free
void userbackend_free(void)
free the resources needed by the user backend
Definition: vpop.c:419
checkfunc
int(* checkfunc)(const char *line)
callback to determine if a line in file is valid
Definition: control.h:15
userconf_flags
userconf_flags
Definition: userconf.h:21
userconf_find_domain
int userconf_find_domain(const struct userconf *ds, const char *key, const char *domain, const unsigned int flags)
find a domain in the user configuration key
Definition: vpop.c:574
userconf_global
Definition: userconf.h:23
userconf::userdirfd
int userdirfd
Definition: userconf.h:18
userconf_get_buffer
int userconf_get_buffer(const struct userconf *ds, const char *key, char ***values, checkfunc cf, const unsigned int flags)
get a config buffer for a given user or domain
Definition: vpop.c:479
userconf::domainconf
char ** domainconf
Definition: userconf.h:16