aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil
diff options
context:
space:
mode:
authorDavid Perry <boolean263@protonmail.com>2023-02-07 19:52:37 +0000
committerA Wireshark GitLab Utility <6629907-ws-gitlab-utility@users.noreply.gitlab.com>2023-02-07 19:52:37 +0000
commit71a77a4a5db0aff5d782759b29de3b5a71bb1cf9 (patch)
tree7d4b3aced7d02d4abb79ea5d0dcfb6a582eed6c7 /wsutil
parent4818778df2ba5d9295cf23fbb797fac2a82abcc4 (diff)
Correct function signatures for buffer functions
Diffstat (limited to 'wsutil')
-rw-r--r--wsutil/buffer.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/wsutil/buffer.h b/wsutil/buffer.h
index 9f98f58418..7548163df5 100644
--- a/wsutil/buffer.h
+++ b/wsutil/buffer.h
@@ -46,11 +46,17 @@ void ws_buffer_cleanup(void);
# define ws_buffer_end_ptr(buffer) ((buffer)->data + (buffer)->first_free)
# define ws_buffer_append_buffer(buffer,src_buffer) ws_buffer_append((buffer), ws_buffer_start_ptr(src_buffer), ws_buffer_length(src_buffer))
#else
+ WS_DLL_PUBLIC
void ws_buffer_clean(Buffer* buffer);
- void ws_buffer_increase_length(Buffer* buffer, unsigned int bytes);
- unsigned gsize ws_buffer_length(Buffer* buffer);
+ WS_DLL_PUBLIC
+ void ws_buffer_increase_length(Buffer* buffer, gsize bytes);
+ WS_DLL_PUBLIC
+ gsize ws_buffer_length(Buffer* buffer);
+ WS_DLL_PUBLIC
guint8* ws_buffer_start_ptr(Buffer* buffer);
+ WS_DLL_PUBLIC
guint8* ws_buffer_end_ptr(Buffer* buffer);
+ WS_DLL_PUBLIC
void ws_buffer_append_buffer(Buffer* buffer, Buffer* src_buffer);
#endif