ck_assert (iter_internal->read_pos == 4);
- char *buffer;
+ void *buffer;
progbuf_own_buffer (buf, &buffer, &size);
ck_assert (buffer);
}
progbuf_h
-progbuf_from_buffer (char *buffer, size_t size)
+progbuf_from_buffer (void *buffer, size_t size)
{
if (!buffer || size == 0)
return 0;
}
int
-progbuf_own_buffer (progbuf_h buf, char **buffer, size_t *size)
+progbuf_own_buffer (progbuf_h buf, void **buffer, size_t *size)
{
if (!buf || !buffer || !size)
return PROGBUF_ERROR_NULL_PARAM;
}
int
-progbuf_copy_buffer (progbuf_h buf, char **buffer, size_t *size)
+progbuf_copy_buffer (progbuf_h buf, void **buffer, size_t *size)
{
if (!buf || !buffer || !size)
return PROGBUF_ERROR_NULL_PARAM;
typedef struct progbuf_it_s *progbuf_it_h;
progbuf_h progbuf_alloc (long message_tag);
-progbuf_h progbuf_from_buffer (char *buffer, size_t size);
+progbuf_h progbuf_from_buffer (void *buffer, size_t size);
int progbuf_message_tag (progbuf_h buf, long *message_tag);
-int progbuf_own_buffer (progbuf_h buf, char **buffer, size_t *size);
-int progbuf_copy_buffer (progbuf_h buf, char **buffer, size_t *size);
+int progbuf_own_buffer (progbuf_h buf, void **buffer, size_t *size);
+int progbuf_copy_buffer (progbuf_h buf, void **buffer, size_t *size);
int progbuf_buffer_size (progbuf_h buf, size_t *size);
int progbuf_free (progbuf_h buf);