1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-31 23:30:25 +03:00

comp: split the compress function

It is now made into two separate compress and decompress functions. In
preparation for upcoming further modficications.
This commit is contained in:
Daniel Stenberg
2010-10-20 23:58:41 +02:00
parent 784db8e987
commit 64063d5f0b
2 changed files with 153 additions and 4 deletions

View File

@@ -1007,6 +1007,11 @@ struct _LIBSSH2_COMP_METHOD
size_t *dest_len, size_t payload_limit,
int *free_dest, const unsigned char *src,
size_t src_len, void **abstract);
int (*decomp) (LIBSSH2_SESSION * session, int compress,
unsigned char **dest,
size_t *dest_len, size_t payload_limit,
int *free_dest, const unsigned char *src,
size_t src_len, void **abstract);
int (*dtor) (LIBSSH2_SESSION * session, int compress, void **abstract);
};