mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
buffer: remove ssh_buffer_get_begin()
Note that removing ssh_buffer_get_begin() doesn't break API compatibility, as this functions has never been exposed (it only has the LIBSSH_API prefix). Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -42,7 +42,6 @@ struct ssh_buffer_struct {
|
|||||||
#define SSH_BUFFER_PACK_END ((uint32_t) 0x4f65feb3)
|
#define SSH_BUFFER_PACK_END ((uint32_t) 0x4f65feb3)
|
||||||
|
|
||||||
LIBSSH_API void ssh_buffer_free(ssh_buffer buffer);
|
LIBSSH_API void ssh_buffer_free(ssh_buffer buffer);
|
||||||
LIBSSH_API void *ssh_buffer_get_begin(ssh_buffer buffer);
|
|
||||||
LIBSSH_API ssh_buffer ssh_buffer_new(void);
|
LIBSSH_API ssh_buffer ssh_buffer_new(void);
|
||||||
void ssh_buffer_set_secure(ssh_buffer buffer);
|
void ssh_buffer_set_secure(ssh_buffer buffer);
|
||||||
int ssh_buffer_add_ssh_string(ssh_buffer buffer, ssh_string string);
|
int ssh_buffer_add_ssh_string(ssh_buffer buffer, ssh_string string);
|
||||||
|
|||||||
17
src/buffer.c
17
src/buffer.c
@@ -434,23 +434,6 @@ int ssh_buffer_add_buffer(struct ssh_buffer_struct *buffer,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Get a pointer on the head of a buffer.
|
|
||||||
*
|
|
||||||
* @param[in] buffer The buffer to get the head pointer.
|
|
||||||
*
|
|
||||||
* @return A data pointer on the head. It doesn't take the position
|
|
||||||
* into account.
|
|
||||||
*
|
|
||||||
* @warning Don't expect data to be nul-terminated.
|
|
||||||
*
|
|
||||||
* @see ssh_buffer_get()
|
|
||||||
* @see ssh_buffer_get_len()
|
|
||||||
*/
|
|
||||||
void *ssh_buffer_get_begin(struct ssh_buffer_struct *buffer){
|
|
||||||
return buffer->data;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user