projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add greylist tests.
[apps/pfixtools.git]
/
postlicyd
/
config.h
diff --git
a/postlicyd/config.h
b/postlicyd/config.h
index
554fe96
..
6584919
100644
(file)
--- a/
postlicyd/config.h
+++ b/
postlicyd/config.h
@@
-41,14
+41,38
@@
typedef struct config_t config_t;
struct config_t {
typedef struct config_t config_t;
struct config_t {
- A(filter_t) filters;
+ /* SOURCE */
+ /* Root configuration file.
+ */
+ const char *filename;
+
+ /* Parameters.
+ */
A(filter_param_t) params;
A(filter_param_t) params;
+
+
+ /* INTERPRETED */
+ /* Filters.
+ */
+ A(filter_t) filters;
+
+ /* Entry point of the filters.
+ * (one per smtp state)
+ */
int entry_points[SMTP_count];
int entry_points[SMTP_count];
+
+ /* Port on which the program have to bind to.
+ * The parameter from CLI override the parameter from configuration file.
+ */
+ uint16_t port;
};
__attribute__((nonnull(1)))
config_t *config_read(const char *file);
};
__attribute__((nonnull(1)))
config_t *config_read(const char *file);
+__attribute__((nonnull(1)))
+bool config_reload(config_t *config);
+
void config_delete(config_t **config);
#endif
void config_delete(config_t **config);
#endif