diff options
author | Wez Furlong <wez@wezfurlong.org> | 2019-08-01 21:32:35 -0700 |
---|---|---|
committer | Wez Furlong <wez@wezfurlong.org> | 2019-08-02 10:12:40 -0700 |
commit | 16cb2862ff01ba4a703cda59dfadbad443aa5738 (patch) | |
tree | 47bf5c40979d733196b192e6f819b184f9c38322 /libssh2-sys/lib.rs | |
parent | c49581f85ad9c3ad0e5b7595f5c7d6e72ea9a61b (diff) | |
download | ssh2-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/lib.rs')
-rw-r--r-- | libssh2-sys/lib.rs | 8 |
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; |