diff options
| author | 2009-01-08 23:27:28 +0100 | |
|---|---|---|
| committer | 2009-01-08 23:27:28 +0100 | |
| commit | 8f239549c124d11eb8899aec6c048d6a496e3911 (patch) | |
| tree | 340b439d5ca46b06c088b6c59d2b58451d050302 /src/MobileSync.h | |
| parent | f53b61c82be8aa6223ab6a524c2287d892f9864c (diff) | |
| download | libimobiledevice-8f239549c124d11eb8899aec6c048d6a496e3911.tar.gz libimobiledevice-8f239549c124d11eb8899aec6c048d6a496e3911.tar.bz2 | |
Implement skeleton of MobileSync protocol (handshake and goodbye).
Diffstat (limited to 'src/MobileSync.h')
| -rw-r--r-- | src/MobileSync.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/MobileSync.h b/src/MobileSync.h new file mode 100644 index 0000000..d7c774e --- /dev/null +++ b/src/MobileSync.h | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | /* | ||
| 2 | * MobileSync.h | ||
| 3 | * Definitions for the built-in MobileSync client | ||
| 4 | * | ||
| 5 | * Copyright (c) 2009 Jonathan Beck All Rights Reserved. | ||
| 6 | * | ||
| 7 | * This library is free software; you can redistribute it and/or | ||
| 8 | * modify it under the terms of the GNU Lesser General Public | ||
| 9 | * License as published by the Free Software Foundation; either | ||
| 10 | * version 2.1 of the License, or (at your option) any later version. | ||
| 11 | * | ||
| 12 | * This library is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 15 | * Lesser General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU Lesser General Public | ||
| 18 | * License along with this library; if not, write to the Free Software | ||
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 20 | */ | ||
| 21 | #ifndef MOBILESYNC_H | ||
| 22 | #define MOBILESYNC_H | ||
| 23 | |||
| 24 | #include "usbmux.h" | ||
| 25 | #include "iphone.h" | ||
| 26 | |||
| 27 | struct iphone_msync_client_int; | ||
| 28 | typedef struct iphone_msync_client_int *iphone_msync_client_t; | ||
| 29 | |||
| 30 | struct iphone_msync_client_int { | ||
| 31 | iphone_umux_client_t connection; | ||
| 32 | }; | ||
| 33 | |||
| 34 | iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port, | ||
| 35 | iphone_msync_client_t * client); | ||
| 36 | void iphone_msync_free_client(iphone_msync_client_t client); | ||
| 37 | |||
| 38 | iphone_error_t iphone_msync_recv(iphone_msync_client_t client, char **dump_data, uint32_t * recv_bytes); | ||
| 39 | iphone_error_t iphone_msync_send(iphone_msync_client_t client, char *raw_data, uint32_t length, uint32_t * sent_bytes); | ||
| 40 | |||
| 41 | #endif | ||
