blob: b59547c52ec12ef79c543947d20bbc89df3091e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
/*
* MobileSync.h
* Definitions for the built-in MobileSync client
*
* Copyright (c) 2009 Jonathan Beck All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MOBILESYNC_H
#define MOBILESYNC_H
#include "usbmux.h"
#include "iphone.h"
#include "utils.h"
#include <plist/plist.h>
struct iphone_msync_client_int;
typedef struct iphone_msync_client_int *iphone_msync_client_t;
struct iphone_msync_client_int {
iphone_umux_client_t connection;
};
iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int dst_port,
iphone_msync_client_t * client);
void iphone_msync_free_client(iphone_msync_client_t client);
iphone_error_t iphone_msync_recv(iphone_msync_client_t client, plist_t * plist);
iphone_error_t iphone_msync_send(iphone_msync_client_t client, plist_t plist);
iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client);
#endif
|