aboutsummaryrefslogtreecommitdiffstats
path: root/epan/geoip_db.h
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-03-01 23:53:11 +0000
committerBalint Reczey <balint@balintreczey.hu>2013-03-01 23:53:11 +0000
commit1ebdb2e521ca0cbd7aeebd1c89b8a5cf6a4cc322 (patch)
treed6dde0ea7b6e6e15cc2c51a5f478fb85965b9720 /epan/geoip_db.h
parent0b8d70bfb715bc3d89b6dfae86fc79d7c4387f02 (diff)
Export libwireshark symbols using WS_DLL_PUBLIC define
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
Diffstat (limited to 'epan/geoip_db.h')
-rw-r--r--epan/geoip_db.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/epan/geoip_db.h b/epan/geoip_db.h
index 908f97897c..0408124fdd 100644
--- a/epan/geoip_db.h
+++ b/epan/geoip_db.h
@@ -29,6 +29,7 @@
#include <epan/ipv6-utils.h>
#include <epan/prefs.h>
+#include "ws_symbol_export.h"
/* Fake databases to make lat/lon values available */
/* XXX - find a better way to interface */
@@ -46,7 +47,7 @@ extern void geoip_db_pref_init(module_t *nameres);
*
* @return The number GeoIP databases successfully loaded
*/
-extern guint geoip_db_num_dbs(void);
+WS_DLL_PUBLIC guint geoip_db_num_dbs(void);
/**
* Fetch the name of a database
@@ -54,7 +55,7 @@ extern guint geoip_db_num_dbs(void);
* @param dbnum Database index
* @return The database name or "Invalid database"
*/
-extern const gchar *geoip_db_name(guint dbnum);
+WS_DLL_PUBLIC const gchar *geoip_db_name(guint dbnum);
/**
* Fetch the database type. Types are enumerated in GeoIPDBTypes in GeoIP.h.
@@ -62,7 +63,7 @@ extern const gchar *geoip_db_name(guint dbnum);
* @param dbnum Database index
* @return The database type or -1
*/
-extern int geoip_db_type(guint dbnum);
+WS_DLL_PUBLIC int geoip_db_type(guint dbnum);
/**
* Look up an IPv4 address in a database
@@ -72,7 +73,7 @@ extern int geoip_db_type(guint dbnum);
* @param not_found The string to return if the lookup fails. May be NULL.
* @return The database entry if found, else not_found
*/
-extern const char *geoip_db_lookup_ipv4(guint dbnum, guint32 addr, const char *not_found);
+WS_DLL_PUBLIC const char *geoip_db_lookup_ipv4(guint dbnum, guint32 addr, const char *not_found);
/**
* Look up an IPv6 address in a database
@@ -82,13 +83,13 @@ extern const char *geoip_db_lookup_ipv4(guint dbnum, guint32 addr, const char *n
* @param not_found The string to return if the lookup fails. May be NULL.
* @return The database entry if found, else not_found
*/
-extern const char *geoip_db_lookup_ipv6(guint dbnum, struct e_in6_addr addr, const char *not_found);
+WS_DLL_PUBLIC const char *geoip_db_lookup_ipv6(guint dbnum, struct e_in6_addr addr, const char *not_found);
/**
* Get all configured paths
*
* @return String with all paths separated by a path separator
*/
-extern gchar *geoip_db_get_paths(void);
+WS_DLL_PUBLIC gchar *geoip_db_get_paths(void);
#endif /* __GEOIP_DB_H__ */