config-filter.h revision 08e7163a8d12979119fa56c92676af4ba6304f1a
#ifndef CONFIG_FILTER_H
#define CONFIG_FILTER_H
#include "network.h"
struct config_filter {
const char *service;
const char *local_host, *remote_host;
unsigned int local_bits, remote_bits;
};
struct config_filter_parser {
struct config_filter filter;
const char *file_and_line;
/* NULL-terminated array of parsers */
struct config_module_parser *parsers;
};
/* Replace filter's parsers with given parser list. */
struct config_filter_parser *const *parsers);
/* Build new parsers from all existing ones matching the given filter. */
const struct config_filter *filter,
struct config_module_parser **parsers_r,
const char **error_r);
/* Returns TRUE if filter matches mask. */
const struct config_filter *filter);
/* Returns TRUE if two filters are fully equal. */
const struct config_filter *f2);
#endif