summaryrefslogtreecommitdiffstats
path: root/cython
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2015-01-26 23:37:08 +0100
committerGravatar Martin Szulecki2015-01-27 22:01:23 +0100
commit9d7667a1ace1da60f508fa075793bba87e98af4a (patch)
tree498ca6fb596f0b32f65f3607275adb977be09d07 /cython
parent9aa2fdef1c2b6d2292562d926f8482424c3b65fb (diff)
downloadlibimobiledevice-9d7667a1ace1da60f508fa075793bba87e98af4a.tar.gz
libimobiledevice-9d7667a1ace1da60f508fa075793bba87e98af4a.tar.bz2
installation_proxy: Refactor implementation, add new commands and helpers
Diffstat (limited to 'cython')
-rw-r--r--cython/installation_proxy.pxi6
1 files changed, 3 insertions, 3 deletions
diff --git a/cython/installation_proxy.pxi b/cython/installation_proxy.pxi
index d2d9b38..bf2c1da 100644
--- a/cython/installation_proxy.pxi
+++ b/cython/installation_proxy.pxi
@@ -2,7 +2,7 @@ cdef extern from "libimobiledevice/installation_proxy.h":
cdef struct instproxy_client_private:
pass
ctypedef instproxy_client_private *instproxy_client_t
- ctypedef void (*instproxy_status_cb_t) (const_char_ptr operation, plist.plist_t status, void *user_data)
+ ctypedef void (*instproxy_status_cb_t) (plist.plist_t command, plist.plist_t status, void *user_data)
ctypedef enum instproxy_error_t:
INSTPROXY_E_SUCCESS = 0
@@ -27,8 +27,8 @@ cdef extern from "libimobiledevice/installation_proxy.h":
instproxy_error_t instproxy_restore(instproxy_client_t client, char *appid, plist.plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
instproxy_error_t instproxy_remove_archive(instproxy_client_t client, char *appid, plist.plist_t client_options, instproxy_status_cb_t status_cb, void *user_data)
-cdef void instproxy_notify_cb(const_char_ptr operation, plist.plist_t status, void *py_callback) with gil:
- (<object>py_callback)(operation, plist.plist_t_to_node(status, False))
+cdef void instproxy_notify_cb(plist.plist_t command, plist.plist_t status, void *py_callback) with gil:
+ (<object>py_callback)(plist.plist_t_to_node(command, False), plist.plist_t_to_node(status, False))
cdef class InstallationProxyError(BaseError):
def __init__(self, *args, **kwargs):