Rename struct fw3_rule_spec to struct fw3_chain_spec and move the declaration to...
[project/firewall3.git] / utils.h
diff --git a/utils.h b/utils.h
index e0af88f..0d1b9d8 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -35,6 +35,7 @@
 
 #define FW3_STATEFILE  "/var/run/fw3.state"
 #define FW3_LOCKFILE   "/var/run/fw3.lock"
+#define FW3_HOTPLUG     "/sbin/hotplug-call"
 
 extern bool fw3_pr_debug;
 
@@ -68,6 +69,9 @@ void info(const char *format, ...);
                 (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);
@@ -83,18 +87,10 @@ bool fw3_lock(void);
 void fw3_unlock(void);
 
 
-enum fw3_statefile_type
-{
-       FW3_TYPE_DEFAULTS = 0,
-       FW3_TYPE_ZONE     = 1,
-       FW3_TYPE_IPSET    = 2,
-};
-
-bool fw3_read_statefile(void *state);
 void fw3_write_statefile(void *state);
 
-void fw3_set_running(void *object, struct list_head *dest);
-
 void fw3_free_object(void *obj, const void *opts);
 
+bool fw3_hotplug(bool add, void *zone, void *device);
+
 #endif