diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 14:09:46 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 14:09:46 +0000 |
commit | 45c2884f1bbd9c06f7ba3091d968fcb6649a5f56 (patch) | |
tree | bb66eea36a288f1ab5e33468ee9bf2989339b2aa /wsutil/file_util.h | |
parent | 018ba4ea6584f63aa5c4b741c2e6f6fedc609ad2 (diff) |
Export libwsutil symbols using WS_DLL_PUBLIC define
This change replaces *.def and *.sym file usage following the
guideline at http://gcc.gnu.org/wiki/Visibility
svn path=/trunk/; revision=47938
Diffstat (limited to 'wsutil/file_util.h')
-rw-r--r-- | wsutil/file_util.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/wsutil/file_util.h b/wsutil/file_util.h index af5f94d996..a39e82461d 100644 --- a/wsutil/file_util.h +++ b/wsutil/file_util.h @@ -25,6 +25,8 @@ #ifndef __FILE_UTIL_H__ #define __FILE_UTIL_H__ +#include "ws_symbol_export.h" + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -65,14 +67,22 @@ extern "C" { #include <stdio.h> +WS_DLL_PUBLIC extern int ws_stdio_open (const gchar *filename, int flags, int mode); +WS_DLL_PUBLIC extern int ws_stdio_rename (const gchar *oldfilename, const gchar *newfilename); +WS_DLL_PUBLIC extern int ws_stdio_mkdir (const gchar *filename, int mode); +WS_DLL_PUBLIC extern int ws_stdio_stat64 (const gchar *filename, ws_statb64 *buf); +WS_DLL_PUBLIC extern int ws_stdio_unlink (const gchar *filename); +WS_DLL_PUBLIC extern int ws_stdio_remove (const gchar *filename); +WS_DLL_PUBLIC extern FILE * ws_stdio_fopen (const gchar *filename, const gchar *mode); +WS_DLL_PUBLIC extern FILE * ws_stdio_freopen (const gchar *filename, const gchar *mode, FILE *stream); #define ws_open ws_stdio_open @@ -103,6 +113,7 @@ extern FILE * ws_stdio_freopen (const gchar *filename, const gchar *mode, FILE * * * @return TRUE if we were able to call SetDllDirectory, FALSE otherwise. */ +WS_DLL_PUBLIC gboolean ws_init_dll_search_path(); /** Load a DLL using LoadLibrary. @@ -112,6 +123,7 @@ gboolean ws_init_dll_search_path(); * @return A handle to the DLL if found, NULL on failure. */ +WS_DLL_PUBLIC void *ws_load_library(gchar *library_name); /** Load a DLL using g_module_open. @@ -121,17 +133,20 @@ void *ws_load_library(gchar *library_name); * @param flags Flags to be passed to g_module_open. * @return A handle to the DLL if found, NULL on failure. */ +WS_DLL_PUBLIC GModule *ws_module_open(gchar *module_name, GModuleFlags flags); /* * utf8 version of getenv, needed to get win32 filename paths */ +WS_DLL_PUBLIC extern char *getenv_utf8(const char *varname); /** Create or open a "Wireshark is running" mutex. * Create or open a mutex which signals that Wireshark or its associated * executables is running. Used by the installer to test for a running application. */ +WS_DLL_PUBLIC extern void create_app_running_mutex(); #else /* _WIN32 */ |