vendor/libgit2/src/buffer.h in rugged-0.17.0.b6 vs vendor/libgit2/src/buffer.h in rugged-0.17.0.b7

- old
+ new

@@ -6,10 +6,11 @@ */ #ifndef INCLUDE_buffer_h__ #define INCLUDE_buffer_h__ #include "common.h" +#include "git2/strarray.h" #include <stdarg.h> typedef struct { char *ptr; size_t asize, size; @@ -151,7 +152,10 @@ /* Check if buffer looks like it contains binary data */ bool git_buf_is_binary(const git_buf *buf); /* Unescape all characters in a buffer */ void git_buf_unescape(git_buf *buf); + +/* Write data as base64 encoded in buffer */ +int git_buf_put_base64(git_buf *buf, const char *data, size_t len); #endif