Replace gwbuf_clone_all with gwbuf_clone

gwbuf_clone cloned only the first buffer of a chain of buffers,
which never can be the desired outcome, while gwbuf_clone_all
cloned all buffers.

Now, gwbuf_clone behaves the way gwbuf_clone_all used to behave
and gwbuf_clone_all has been removed.
This commit is contained in:
Johan Wikman
2016-12-19 10:20:16 +02:00
parent 875766cf62
commit 6e6a3e4626
5 changed files with 31 additions and 21 deletions

View File

@ -200,7 +200,6 @@ extern size_t gwbuf_copy_data(GWBUF *buffer, size_t offset, size_t byt
uint8_t* dest);
extern GWBUF *gwbuf_split(GWBUF **buf, size_t length);
extern GWBUF *gwbuf_clone_transform(GWBUF *head, gwbuf_type_t type);
extern GWBUF *gwbuf_clone_all(GWBUF* head);
extern void gwbuf_set_type(GWBUF *head, gwbuf_type_t type);
extern int gwbuf_add_property(GWBUF *buf, char *name, char *value);
extern char *gwbuf_get_property(GWBUF *buf, char *name);