summaryrefslogtreecommitdiff
path: root/egg/egg-buffer.h
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-07-26 15:07:14 +0000
committerStef Walter <stef@memberwebs.com>2009-07-26 15:07:14 +0000
commit6a9310cc435346b75147743dec9e80ab133457e8 (patch)
treed9481ae51351c5d64df764f7b402f3bab3d56751 /egg/egg-buffer.h
parentd6974c331db6b3a05e1d853baa0a140f9a842e2f (diff)
downloadgnome-keyring-6a9310cc435346b75147743dec9e80ab133457e8.tar.gz
[secrets] Port over some parts of the keyring parsing.
The code compiles, but does not run, and is not tested.
Diffstat (limited to 'egg/egg-buffer.h')
-rw-r--r--egg/egg-buffer.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/egg/egg-buffer.h b/egg/egg-buffer.h
index 1bc0f807..92495746 100644
--- a/egg/egg-buffer.h
+++ b/egg/egg-buffer.h
@@ -72,19 +72,22 @@ int egg_buffer_init (EggBuffer *buffer, size_t reser
int egg_buffer_init_full (EggBuffer *buffer,
size_t reserve,
EggBufferAllocator allocator);
-
-void egg_buffer_init_static (EggBuffer *buffer,
- unsigned char *buf,
+
+void egg_buffer_init_static (EggBuffer *buffer,
+ const unsigned char *buf,
size_t len);
-void egg_buffer_init_allocated (EggBuffer *buffer,
- unsigned char *buf,
+void egg_buffer_init_allocated (EggBuffer *buffer,
+ unsigned char *buf,
size_t len,
EggBufferAllocator allocator);
void egg_buffer_uninit (EggBuffer *buffer);
-int egg_buffer_set_allocator (EggBuffer *buffer,
+unsigned char* egg_buffer_uninit_steal (EggBuffer *buffer,
+ size_t *n_result);
+
+int egg_buffer_set_allocator (EggBuffer *buffer,
EggBufferAllocator allocator);
void egg_buffer_reset (EggBuffer *buffer);