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

Add external c declaration for c++

To make sure c++ name mangling works correctly c code should be noted "extern"

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Norbert Pocs
2022-10-24 12:50:46 +02:00
committed by Jakub Jelen
parent 5e81eec4ec
commit d1947b55ec
42 changed files with 335 additions and 0 deletions

View File

@@ -21,6 +21,10 @@
#ifndef SFTP_PRIV_H
#define SFTP_PRIV_H
#ifdef __cplusplus
extern "C" {
#endif
sftp_packet sftp_packet_read(sftp_session sftp);
int sftp_packet_write(sftp_session sftp, uint8_t type, ssh_buffer payload);
void sftp_packet_free(sftp_packet packet);
@@ -29,4 +33,8 @@ sftp_attributes sftp_parse_attr(sftp_session session,
ssh_buffer buf,
int expectname);
#ifdef __cplusplus
}
#endif
#endif /* SFTP_PRIV_H */