Browse Source

+ f2b_jail_find()

master
Alex 'AdUser' Z 9 years ago
parent
commit
34317196bb
  1. 11
      src/jail.c
  2. 1
      src/jail.h

11
src/jail.c

@ -189,6 +189,17 @@ f2b_jail_create(f2b_config_section_t *section) {
return jail;
}
f2b_jail_t *
f2b_jail_find(f2b_jail_t *list, const char *name) {
assert(name != NULL);
for (; list != NULL; list = list->next)
if (strcmp(list->name, name) == 0)
return list;
return NULL;
}
size_t
f2b_jail_process(f2b_jail_t *jail) {
f2b_logfile_t *file = NULL;

1
src/jail.h

@ -43,6 +43,7 @@ typedef struct f2b_jail_t {
void f2b_jail_parse_compound_value(const char *value, char *name, char *init);
f2b_jail_t *f2b_jail_create (f2b_config_section_t *section);
f2b_jail_t *f2b_jail_find (f2b_jail_t *list, const char *name);
void f2b_jail_set_defaults(f2b_config_section_t *section);
bool f2b_jail_init (f2b_jail_t *jail, f2b_config_t *config);

Loading…
Cancel
Save