2007-08-30 19:36:20 -04:00
|
|
|
#ifndef EL__CONFIG_DOMAIN_H
|
|
|
|
#define EL__CONFIG_DOMAIN_H
|
|
|
|
|
|
|
|
#include "config/options.h"
|
|
|
|
#include "util/lists.h"
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-08-30 19:36:20 -04:00
|
|
|
struct session;
|
|
|
|
|
|
|
|
|
|
|
|
struct domain_tree {
|
|
|
|
LIST_HEAD(struct domain_tree);
|
|
|
|
|
|
|
|
struct option *tree;
|
|
|
|
|
|
|
|
int len;
|
|
|
|
|
2021-01-02 10:20:27 -05:00
|
|
|
char name[1]; /* Must be at end of struct. */
|
2007-08-30 19:36:20 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern LIST_OF(struct domain_tree) domain_trees;
|
|
|
|
|
2021-01-02 10:20:27 -05:00
|
|
|
struct option *get_domain_tree(char *);
|
2007-08-30 19:36:20 -04:00
|
|
|
|
2021-03-02 04:45:59 -05:00
|
|
|
struct option *get_domain_option_from_session(const char *,
|
2007-08-30 19:36:20 -04:00
|
|
|
struct session *);
|
|
|
|
|
|
|
|
void done_domain_trees(void);
|
|
|
|
|
2020-10-05 14:14:55 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2007-08-30 19:36:20 -04:00
|
|
|
#endif
|