diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 19:35:59 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-02-28 19:35:59 +0000 |
commit | aa659985a586d2d2173d457dea8d1b4346e205e8 (patch) | |
tree | 6ec6595ee9f193b8551ea592a2622bb10a7d8e1f /wiretap/file_wrappers.h | |
parent | 6c29b9edd6db4cfa809a8ede8d22539df117dffe (diff) |
Export libwiretap symbols using WS_DLL_PUBLIC define
TODO: hide flex-generated functions
svn path=/trunk/; revision=47948
Diffstat (limited to 'wiretap/file_wrappers.h')
-rw-r--r-- | wiretap/file_wrappers.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/wiretap/file_wrappers.h b/wiretap/file_wrappers.h index fcc320599b..ca02fbbab5 100644 --- a/wiretap/file_wrappers.h +++ b/wiretap/file_wrappers.h @@ -26,34 +26,59 @@ #include <glib.h> #include <wtap.h> #include <wsutil/file_util.h> +#include "ws_symbol_export.h" +WS_DLL_LOCAL extern FILE_T file_open(const char *path); +WS_DLL_LOCAL extern FILE_T file_fdopen(int fildes); +WS_DLL_LOCAL extern void file_set_random_access(FILE_T stream, gboolean random_flag, GPtrArray *seek); +WS_DLL_PUBLIC extern gint64 file_seek(FILE_T stream, gint64 offset, int whence, int *err); +WS_DLL_LOCAL extern gint64 file_skip(FILE_T file, gint64 delta, int *err); +WS_DLL_PUBLIC extern gint64 file_tell(FILE_T stream); +WS_DLL_LOCAL extern gint64 file_tell_raw(FILE_T stream); +WS_DLL_LOCAL extern int file_fstat(FILE_T stream, ws_statb64 *statb, int *err); +WS_DLL_LOCAL extern gboolean file_iscompressed(FILE_T stream); +WS_DLL_PUBLIC extern int file_read(void *buf, unsigned int count, FILE_T file); +WS_DLL_PUBLIC extern int file_getc(FILE_T stream); +WS_DLL_PUBLIC extern char *file_gets(char *buf, int len, FILE_T stream); +WS_DLL_PUBLIC extern int file_eof(FILE_T stream); +WS_DLL_PUBLIC extern int file_error(FILE_T fh, gchar **err_info); +WS_DLL_LOCAL extern void file_clearerr(FILE_T stream); +WS_DLL_LOCAL extern void file_fdclose(FILE_T file); +WS_DLL_LOCAL extern int file_fdreopen(FILE_T file, const char *path); +WS_DLL_LOCAL extern void file_close(FILE_T file); #ifdef HAVE_LIBZ typedef struct wtap_writer *GZWFILE_T; +WS_DLL_LOCAL extern GZWFILE_T gzwfile_open(const char *path); +WS_DLL_LOCAL extern GZWFILE_T gzwfile_fdopen(int fd); +WS_DLL_LOCAL extern guint gzwfile_write(GZWFILE_T state, const void *buf, guint len); +WS_DLL_LOCAL extern int gzwfile_flush(GZWFILE_T state); +WS_DLL_LOCAL extern int gzwfile_close(GZWFILE_T state); +WS_DLL_LOCAL extern int gzwfile_geterr(GZWFILE_T state); #endif /* HAVE_LIBZ */ |