Rename buffer_add_data_begin() to buffer_prepend_data().

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@571 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-22 14:31:43 +00:00
parent b875ce15e8
commit 9766b2f8d2
4 changed files with 13 additions and 8 deletions

View File

@@ -184,7 +184,8 @@ int buffer_add_u8(struct buffer_struct *buffer,u8 data){
* \param len length of data
* \return 0 on success, -1 on error.
*/
int buffer_add_data_begin(struct buffer_struct *buffer, const void *data, u32 len) {
int buffer_prepend_data(struct buffer_struct *buffer, const void *data,
u32 len) {
if (buffer->allocated < (buffer->used + len)) {
if (realloc_buffer(buffer, buffer->used + len) < 0) {
return -1;