projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add fw3_free_list() helper
[project/firewall3.git]
/
utils.h
diff --git
a/utils.h
b/utils.h
index
3573e14
..
cd478f9
100644
(file)
--- a/
utils.h
+++ b/
utils.h
@@
-69,6
+69,9
@@
void info(const char *format, ...);
(1<<FW3_TABLE_MANGLE)|(1<<FW3_TABLE_RAW))))
(1<<FW3_TABLE_MANGLE)|(1<<FW3_TABLE_RAW))))
+void * fw3_alloc(size_t size);
+char * fw3_strdup(const char *s);
+
const char * fw3_find_command(const char *cmd);
bool fw3_stdout_pipe(void);
const char * fw3_find_command(const char *cmd);
bool fw3_stdout_pipe(void);
@@
-88,16
+91,7
@@
void fw3_write_statefile(void *state);
void fw3_free_object(void *obj, const void *opts);
void fw3_free_object(void *obj, const void *opts);
-
-struct fw3_rule_spec {
- int family;
- int table;
- int flag;
- const char *format;
-};
-
-bool fw3_pr_rulespec(int table, int family, uint32_t *flags, uint32_t mask,
- const struct fw3_rule_spec *r, const char *fmt, ...);
+void fw3_free_list(struct list_head *head);
bool fw3_hotplug(bool add, void *zone, void *device);
bool fw3_hotplug(bool add, void *zone, void *device);