server: proxy: filters: make sure filter_init is exported in filters compilation
authorkubistika <kmizrachi18@gmail.com>
Sat, 3 Aug 2019 13:44:39 +0000 (16:44 +0300)
committerkubistika <kmizrachi18@gmail.com>
Mon, 5 Aug 2019 08:01:31 +0000 (11:01 +0300)
server/proxy/filters/filters_api.h

index 644ebc9..047bbec 100644 (file)
 #ifndef FREERDP_SERVER_PROXY_FILTERS_API_H
 #define FREERDP_SERVER_PROXY_FILTERS_API_H
 
+#include <freerdp/freerdp.h>
 #include <winpr/winpr.h>
 
+#define PROXY_API FREERDP_API
+
 enum pf_filter_result {
     FILTER_PASS = 0,
     FILTER_DROP,
@@ -64,6 +67,6 @@ struct proxy_mouse_event_info {
 /* implement this method and register callbacks for proxy events
  * return TRUE if initialization succeeded, otherwise FALSE.
  **/
-BOOL filter_init(proxyEvents* events);
+PROXY_API BOOL filter_init(proxyEvents* events);
 
 #endif /* FREERDP_SERVER_PROXY_FILTERS_API_H */