1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

buffer: rename ssh_buffer_get_rest() to ssh_buffer_get()

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Fabiano Fidêncio
2015-09-25 01:10:03 +02:00
parent 56d0e91e10
commit 954341dd1f
19 changed files with 52 additions and 53 deletions

View File

@@ -425,7 +425,7 @@ int ssh_buffer_add_buffer(struct ssh_buffer_struct *buffer,
int rc;
rc = ssh_buffer_add_data(buffer,
ssh_buffer_get_rest(source),
ssh_buffer_get(source),
ssh_buffer_get_rest_len(source));
if (rc < 0) {
return -1;
@@ -444,7 +444,7 @@ int ssh_buffer_add_buffer(struct ssh_buffer_struct *buffer,
*
* @warning Don't expect data to be nul-terminated.
*
* @see ssh_buffer_get_rest()
* @see ssh_buffer_get()
* @see ssh_buffer_get_len()
*/
void *ssh_buffer_get_begin(struct ssh_buffer_struct *buffer){
@@ -461,9 +461,8 @@ void *ssh_buffer_get_begin(struct ssh_buffer_struct *buffer){
* @return A pointer to the data from current position.
*
* @see ssh_buffer_get_rest_len()
* @see ssh_buffer_get()
*/
void *ssh_buffer_get_rest(struct ssh_buffer_struct *buffer){
void *ssh_buffer_get(struct ssh_buffer_struct *buffer){
return buffer->data + buffer->pos;
}
@@ -489,7 +488,7 @@ uint32_t ssh_buffer_get_len(struct ssh_buffer_struct *buffer){
*
* @return The length of the buffer.
*
* @see ssh_buffer_get_rest()
* @see ssh_buffer_get()
*/
uint32_t ssh_buffer_get_rest_len(struct ssh_buffer_struct *buffer){
buffer_verify(buffer);