diff options
| author | 2020-06-07 16:03:06 +0200 | |
|---|---|---|
| committer | 2020-06-07 16:03:06 +0200 | |
| commit | fb99e7c9d22c7d07b3b5fdb5064d3aa6cef88e62 (patch) | |
| tree | 2cf8aa54c6e5f9b8626b08fc9369dfc3323ad3fc /cython/imobiledevice.pyx | |
| parent | 03ba291453b992101a3fa15cc4469f1cc053927c (diff) | |
| download | libimobiledevice-fb99e7c9d22c7d07b3b5fdb5064d3aa6cef88e62.tar.gz libimobiledevice-fb99e7c9d22c7d07b3b5fdb5064d3aa6cef88e62.tar.bz2 | |
cython: First run at updating Python bindings to updated interface
Diffstat (limited to 'cython/imobiledevice.pyx')
| -rw-r--r-- | cython/imobiledevice.pyx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cython/imobiledevice.pyx b/cython/imobiledevice.pyx index 141f67c..aac4fdb 100644 --- a/cython/imobiledevice.pyx +++ b/cython/imobiledevice.pyx | |||
| @@ -40,6 +40,10 @@ cdef extern from "libimobiledevice/libimobiledevice.h": | |||
| 40 | IDEVICE_E_NOT_ENOUGH_DATA = -4 | 40 | IDEVICE_E_NOT_ENOUGH_DATA = -4 |
| 41 | IDEVICE_E_SSL_ERROR = -6 | 41 | IDEVICE_E_SSL_ERROR = -6 |
| 42 | IDEVICE_E_TIMEOUT = -7 | 42 | IDEVICE_E_TIMEOUT = -7 |
| 43 | cdef enum idevice_options: | ||
| 44 | IDEVICE_LOOKUP_USBMUX = 1 << 1 | ||
| 45 | IDEVICE_LOOKUP_NETWORK = 1 << 2 | ||
| 46 | IDEVICE_LOOKUP_PREFER_NETWORK = 1 << 3 | ||
| 43 | ctypedef void (*idevice_event_cb_t) (const_idevice_event_t event, void *user_data) | 47 | ctypedef void (*idevice_event_cb_t) (const_idevice_event_t event, void *user_data) |
| 44 | cdef extern idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data) | 48 | cdef extern idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void *user_data) |
| 45 | cdef extern idevice_error_t idevice_event_unsubscribe() | 49 | cdef extern idevice_error_t idevice_event_unsubscribe() |
| @@ -47,6 +51,7 @@ cdef extern from "libimobiledevice/libimobiledevice.h": | |||
| 47 | idevice_error_t idevice_device_list_free(char **devices) | 51 | idevice_error_t idevice_device_list_free(char **devices) |
| 48 | void idevice_set_debug_level(int level) | 52 | void idevice_set_debug_level(int level) |
| 49 | idevice_error_t idevice_new(idevice_t *device, char *udid) | 53 | idevice_error_t idevice_new(idevice_t *device, char *udid) |
| 54 | idevice_error_t idevice_new_with_options(idevice_t *device, const char *udid, idevice_options options); | ||
| 50 | idevice_error_t idevice_free(idevice_t device) | 55 | idevice_error_t idevice_free(idevice_t device) |
| 51 | idevice_error_t idevice_get_udid(idevice_t device, char** udid) | 56 | idevice_error_t idevice_get_udid(idevice_t device, char** udid) |
| 52 | idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle) | 57 | idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle) |
