From fb99e7c9d22c7d07b3b5fdb5064d3aa6cef88e62 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Sun, 7 Jun 2020 16:03:06 +0200 Subject: cython: First run at updating Python bindings to updated interface --- cython/imobiledevice.pxd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cython/imobiledevice.pxd') diff --git a/cython/imobiledevice.pxd b/cython/imobiledevice.pxd index 8523c94..b44e444 100644 --- a/cython/imobiledevice.pxd +++ b/cython/imobiledevice.pxd @@ -23,13 +23,17 @@ cdef extern from "libimobiledevice/libimobiledevice.h": cdef struct idevice_connection_private: pass ctypedef idevice_connection_private* idevice_connection_t + cdef enum idevice_connection_type: + CONNECTION_USBMUXD = 1 + CONNECTION_NETWORK cdef enum idevice_event_type: - IDEVICE_DEVICE_ADD = 1, + IDEVICE_DEVICE_ADD = 1 IDEVICE_DEVICE_REMOVE + IDEVICE_DEVICE_PAIRED ctypedef struct idevice_event_t: idevice_event_type event char *udid - int conn_type + idevice_connection_type conn_type ctypedef idevice_event_t* const_idevice_event_t "const idevice_event_t*" cdef class iDeviceEvent: -- cgit v1.1-32-gdbae