From d2c9a8dac8f11b2a0df3a8b325fda51a8912afed Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Wed, 4 Nov 2009 17:30:06 +0100 Subject: Cleaned up the driver/interface API for database and firewall --- plugin/firewall/eurephiafw_intf.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'plugin') 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 + /** * 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_ */ -- cgit