You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
687 B

8 years ago
/* Copyright 2016 Alex 'AdUser' Z (ad_user@runbox.com)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef F2B_STATEFILE_H_
#define F2B_STATEFILE_H_
typedef struct f2b_statefile_t {
char path[PATH_MAX];
bool need_save;
} f2b_statefile_t;
f2b_statefile_t *
f2b_statefile_create(const char *statedir, const char *jailname);
void
f2b_statefile_destroy(f2b_statefile_t *sf);
f2b_ipaddr_t *
f2b_statefile_load(f2b_statefile_t *sf);
8 years ago
bool
f2b_statefile_save(f2b_statefile_t *sf, f2b_ipaddr_t *addrlist);
#endif /* F2B_STATEFILE_H_ */