Qsmtp  0.30dev
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 
10 struct userconf {
11  string domainpath;
12  char **userconf;
13  char **domainconf;
15  int userdirfd;
16 };
17 
22 };
23 
30 void userconf_init(struct userconf *ds) __attribute__ ((nonnull (1)));
31 
40 void userconf_free(struct userconf *ds) __attribute__ ((nonnull (1)));
41 
49 int userconf_load_configs(struct userconf *ds) __attribute__ ((nonnull (1)));
50 
61 int userconf_get_buffer(const struct userconf *ds, const char *key, char ***values, checkfunc cf, const unsigned int flags) __attribute__ ((nonnull (1,2,3)));
62 
74 int userconf_find_domain(const struct userconf *ds, const char *key, const char *domain, const unsigned int flags) __attribute__ ((nonnull (1,2,3)));
75 
82 int userbackend_init(void);
83 
87 void userbackend_free(void);
88 
89 #endif
string domainpath
Definition: userconf.h:11
int userbackend_init(void)
initialize the backend to query for local users
Definition: vpop.c:405
Definition: userconf.h:19
void userbackend_free(void)
free the resources needed by the user backend
Definition: vpop.c:419
Definition: userconf.h:21
int domaindirfd
Definition: userconf.h:14
Definition: userconf.h:10
int userconf_load_configs(struct userconf *ds)
load the filter settings for user and domain
Definition: vpop.c:451
char ** domainconf
Definition: userconf.h:13
void userconf_init(struct userconf *ds)
initialize the struct userconf
Definition: vpop.c:427
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
definition of string record and headers of corresponding helper functions
Definition: userconf.h:20
headers of functions for control file handling
userconf_flags
Definition: userconf.h:18
void userconf_free(struct userconf *ds)
free all information in a struct userconf
Definition: vpop.c:437
int userdirfd
Definition: userconf.h:15
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
char ** userconf
Definition: userconf.h:12