summaryrefslogtreecommitdiff
path: root/libssh2-sys
diff options
context:
space:
mode:
authorWez Furlong <wez@wezfurlong.org>2019-08-01 21:32:35 -0700
committerWez Furlong <wez@wezfurlong.org>2019-08-02 10:12:40 -0700
commit16cb2862ff01ba4a703cda59dfadbad443aa5738 (patch)
tree47bf5c40979d733196b192e6f819b184f9c38322 /libssh2-sys
parentc49581f85ad9c3ad0e5b7595f5c7d6e72ea9a61b (diff)
downloadssh2-rs-16cb2862ff01ba4a703cda59dfadbad443aa5738.zip
handle_extended_data
Add a function to configure how extended data streams are to be handled. This allows for merging stderr to stdout, or discarding it.
Diffstat (limited to 'libssh2-sys')
-rw-r--r--libssh2-sys/lib.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs
index 8157dab..2428f15 100644
--- a/libssh2-sys/lib.rs
+++ b/libssh2-sys/lib.rs
@@ -181,6 +181,10 @@ pub const LIBSSH2_SFTP_S_IFDIR: c_ulong = 0o040000;
pub const LIBSSH2_SFTP_S_IFREG: c_ulong = 0o100000;
pub const LIBSSH2_SFTP_S_IFLNK: c_ulong = 0o120000;
+pub const LIBSSH2_CHANNEL_EXTENDED_DATA_NORMAL: c_int = 0;
+pub const LIBSSH2_CHANNEL_EXTENDED_DATA_IGNORE: c_int = 1;
+pub const LIBSSH2_CHANNEL_EXTENDED_DATA_MERGE: c_int = 2;
+
pub enum LIBSSH2_SESSION {}
pub enum LIBSSH2_AGENT {}
pub enum LIBSSH2_CHANNEL {}
@@ -478,6 +482,10 @@ extern "C" {
bound_port: *mut c_int,
queue_maxsize: c_int,
) -> *mut LIBSSH2_LISTENER;
+ pub fn libssh2_channel_handle_extended_data2(
+ channel: *mut LIBSSH2_CHANNEL,
+ mode: c_int,
+ ) -> c_int;
// userauth
pub fn libssh2_userauth_authenticated(sess: *mut LIBSSH2_SESSION) -> c_int;