aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/buffer.c
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-02-28 21:11:32 +0000
committerBalint Reczey <balint@balintreczey.hu>2013-02-28 21:11:32 +0000
commitccc76ff07f095ed94b45344c662262786e4f0661 (patch)
treef9e5d8912c8e273959a76590c51fc7b8cb33e759 /wiretap/buffer.c
parent969ec935fabc5768d4e495a40e3892e2545e8e41 (diff)
Fix MSVC build errors related to symbol visibility
svn path=/trunk/; revision=47952
Diffstat (limited to 'wiretap/buffer.c')
-rw-r--r--wiretap/buffer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wiretap/buffer.c b/wiretap/buffer.c
index e6df387af1..52bd63921e 100644
--- a/wiretap/buffer.c
+++ b/wiretap/buffer.c
@@ -30,6 +30,7 @@
#include "buffer.h"
/* Initializes a buffer with a certain amount of allocated space */
+WS_DLL_PUBLIC
void buffer_init(Buffer* buffer, gsize space)
{
buffer->data = (guint8*)g_malloc(space);
@@ -39,6 +40,7 @@ void buffer_init(Buffer* buffer, gsize space)
}
/* Frees the memory used by a buffer, and the buffer struct */
+WS_DLL_PUBLIC
void buffer_free(Buffer* buffer)
{
g_free(buffer->data);
@@ -48,6 +50,7 @@ void buffer_free(Buffer* buffer)
so that another routine can copy directly into the buffer space. After
doing that, the routine will also want to run
buffer_increase_length(). */
+WS_DLL_PUBLIC
void buffer_assure_space(Buffer* buffer, gsize space)
{
gsize available_at_end = buffer->allocated - buffer->first_free;
@@ -85,6 +88,7 @@ void buffer_assure_space(Buffer* buffer, gsize space)
buffer->data = (guint8*)g_realloc(buffer->data, buffer->allocated);
}
+WS_DLL_PUBLIC
void buffer_append(Buffer* buffer, guint8 *from, gsize bytes)
{
buffer_assure_space(buffer, bytes);
@@ -92,6 +96,7 @@ void buffer_append(Buffer* buffer, guint8 *from, gsize bytes)
buffer->first_free += bytes;
}
+WS_DLL_PUBLIC
void buffer_remove_start(Buffer* buffer, gsize bytes)
{
if (buffer->start + bytes > buffer->first_free) {