Skip to content

Commit

Permalink
Merge pull request #13 from pswilde/master
Browse files Browse the repository at this point in the history
revert breaking change in session_last_error proc
  • Loading branch information
ba0f3 authored Apr 24, 2022
2 parents fe83d73 + ff899cd commit 7c8e569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libssh2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ proc publickey_remove*(p: PublicKey, name, blob: cstring, blobLen: int): cint {.

proc publickey_shutdown*(p: PublicKey): cint {.ssh2.}

proc scp_recv*(s: Session, path: cstring, sb: Stat) {.ssh2.}
proc scp_recv*(s: Session, path: cstring, sb: Stat): Channel {.ssh2.}

proc scp_send_ex*(s: Session, path: cstring, mode, size: int, mtime, atime: int64): Channel {.ssh2.}

Expand Down Expand Up @@ -558,7 +558,7 @@ proc session_init*(): Session =

proc session_last_errno*(s: Session): cint {.ssh2.}

proc session_last_error*(s: Session, errormsg: ptr cstring, errmsgLene, wantBuf: int): cint {.ssh2.}
proc session_last_error*(s: Session, errormsg: ptr cstring, errmsgLen: ptr cint, wantBuf: int): cint {.ssh2.}

proc session_method_pref*(s: Session, methodType: int, prefs: cstring): cint {.ssh2.}

Expand Down
2 changes: 1 addition & 1 deletion libssh2.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Package]
name = "libssh2"
version = "0.1.5"
version = "0.1.6"
author = "Huy Doan"
description = "Nim wrapper for libssh2"
license = "MIT"
Expand Down

0 comments on commit 7c8e569

Please sign in to comment.