Skip to content

Commit 7abd6c3

Browse files
author
Pan
committed
Implemented scp recv method, updated definition
1 parent a615bf4 commit 7abd6c3

File tree

4 files changed

+521
-502
lines changed

4 files changed

+521
-502
lines changed

ssh2/c_ssh2.pxd

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
from libc.stdint cimport uint64_t
1818
from libc.time cimport time_t
19-
from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t, mode_t,
19+
from posix.types cimport (blkcnt_t, blksize_t, dev_t, gid_t, ino_t,
2020
nlink_t, off_t, time_t, uid_t)
2121

2222

@@ -32,20 +32,6 @@ cdef extern from "libssh2.h" nogil:
3232
_LIBSSH2_CHANNEL_FLUSH_EXTENDED_DATA "LIBSSH2_CHANNEL_FLUSH_EXTENDED_DATA"
3333
_LIBSSH2_CHANNEL_FLUSH_ALL "LIBSSH2_CHANNEL_FLUSH_ALL"
3434
ctypedef long long libssh2_int64_t
35-
ctypedef struct stat:
36-
dev_t st_dev
37-
ino_t st_ino
38-
mode_t st_mode
39-
nlink_t st_nlink
40-
uid_t st_uid
41-
gid_t st_gid
42-
dev_t st_rdev
43-
off_t st_size
44-
blksize_t st_blksize
45-
blkcnt_t st_blocks
46-
time_t st_atime
47-
time_t st_mtime
48-
time_t st_ctime
4935
ctypedef uint64_t libssh2_struct_stat_size
5036
ctypedef struct libssh2_struct_stat:
5137
dev_t st_dev
@@ -325,7 +311,7 @@ cdef extern from "libssh2.h" nogil:
325311
# libssh2_scp_recv is DEPRECATED, do not use!
326312
LIBSSH2_CHANNEL *libssh2_scp_recv(LIBSSH2_SESSION *session,
327313
const char *path,
328-
stat *sb)
314+
libssh2_struct_stat *sb)
329315
# Use libssh2_scp_recv2 for large (> 2GB) file support on windows
330316
LIBSSH2_CHANNEL *libssh2_scp_recv2(LIBSSH2_SESSION *session,
331317
const char *path,

0 commit comments

Comments
 (0)