diff -r 5b0aeef8ba2a -r 5608ac657362 project_files/frontlib/util/buffer.h --- a/project_files/frontlib/util/buffer.h Thu Jun 21 21:32:12 2012 +0200 +++ b/project_files/frontlib/util/buffer.h Mon Jun 25 00:42:07 2012 +0200 @@ -26,7 +26,6 @@ /** * Simple variable-capacity data structure that can be efficiently appended to. */ -struct _flib_vector; typedef struct _flib_vector flib_vector; /** @@ -55,6 +54,12 @@ int flib_vector_append(flib_vector *vec, const void *data, size_t len); /** + * Append data from a format string to the buffer (without trailing 0) + * Returns 0 on success. + */ +int flib_vector_appendf(flib_vector *vec, const char *template, ...); + +/** * Return a pointer to the current data buffer of the vector. This pointer can * become invalid if the vector size or capacity is changed. */