summaryrefslogtreecommitdiffstats
path: root/plugin/firewall
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-11-04 17:30:06 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-11-04 17:30:06 +0100
commit6d18a20f14b10175f96fc3b99c7df8ee0f73ff88 (patch)
treedbdaa83961670fc3a3e5b1b00dcd6316e9126f17 /plugin/firewall
parenta8c9ff0fe894d298f76cb15f3c88eebc6c590844 (diff)
downloadeurephia-6d18a20f14b10175f96fc3b99c7df8ee0f73ff88.tar.gz
eurephia-6d18a20f14b10175f96fc3b99c7df8ee0f73ff88.tar.xz
eurephia-6d18a20f14b10175f96fc3b99c7df8ee0f73ff88.zip
Cleaned up the driver/interface API for database and firewall
Diffstat (limited to 'plugin/firewall')
-rw-r--r--plugin/firewall/eurephiafw_intf.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugin/firewall/eurephiafw_intf.h b/plugin/firewall/eurephiafw_intf.h
index 88719e9..37eb60a 100644
--- a/plugin/firewall/eurephiafw_intf.h
+++ b/plugin/firewall/eurephiafw_intf.h
@@ -32,19 +32,21 @@
#ifndef EUREPHIAFW_INTF_H_
#define EUREPHIAFW_INTF_H_
+#include <eurephia_driverapi.h>
+
/**
* Mandatory function, contains driver information.
*
* @return Should retun a static string, containing the version information.
*/
-const char *(*eFWinterfaceVersion) ();
+const char * EUREPHIA_DRIVERAPI_FUNC(eFWinterfaceVersion)(void);
/**
* Mandatory function, contains driver information.
*
* @return Should retun an integer which correponds to the API level the interface driver uses.
*/
-int (*eFWinterfaceAPIversion) ();
+int EUREPHIA_DRIVERAPI_FUNC(eFWinterfaceAPIversion)(void);
/**
* The main routine of the firewall interface. This function should not return before
@@ -52,6 +54,6 @@ int (*eFWinterfaceAPIversion) ();
*
* @param fwargs efw_threaddata pointer, with needed information to communicate with the openvpn process.
*/
-void (*eFW_RunFirewall) (void *fwargs);
+void EUREPHIA_DRIVERAPI_FUNC(eFW_RunFirewall)(void *fwargs);
#endif /* !EUREPHIAFW_INTF_H_ */