diff options
author | Fabiano Fidêncio <fidencio@redhat.com> | 2015-09-25 00:46:04 +0200 |
---|---|---|
committer | Fabiano Fidêncio <fidencio@redhat.com> | 2016-01-19 11:31:08 +0100 |
commit | 094bef2470178e9b5d6c1fb4aa774001750ea909 (patch) | |
tree | a74ba8ce99eb9813556274acd6a04d60871f101c | |
parent | b98eeccf446aa19755d42639d655353e81261f1f (diff) | |
download | libssh-094bef2470178e9b5d6c1fb4aa774001750ea909.tar.gz libssh-094bef2470178e9b5d6c1fb4aa774001750ea909.tar.xz libssh-094bef2470178e9b5d6c1fb4aa774001750ea909.zip |
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>
-rw-r--r-- | include/libssh/buffer.h | 1 | ||||
-rw-r--r-- | src/buffer.c | 17 |
2 files changed, 0 insertions, 18 deletions
diff --git a/include/libssh/buffer.h b/include/libssh/buffer.h index 656db958..8134478f 100644 --- a/include/libssh/buffer.h +++ b/include/libssh/buffer.h @@ -42,7 +42,6 @@ struct ssh_buffer_struct { #define SSH_BUFFER_PACK_END ((uint32_t) 0x4f65feb3) 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); void ssh_buffer_set_secure(ssh_buffer buffer); int ssh_buffer_add_ssh_string(ssh_buffer buffer, ssh_string string); diff --git a/src/buffer.c b/src/buffer.c index fe6ef8fc..7c485e75 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -435,23 +435,6 @@ int ssh_buffer_add_buffer(struct ssh_buffer_struct *buffer, } /** - * @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 * * @brief Get a pointer to the head of a buffer at the current position. |