diff options
Diffstat (limited to 'cython')
| -rw-r--r-- | cython/mobilesync.pxi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cython/mobilesync.pxi b/cython/mobilesync.pxi index 843700b..aef13f9 100644 --- a/cython/mobilesync.pxi +++ b/cython/mobilesync.pxi | |||
| @@ -79,16 +79,16 @@ cdef class MobileSyncClient(DeviceLinkService): | |||
| 79 | err = mobilesync_client_free(self._c_client) | 79 | err = mobilesync_client_free(self._c_client) |
| 80 | self.handle_error(err) | 80 | self.handle_error(err) |
| 81 | 81 | ||
| 82 | cpdef tuple session_start(self, bytes data_class, bytes last_sync_time, bytes current_time): | 82 | cpdef tuple session_start(self, bytes data_class, bytes device_anchor, bytes host_anchor): |
| 83 | cdef: | 83 | cdef: |
| 84 | mobilesync_anchors_t anchors = NULL | 84 | mobilesync_anchors_t anchors = NULL |
| 85 | mobilesync_sync_type_t sync_type | 85 | mobilesync_sync_type_t sync_type |
| 86 | uint64_t data_class_version | 86 | uint64_t data_class_version |
| 87 | 87 | ||
| 88 | if last_sync_time is None: | 88 | if device_anchor is None: |
| 89 | anchors = mobilesync_anchors_new(NULL, current_time) | 89 | anchors = mobilesync_anchors_new(NULL, host_anchor) |
| 90 | else: | 90 | else: |
| 91 | anchors = mobilesync_anchors_new(last_sync_time, current_time) | 91 | anchors = mobilesync_anchors_new(device_anchor, host_anchor) |
| 92 | 92 | ||
| 93 | try: | 93 | try: |
| 94 | self.handle_error(mobilesync_session_start(self._c_client, data_class, anchors, &sync_type, &data_class_version)) | 94 | self.handle_error(mobilesync_session_start(self._c_client, data_class, anchors, &sync_type, &data_class_version)) |
