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:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user