afc.h | afc.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef AFC_H | #ifndef IAFC_H | |||
#define AFC_H | #define IAFC_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define AFC_E_SUCCESS 0 | #define AFC_E_SUCCESS 0 | |||
#define AFC_E_UNKNOWN_ERROR 1 | #define AFC_E_UNKNOWN_ERROR 1 | |||
#define AFC_E_OP_HEADER_INVALID 2 | #define AFC_E_OP_HEADER_INVALID 2 | |||
#define AFC_E_NO_RESOURCES 3 | #define AFC_E_NO_RESOURCES 3 | |||
#define AFC_E_READ_ERROR 4 | #define AFC_E_READ_ERROR 4 | |||
#define AFC_E_WRITE_ERROR 5 | #define AFC_E_WRITE_ERROR 5 | |||
#define AFC_E_UNKNOWN_PACKET_TYPE 6 | #define AFC_E_UNKNOWN_PACKET_TYPE 6 | |||
skipping to change at line 95 | skipping to change at line 96 | |||
typedef enum { | typedef enum { | |||
AFC_LOCK_SH = 1 | 4, /**< shared lock */ | AFC_LOCK_SH = 1 | 4, /**< shared lock */ | |||
AFC_LOCK_EX = 2 | 4, /**< exclusive lock */ | AFC_LOCK_EX = 2 | 4, /**< exclusive lock */ | |||
AFC_LOCK_UN = 8 | 4 /**< unlock */ | AFC_LOCK_UN = 8 | 4 /**< unlock */ | |||
} afc_lock_op_t; | } afc_lock_op_t; | |||
typedef struct afc_client_private afc_client_private; | typedef struct afc_client_private afc_client_private; | |||
typedef afc_client_private *afc_client_t; /**< The client handle. */ | typedef afc_client_private *afc_client_t; /**< The client handle. */ | |||
/* Interface */ | /* Interface */ | |||
afc_error_t afc_client_new_from_connection(idevice_connection_t connection, | afc_error_t afc_client_new(idevice_t device, lockdownd_service_descriptor_t | |||
afc_client_t *client); | service, afc_client_t *client); | |||
afc_error_t afc_client_new(idevice_t device, uint16_t port, afc_client_t *c | ||||
lient); | ||||
afc_error_t afc_client_free(afc_client_t client); | afc_error_t afc_client_free(afc_client_t client); | |||
afc_error_t afc_get_device_info(afc_client_t client, char ***infos); | afc_error_t afc_get_device_info(afc_client_t client, char ***infos); | |||
afc_error_t afc_read_directory(afc_client_t client, const char *dir, char * **list); | afc_error_t afc_read_directory(afc_client_t client, const char *dir, char * **list); | |||
afc_error_t afc_get_file_info(afc_client_t client, const char *filename, ch ar ***infolist); | afc_error_t afc_get_file_info(afc_client_t client, const char *filename, ch ar ***infolist); | |||
afc_error_t afc_file_open(afc_client_t client, const char *filename, afc_fi le_mode_t file_mode, uint64_t *handle); | afc_error_t afc_file_open(afc_client_t client, const char *filename, afc_fi le_mode_t file_mode, uint64_t *handle); | |||
afc_error_t afc_file_close(afc_client_t client, uint64_t handle); | afc_error_t afc_file_close(afc_client_t client, uint64_t handle); | |||
afc_error_t afc_file_lock(afc_client_t client, uint64_t handle, afc_lock_op _t operation); | afc_error_t afc_file_lock(afc_client_t client, uint64_t handle, afc_lock_op _t operation); | |||
afc_error_t afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read); | afc_error_t afc_file_read(afc_client_t client, uint64_t handle, char *data, uint32_t length, uint32_t *bytes_read); | |||
afc_error_t afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written); | afc_error_t afc_file_write(afc_client_t client, uint64_t handle, const char *data, uint32_t length, uint32_t *bytes_written); | |||
afc_error_t afc_file_seek(afc_client_t client, uint64_t handle, int64_t off set, int whence); | afc_error_t afc_file_seek(afc_client_t client, uint64_t handle, int64_t off set, int whence); | |||
End of changes. 3 change blocks. | ||||
6 lines changed or deleted | 5 lines changed or added | |||
file_relay.h | file_relay.h | |||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
*/ | */ | |||
#ifndef IFILE_RELAY_H | #ifndef IFILE_RELAY_H | |||
#define IFILE_RELAY_H | #define IFILE_RELAY_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define FILE_RELAY_E_SUCCESS 0 | #define FILE_RELAY_E_SUCCESS 0 | |||
#define FILE_RELAY_E_INVALID_ARG -1 | #define FILE_RELAY_E_INVALID_ARG -1 | |||
#define FILE_RELAY_E_PLIST_ERROR -2 | #define FILE_RELAY_E_PLIST_ERROR -2 | |||
#define FILE_RELAY_E_MUX_ERROR -3 | #define FILE_RELAY_E_MUX_ERROR -3 | |||
#define FILE_RELAY_E_INVALID_SOURCE -4 | #define FILE_RELAY_E_INVALID_SOURCE -4 | |||
#define FILE_RELAY_E_STAGING_EMPTY -5 | #define FILE_RELAY_E_STAGING_EMPTY -5 | |||
#define FILE_RELAY_E_UNKNOWN_ERROR -256 | #define FILE_RELAY_E_UNKNOWN_ERROR -256 | |||
/*@}*/ | /*@}*/ | |||
/** Represents an error code. */ | /** Represents an error code. */ | |||
typedef int16_t file_relay_error_t; | typedef int16_t file_relay_error_t; | |||
typedef struct file_relay_client_private file_relay_client_private; | typedef struct file_relay_client_private file_relay_client_private; | |||
typedef file_relay_client_private *file_relay_client_t; /**< The client han dle. */ | typedef file_relay_client_private *file_relay_client_t; /**< The client han dle. */ | |||
file_relay_error_t file_relay_client_new(idevice_t device, uint16_t port, f ile_relay_client_t *client); | file_relay_error_t file_relay_client_new(idevice_t device, lockdownd_servic e_descriptor_t service, file_relay_client_t *client); | |||
file_relay_error_t file_relay_client_free(file_relay_client_t client); | file_relay_error_t file_relay_client_free(file_relay_client_t client); | |||
file_relay_error_t file_relay_request_sources(file_relay_client_t client, c onst char **sources, idevice_connection_t *connection); | file_relay_error_t file_relay_request_sources(file_relay_client_t client, c onst char **sources, idevice_connection_t *connection); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||
house_arrest.h | house_arrest.h | |||
---|---|---|---|---|
/** | /** | |||
* @file libimobiledevice/house_arrest.h | * @file libimobiledevice/house_arrest.h | |||
* @brief Access AppStore application folders and their contents. | * @brief Access app folders and their contents. | |||
* \internal | * \internal | |||
* | * | |||
* Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * 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, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef HOUSE_ARREST_H | #ifndef IHOUSE_ARREST_H | |||
#define HOUSE_ARREST_H | #define IHOUSE_ARREST_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
#include <libimobiledevice/afc.h> | #include <libimobiledevice/afc.h> | |||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define HOUSE_ARREST_E_SUCCESS 0 | #define HOUSE_ARREST_E_SUCCESS 0 | |||
#define HOUSE_ARREST_E_INVALID_ARG -1 | #define HOUSE_ARREST_E_INVALID_ARG -1 | |||
#define HOUSE_ARREST_E_PLIST_ERROR -2 | #define HOUSE_ARREST_E_PLIST_ERROR -2 | |||
#define HOUSE_ARREST_E_CONN_FAILED -3 | #define HOUSE_ARREST_E_CONN_FAILED -3 | |||
#define HOUSE_ARREST_E_INVALID_MODE -4 | #define HOUSE_ARREST_E_INVALID_MODE -4 | |||
#define HOUSE_ARREST_E_UNKNOWN_ERROR -256 | #define HOUSE_ARREST_E_UNKNOWN_ERROR -256 | |||
/*@}*/ | /*@}*/ | |||
/** Represents an error code. */ | /** Represents an error code. */ | |||
typedef int16_t house_arrest_error_t; | typedef int16_t house_arrest_error_t; | |||
typedef struct house_arrest_client_private house_arrest_client_private; | typedef struct house_arrest_client_private house_arrest_client_private; | |||
typedef house_arrest_client_private *house_arrest_client_t; /**< The client handle. */ | typedef house_arrest_client_private *house_arrest_client_t; /**< The client handle. */ | |||
/* Interface */ | /* Interface */ | |||
house_arrest_error_t house_arrest_client_new(idevice_t device, uint16_t por t, house_arrest_client_t *client); | house_arrest_error_t house_arrest_client_new(idevice_t device, lockdownd_se rvice_descriptor_t service, house_arrest_client_t *client); | |||
house_arrest_error_t house_arrest_client_free(house_arrest_client_t client) ; | house_arrest_error_t house_arrest_client_free(house_arrest_client_t client) ; | |||
house_arrest_error_t house_arrest_send_request(house_arrest_client_t client , plist_t dict); | house_arrest_error_t house_arrest_send_request(house_arrest_client_t client , plist_t dict); | |||
house_arrest_error_t house_arrest_send_command(house_arrest_client_t client , const char *command, const char *appid); | house_arrest_error_t house_arrest_send_command(house_arrest_client_t client , const char *command, const char *appid); | |||
house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict); | house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict); | |||
afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t c lient, afc_client_t *afc_client); | afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t c lient, afc_client_t *afc_client); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 5 lines changed or added | |||
installation_proxy.h | installation_proxy.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef INSTALLATION_PROXY_H | #ifndef IINSTALLATION_PROXY_H | |||
#define INSTALLATION_PROXY_H | #define IINSTALLATION_PROXY_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define INSTPROXY_E_SUCCESS 0 | #define INSTPROXY_E_SUCCESS 0 | |||
#define INSTPROXY_E_INVALID_ARG -1 | #define INSTPROXY_E_INVALID_ARG -1 | |||
#define INSTPROXY_E_PLIST_ERROR -2 | #define INSTPROXY_E_PLIST_ERROR -2 | |||
#define INSTPROXY_E_CONN_FAILED -3 | #define INSTPROXY_E_CONN_FAILED -3 | |||
#define INSTPROXY_E_OP_IN_PROGRESS -4 | #define INSTPROXY_E_OP_IN_PROGRESS -4 | |||
#define INSTPROXY_E_OP_FAILED -5 | #define INSTPROXY_E_OP_FAILED -5 | |||
skipping to change at line 54 | skipping to change at line 55 | |||
/** Represents an error code. */ | /** Represents an error code. */ | |||
typedef int16_t instproxy_error_t; | typedef int16_t instproxy_error_t; | |||
typedef struct instproxy_client_private instproxy_client_private; | typedef struct instproxy_client_private instproxy_client_private; | |||
typedef instproxy_client_private *instproxy_client_t; /**< The client handl e. */ | typedef instproxy_client_private *instproxy_client_t; /**< The client handl e. */ | |||
/** Reports the status of the given operation */ | /** Reports the status of the given operation */ | |||
typedef void (*instproxy_status_cb_t) (const char *operation, plist_t statu s, void *user_data); | typedef void (*instproxy_status_cb_t) (const char *operation, plist_t statu s, void *user_data); | |||
/* Interface */ | /* Interface */ | |||
instproxy_error_t instproxy_client_new(idevice_t device, uint16_t port, ins tproxy_client_t *client); | instproxy_error_t instproxy_client_new(idevice_t device, lockdownd_service_ descriptor_t service, instproxy_client_t *client); | |||
instproxy_error_t instproxy_client_free(instproxy_client_t client); | instproxy_error_t instproxy_client_free(instproxy_client_t client); | |||
instproxy_error_t instproxy_browse(instproxy_client_t client, plist_t clien t_options, plist_t *result); | instproxy_error_t instproxy_browse(instproxy_client_t client, plist_t clien t_options, plist_t *result); | |||
instproxy_error_t instproxy_install(instproxy_client_t client, const char * pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *us er_data); | instproxy_error_t instproxy_install(instproxy_client_t client, const char * pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *us er_data); | |||
instproxy_error_t instproxy_upgrade(instproxy_client_t client, const char * pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *us er_data); | instproxy_error_t instproxy_upgrade(instproxy_client_t client, const char * pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *us er_data); | |||
instproxy_error_t instproxy_uninstall(instproxy_client_t client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *use r_data); | instproxy_error_t instproxy_uninstall(instproxy_client_t client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *use r_data); | |||
instproxy_error_t instproxy_lookup_archives(instproxy_client_t client, plis t_t client_options, plist_t *result); | instproxy_error_t instproxy_lookup_archives(instproxy_client_t client, plis t_t client_options, plist_t *result); | |||
instproxy_error_t instproxy_archive(instproxy_client_t client, const char * appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_ data); | instproxy_error_t instproxy_archive(instproxy_client_t client, const char * appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_ data); | |||
instproxy_error_t instproxy_restore(instproxy_client_t client, const char * appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_ data); | instproxy_error_t instproxy_restore(instproxy_client_t client, const char * appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_ data); | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 4 lines changed or added | |||
libimobiledevice.h | libimobiledevice.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef LIBIMOBILEDEVICE_H | #ifndef IMOBILEDEVICE_H | |||
#define LIBIMOBILEDEVICE_H | #define IMOBILEDEVICE_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <stdint.h> | #include <stdint.h> | |||
#include <sys/types.h> | #include <sys/types.h> | |||
#include <sys/stat.h> | #include <sys/stat.h> | |||
#include <plist/plist.h> | #include <plist/plist.h> | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
lockdown.h | lockdown.h | |||
---|---|---|---|---|
skipping to change at line 24 | skipping to change at line 24 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef LOCKDOWN_H | #ifndef ILOCKDOWN_H | |||
#define LOCKDOWN_H | #define ILOCKDOWN_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define LOCKDOWN_E_SUCCESS 0 | #define LOCKDOWN_E_SUCCESS 0 | |||
#define LOCKDOWN_E_INVALID_ARG -1 | #define LOCKDOWN_E_INVALID_ARG -1 | |||
#define LOCKDOWN_E_INVALID_CONF -2 | #define LOCKDOWN_E_INVALID_CONF -2 | |||
#define LOCKDOWN_E_PLIST_ERROR -3 | #define LOCKDOWN_E_PLIST_ERROR -3 | |||
#define LOCKDOWN_E_PAIRING_FAILED -4 | #define LOCKDOWN_E_PAIRING_FAILED -4 | |||
#define LOCKDOWN_E_SSL_ERROR -5 | #define LOCKDOWN_E_SSL_ERROR -5 | |||
#define LOCKDOWN_E_DICT_ERROR -6 | #define LOCKDOWN_E_DICT_ERROR -6 | |||
skipping to change at line 73 | skipping to change at line 74 | |||
struct lockdownd_pair_record { | struct lockdownd_pair_record { | |||
char *device_certificate; /**< The device certificate */ | char *device_certificate; /**< The device certificate */ | |||
char *host_certificate; /**< The host certificate */ | char *host_certificate; /**< The host certificate */ | |||
char *host_id; /**< A unique HostID for the host computer */ | char *host_id; /**< A unique HostID for the host computer */ | |||
char *root_certificate; /**< The root certificate */ | char *root_certificate; /**< The root certificate */ | |||
}; | }; | |||
/** A pair record holding device, host and root certificates along the host _id */ | /** A pair record holding device, host and root certificates along the host _id */ | |||
typedef struct lockdownd_pair_record *lockdownd_pair_record_t; | typedef struct lockdownd_pair_record *lockdownd_pair_record_t; | |||
struct lockdownd_service_descriptor { | ||||
uint16_t port; | ||||
uint8_t ssl_enabled; | ||||
}; | ||||
typedef struct lockdownd_service_descriptor *lockdownd_service_descriptor_t | ||||
; | ||||
/* Interface */ | /* Interface */ | |||
lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, const char *label); | lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, const char *label); | |||
lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, loc kdownd_client_t *client, const char *label); | lockdownd_error_t lockdownd_client_new_with_handshake(idevice_t device, loc kdownd_client_t *client, const char *label); | |||
lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); | lockdownd_error_t lockdownd_client_free(lockdownd_client_t client); | |||
lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **ty pe); | lockdownd_error_t lockdownd_query_type(lockdownd_client_t client, char **ty pe); | |||
lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); | lockdownd_error_t lockdownd_get_value(lockdownd_client_t client, const char *domain, const char *key, plist_t *value); | |||
lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); | lockdownd_error_t lockdownd_set_value(lockdownd_client_t client, const char *domain, const char *key, plist_t value); | |||
lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const c har *domain, const char *key); | lockdownd_error_t lockdownd_remove_value(lockdownd_client_t client, const c har *domain, const char *key); | |||
lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *service, uint16_t *port); | lockdownd_error_t lockdownd_start_service(lockdownd_client_t client, const char *identifier, lockdownd_service_descriptor_t *service); | |||
lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled); | lockdownd_error_t lockdownd_start_session(lockdownd_client_t client, const char *host_id, char **session_id, int *ssl_enabled); | |||
lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const c har *session_id); | lockdownd_error_t lockdownd_stop_session(lockdownd_client_t client, const c har *session_id); | |||
lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); | lockdownd_error_t lockdownd_send(lockdownd_client_t client, plist_t plist); | |||
lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *pli st); | lockdownd_error_t lockdownd_receive(lockdownd_client_t client, plist_t *pli st); | |||
lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_ record_t pair_record); | lockdownd_error_t lockdownd_pair(lockdownd_client_t client, lockdownd_pair_ record_t pair_record); | |||
lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, lockdo wnd_pair_record_t pair_record); | lockdownd_error_t lockdownd_validate_pair(lockdownd_client_t client, lockdo wnd_pair_record_t pair_record); | |||
lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, lockdownd_pai r_record_t pair_record); | lockdownd_error_t lockdownd_unpair(lockdownd_client_t client, lockdownd_pai r_record_t pair_record); | |||
lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t act ivation_record); | lockdownd_error_t lockdownd_activate(lockdownd_client_t client, plist_t act ivation_record); | |||
lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client); | lockdownd_error_t lockdownd_deactivate(lockdownd_client_t client); | |||
lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); | lockdownd_error_t lockdownd_enter_recovery(lockdownd_client_t client); | |||
lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client); | lockdownd_error_t lockdownd_goodbye(lockdownd_client_t client); | |||
/* Helper */ | /* Helper */ | |||
void lockdownd_client_set_label(lockdownd_client_t client, const char *labe l); | void lockdownd_client_set_label(lockdownd_client_t client, const char *labe l); | |||
lockdownd_error_t lockdownd_get_device_udid(lockdownd_client_t control, cha r **udid); | lockdownd_error_t lockdownd_get_device_udid(lockdownd_client_t control, cha r **udid); | |||
lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name); | lockdownd_error_t lockdownd_get_device_name(lockdownd_client_t client, char **device_name); | |||
lockdownd_error_t lockdownd_get_sync_data_classes(lockdownd_client_t client , char ***classes, int *count); | lockdownd_error_t lockdownd_get_sync_data_classes(lockdownd_client_t client , char ***classes, int *count); | |||
lockdownd_error_t lockdownd_data_classes_free(char **classes); | lockdownd_error_t lockdownd_data_classes_free(char **classes); | |||
lockdownd_error_t lockdownd_service_descriptor_free(lockdownd_service_descr iptor_t service); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 5 change blocks. | ||||
3 lines changed or deleted | 12 lines changed or added | |||
mobile_image_mounter.h | mobile_image_mounter.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef MOBILE_IMAGE_MOUNTER_H | #ifndef IMOBILE_IMAGE_MOUNTER_H | |||
#define MOBILE_IMAGE_MOUNTER_H | #define IMOBILE_IMAGE_MOUNTER_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define MOBILE_IMAGE_MOUNTER_E_SUCCESS 0 | #define MOBILE_IMAGE_MOUNTER_E_SUCCESS 0 | |||
#define MOBILE_IMAGE_MOUNTER_E_INVALID_ARG -1 | #define MOBILE_IMAGE_MOUNTER_E_INVALID_ARG -1 | |||
#define MOBILE_IMAGE_MOUNTER_E_PLIST_ERROR -2 | #define MOBILE_IMAGE_MOUNTER_E_PLIST_ERROR -2 | |||
#define MOBILE_IMAGE_MOUNTER_E_CONN_FAILED -3 | #define MOBILE_IMAGE_MOUNTER_E_CONN_FAILED -3 | |||
#define MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR -256 | #define MOBILE_IMAGE_MOUNTER_E_UNKNOWN_ERROR -256 | |||
/*@}*/ | /*@}*/ | |||
/** Represents an error code. */ | /** Represents an error code. */ | |||
typedef int16_t mobile_image_mounter_error_t; | typedef int16_t mobile_image_mounter_error_t; | |||
typedef struct mobile_image_mounter_client_private mobile_image_mounter_cli ent_private; | typedef struct mobile_image_mounter_client_private mobile_image_mounter_cli ent_private; | |||
typedef mobile_image_mounter_client_private *mobile_image_mounter_client_t; /**< The client handle. */ | typedef mobile_image_mounter_client_private *mobile_image_mounter_client_t; /**< The client handle. */ | |||
/* Interface */ | /* Interface */ | |||
mobile_image_mounter_error_t mobile_image_mounter_new(idevice_t device, uin t16_t port, mobile_image_mounter_client_t *client); | mobile_image_mounter_error_t mobile_image_mounter_new(idevice_t device, loc kdownd_service_descriptor_t service, mobile_image_mounter_client_t *client) ; | |||
mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter _client_t client); | mobile_image_mounter_error_t mobile_image_mounter_free(mobile_image_mounter _client_t client); | |||
mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image _mounter_client_t client, const char *image_type, plist_t *result); | mobile_image_mounter_error_t mobile_image_mounter_lookup_image(mobile_image _mounter_client_t client, const char *image_type, plist_t *result); | |||
mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_ mounter_client_t client, const char *image_path, const char *image_signatur e, uint16_t signature_length, const char *image_type, plist_t *result); | mobile_image_mounter_error_t mobile_image_mounter_mount_image(mobile_image_ mounter_client_t client, const char *image_path, const char *image_signatur e, uint16_t signature_length, const char *image_type, plist_t *result); | |||
mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mount er_client_t client); | mobile_image_mounter_error_t mobile_image_mounter_hangup(mobile_image_mount er_client_t client); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 4 lines changed or added | |||
mobilebackup.h | mobilebackup.h | |||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
*/ | */ | |||
#ifndef IMOBILEBACKUP_H | #ifndef IMOBILEBACKUP_H | |||
#define IMOBILEBACKUP_H | #define IMOBILEBACKUP_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define MOBILEBACKUP_E_SUCCESS 0 | #define MOBILEBACKUP_E_SUCCESS 0 | |||
#define MOBILEBACKUP_E_INVALID_ARG -1 | #define MOBILEBACKUP_E_INVALID_ARG -1 | |||
#define MOBILEBACKUP_E_PLIST_ERROR -2 | #define MOBILEBACKUP_E_PLIST_ERROR -2 | |||
#define MOBILEBACKUP_E_MUX_ERROR -3 | #define MOBILEBACKUP_E_MUX_ERROR -3 | |||
#define MOBILEBACKUP_E_BAD_VERSION -4 | #define MOBILEBACKUP_E_BAD_VERSION -4 | |||
#define MOBILEBACKUP_E_REPLY_NOT_OK -5 | #define MOBILEBACKUP_E_REPLY_NOT_OK -5 | |||
skipping to change at line 56 | skipping to change at line 57 | |||
typedef struct mobilebackup_client_private mobilebackup_client_private; | typedef struct mobilebackup_client_private mobilebackup_client_private; | |||
typedef mobilebackup_client_private *mobilebackup_client_t; /**< The client handle. */ | typedef mobilebackup_client_private *mobilebackup_client_t; /**< The client handle. */ | |||
typedef enum { | typedef enum { | |||
MB_RESTORE_NOTIFY_SPRINGBOARD = 1 << 0, | MB_RESTORE_NOTIFY_SPRINGBOARD = 1 << 0, | |||
MB_RESTORE_PRESERVE_SETTINGS = 1 << 1, | MB_RESTORE_PRESERVE_SETTINGS = 1 << 1, | |||
MB_RESTORE_PRESERVE_CAMERA_ROLL = 1 << 2 | MB_RESTORE_PRESERVE_CAMERA_ROLL = 1 << 2 | |||
} mobilebackup_flags_t; | } mobilebackup_flags_t; | |||
mobilebackup_error_t mobilebackup_client_new(idevice_t device, uint16_t por t, mobilebackup_client_t * client); | mobilebackup_error_t mobilebackup_client_new(idevice_t device, lockdownd_se rvice_descriptor_t service, mobilebackup_client_t * client); | |||
mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client) ; | mobilebackup_error_t mobilebackup_client_free(mobilebackup_client_t client) ; | |||
mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, pli st_t *plist); | mobilebackup_error_t mobilebackup_receive(mobilebackup_client_t client, pli st_t *plist); | |||
mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_ t plist); | mobilebackup_error_t mobilebackup_send(mobilebackup_client_t client, plist_ t plist); | |||
mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t clie nt, plist_t backup_manifest, const char *base_path, const char *proto_versi on); | mobilebackup_error_t mobilebackup_request_backup(mobilebackup_client_t clie nt, plist_t backup_manifest, const char *base_path, const char *proto_versi on); | |||
mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_cl ient_t client); | mobilebackup_error_t mobilebackup_send_backup_file_received(mobilebackup_cl ient_t client); | |||
mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t cli ent, plist_t backup_manifest, mobilebackup_flags_t flags, const char *proto _version); | mobilebackup_error_t mobilebackup_request_restore(mobilebackup_client_t cli ent, plist_t backup_manifest, mobilebackup_flags_t flags, const char *proto _version); | |||
mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebacku p_client_t client, plist_t *result); | mobilebackup_error_t mobilebackup_receive_restore_file_received(mobilebacku p_client_t client, plist_t *result); | |||
mobilebackup_error_t mobilebackup_receive_restore_application_received(mobi lebackup_client_t client, plist_t *result); | mobilebackup_error_t mobilebackup_receive_restore_application_received(mobi lebackup_client_t client, plist_t *result); | |||
mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client _t client); | mobilebackup_error_t mobilebackup_send_restore_complete(mobilebackup_client _t client); | |||
mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason); | mobilebackup_error_t mobilebackup_send_error(mobilebackup_client_t client, const char *reason); | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||
mobilebackup2.h | mobilebackup2.h | |||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
*/ | */ | |||
#ifndef IMOBILEBACKUP2_H | #ifndef IMOBILEBACKUP2_H | |||
#define IMOBILEBACKUP2_H | #define IMOBILEBACKUP2_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define MOBILEBACKUP2_E_SUCCESS 0 | #define MOBILEBACKUP2_E_SUCCESS 0 | |||
#define MOBILEBACKUP2_E_INVALID_ARG -1 | #define MOBILEBACKUP2_E_INVALID_ARG -1 | |||
#define MOBILEBACKUP2_E_PLIST_ERROR -2 | #define MOBILEBACKUP2_E_PLIST_ERROR -2 | |||
#define MOBILEBACKUP2_E_MUX_ERROR -3 | #define MOBILEBACKUP2_E_MUX_ERROR -3 | |||
#define MOBILEBACKUP2_E_BAD_VERSION -4 | #define MOBILEBACKUP2_E_BAD_VERSION -4 | |||
#define MOBILEBACKUP2_E_REPLY_NOT_OK -5 | #define MOBILEBACKUP2_E_REPLY_NOT_OK -5 | |||
#define MOBILEBACKUP2_E_NO_COMMON_VERSION -6 | #define MOBILEBACKUP2_E_NO_COMMON_VERSION -6 | |||
#define MOBILEBACKUP2_E_UNKNOWN_ERROR -256 | #define MOBILEBACKUP2_E_UNKNOWN_ERROR -256 | |||
/*@}*/ | /*@}*/ | |||
/** Represents an error code. */ | /** Represents an error code. */ | |||
typedef int16_t mobilebackup2_error_t; | typedef int16_t mobilebackup2_error_t; | |||
typedef struct mobilebackup2_client_private mobilebackup2_client_private; | typedef struct mobilebackup2_client_private mobilebackup2_client_private; | |||
typedef mobilebackup2_client_private *mobilebackup2_client_t; /**< The clie nt handle. */ | typedef mobilebackup2_client_private *mobilebackup2_client_t; /**< The clie nt handle. */ | |||
mobilebackup2_error_t mobilebackup2_client_new(idevice_t device, uint16_t p ort, mobilebackup2_client_t * client); | mobilebackup2_error_t mobilebackup2_client_new(idevice_t device, lockdownd_ service_descriptor_t service, mobilebackup2_client_t * client); | |||
mobilebackup2_error_t mobilebackup2_client_free(mobilebackup2_client_t clie nt); | mobilebackup2_error_t mobilebackup2_client_free(mobilebackup2_client_t clie nt); | |||
mobilebackup2_error_t mobilebackup2_send_message(mobilebackup2_client_t cli ent, const char *message, plist_t options); | mobilebackup2_error_t mobilebackup2_send_message(mobilebackup2_client_t cli ent, const char *message, plist_t options); | |||
mobilebackup2_error_t mobilebackup2_receive_message(mobilebackup2_client_t client, plist_t *msg_plist, char **dlmessage); | mobilebackup2_error_t mobilebackup2_receive_message(mobilebackup2_client_t client, plist_t *msg_plist, char **dlmessage); | |||
mobilebackup2_error_t mobilebackup2_send_raw(mobilebackup2_client_t client, const char *data, uint32_t length, uint32_t *bytes); | mobilebackup2_error_t mobilebackup2_send_raw(mobilebackup2_client_t client, const char *data, uint32_t length, uint32_t *bytes); | |||
mobilebackup2_error_t mobilebackup2_receive_raw(mobilebackup2_client_t clie nt, char *data, uint32_t length, uint32_t *bytes); | mobilebackup2_error_t mobilebackup2_receive_raw(mobilebackup2_client_t clie nt, char *data, uint32_t length, uint32_t *bytes); | |||
mobilebackup2_error_t mobilebackup2_version_exchange(mobilebackup2_client_t client, double local_versions[], char count, double *remote_version); | mobilebackup2_error_t mobilebackup2_version_exchange(mobilebackup2_client_t client, double local_versions[], char count, double *remote_version); | |||
mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t cli ent, const char *request, const char *target_identifier, const char *source _identifier, plist_t options); | mobilebackup2_error_t mobilebackup2_send_request(mobilebackup2_client_t cli ent, const char *request, const char *target_identifier, const char *source _identifier, plist_t options); | |||
mobilebackup2_error_t mobilebackup2_send_status_response(mobilebackup2_clie nt_t client, int status_code, const char *status1, plist_t status2); | mobilebackup2_error_t mobilebackup2_send_status_response(mobilebackup2_clie nt_t client, int status_code, const char *status1, plist_t status2); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||
mobilesync.h | mobilesync.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
*/ | */ | |||
#ifndef IMOBILESYNC_H | #ifndef IMOBILESYNC_H | |||
#define IMOBILESYNC_H | #define IMOBILESYNC_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define MOBILESYNC_E_SUCCESS 0 | #define MOBILESYNC_E_SUCCESS 0 | |||
#define MOBILESYNC_E_INVALID_ARG -1 | #define MOBILESYNC_E_INVALID_ARG -1 | |||
#define MOBILESYNC_E_PLIST_ERROR -2 | #define MOBILESYNC_E_PLIST_ERROR -2 | |||
#define MOBILESYNC_E_MUX_ERROR -3 | #define MOBILESYNC_E_MUX_ERROR -3 | |||
#define MOBILESYNC_E_BAD_VERSION -4 | #define MOBILESYNC_E_BAD_VERSION -4 | |||
#define MOBILESYNC_E_SYNC_REFUSED -5 | #define MOBILESYNC_E_SYNC_REFUSED -5 | |||
#define MOBILESYNC_E_CANCELLED -6 | #define MOBILESYNC_E_CANCELLED -6 | |||
skipping to change at line 68 | skipping to change at line 69 | |||
typedef struct mobilesync_client_private mobilesync_client_private; | typedef struct mobilesync_client_private mobilesync_client_private; | |||
typedef mobilesync_client_private *mobilesync_client_t; /**< The client han dle */ | typedef mobilesync_client_private *mobilesync_client_t; /**< The client han dle */ | |||
typedef struct { | typedef struct { | |||
char *device_anchor; | char *device_anchor; | |||
char *computer_anchor; | char *computer_anchor; | |||
} mobilesync_anchors; | } mobilesync_anchors; | |||
typedef mobilesync_anchors *mobilesync_anchors_t; /**< Anchors used by the device and computer. */ | typedef mobilesync_anchors *mobilesync_anchors_t; /**< Anchors used by the device and computer. */ | |||
/* Interface */ | /* Interface */ | |||
mobilesync_error_t mobilesync_client_new(idevice_t device, uint16_t port, m obilesync_client_t * client); | mobilesync_error_t mobilesync_client_new(idevice_t device, lockdownd_servic e_descriptor_t service, mobilesync_client_t * client); | |||
mobilesync_error_t mobilesync_client_free(mobilesync_client_t client); | mobilesync_error_t mobilesync_client_free(mobilesync_client_t client); | |||
mobilesync_error_t mobilesync_receive(mobilesync_client_t client, plist_t * plist); | mobilesync_error_t mobilesync_receive(mobilesync_client_t client, plist_t * plist); | |||
mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plis t); | mobilesync_error_t mobilesync_send(mobilesync_client_t client, plist_t plis t); | |||
mobilesync_error_t mobilesync_start(mobilesync_client_t client, const char *data_class, mobilesync_anchors_t anchors, uint64_t computer_data_class_ver sion, mobilesync_sync_type_t *sync_type, uint64_t *device_data_class_versio n); | mobilesync_error_t mobilesync_start(mobilesync_client_t client, const char *data_class, mobilesync_anchors_t anchors, uint64_t computer_data_class_ver sion, mobilesync_sync_type_t *sync_type, uint64_t *device_data_class_versio n, char** error_description); | |||
mobilesync_error_t mobilesync_cancel(mobilesync_client_t client, const char * reason); | mobilesync_error_t mobilesync_cancel(mobilesync_client_t client, const char * reason); | |||
mobilesync_error_t mobilesync_finish(mobilesync_client_t client); | mobilesync_error_t mobilesync_finish(mobilesync_client_t client); | |||
mobilesync_error_t mobilesync_get_all_records_from_device(mobilesync_client _t client); | mobilesync_error_t mobilesync_get_all_records_from_device(mobilesync_client _t client); | |||
mobilesync_error_t mobilesync_get_changes_from_device(mobilesync_client_t c lient); | mobilesync_error_t mobilesync_get_changes_from_device(mobilesync_client_t c lient); | |||
mobilesync_error_t mobilesync_clear_all_records_on_device(mobilesync_client _t client); | mobilesync_error_t mobilesync_clear_all_records_on_device(mobilesync_client _t client); | |||
mobilesync_error_t mobilesync_receive_changes(mobilesync_client_t client, p list_t *entities, uint8_t *is_last_record, plist_t *actions); | mobilesync_error_t mobilesync_receive_changes(mobilesync_client_t client, p list_t *entities, uint8_t *is_last_record, plist_t *actions); | |||
mobilesync_error_t mobilesync_acknowledge_changes_from_device(mobilesync_cl ient_t client); | mobilesync_error_t mobilesync_acknowledge_changes_from_device(mobilesync_cl ient_t client); | |||
End of changes. 3 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added | |||
notification_proxy.h | notification_proxy.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef NOTIFICATION_PROXY_H | #ifndef INOTIFICATION_PROXY_H | |||
#define NOTIFICATION_PROXY_H | #define INOTIFICATION_PROXY_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define NP_E_SUCCESS 0 | #define NP_E_SUCCESS 0 | |||
#define NP_E_INVALID_ARG -1 | #define NP_E_INVALID_ARG -1 | |||
#define NP_E_PLIST_ERROR -2 | #define NP_E_PLIST_ERROR -2 | |||
#define NP_E_CONN_FAILED -3 | #define NP_E_CONN_FAILED -3 | |||
#define NP_E_UNKNOWN_ERROR -256 | #define NP_E_UNKNOWN_ERROR -256 | |||
/*@}*/ | /*@}*/ | |||
skipping to change at line 93 | skipping to change at line 94 | |||
#define NP_ADDRESS_BOOK_PREF_CHANGED "com.apple.AddressBook.PreferenceChang ed" | #define NP_ADDRESS_BOOK_PREF_CHANGED "com.apple.AddressBook.PreferenceChang ed" | |||
/*@}*/ | /*@}*/ | |||
typedef struct np_client_private np_client_private; | typedef struct np_client_private np_client_private; | |||
typedef np_client_private *np_client_t; /**< The client handle. */ | typedef np_client_private *np_client_t; /**< The client handle. */ | |||
/** Reports which notification was received. */ | /** Reports which notification was received. */ | |||
typedef void (*np_notify_cb_t) (const char *notification, void *user_data); | typedef void (*np_notify_cb_t) (const char *notification, void *user_data); | |||
/* Interface */ | /* Interface */ | |||
np_error_t np_client_new(idevice_t device, uint16_t port, np_client_t *clie nt); | np_error_t np_client_new(idevice_t device, lockdownd_service_descriptor_t s ervice, np_client_t *client); | |||
np_error_t np_client_free(np_client_t client); | np_error_t np_client_free(np_client_t client); | |||
np_error_t np_post_notification(np_client_t client, const char *notificatio n); | np_error_t np_post_notification(np_client_t client, const char *notificatio n); | |||
np_error_t np_observe_notification(np_client_t client, const char *notifica tion); | np_error_t np_observe_notification(np_client_t client, const char *notifica tion); | |||
np_error_t np_observe_notifications(np_client_t client, const char **notifi cation_spec); | np_error_t np_observe_notifications(np_client_t client, const char **notifi cation_spec); | |||
np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify _cb, void *userdata); | np_error_t np_set_notify_callback(np_client_t client, np_notify_cb_t notify _cb, void *userdata); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 4 lines changed or added | |||
restore.h | restore.h | |||
---|---|---|---|---|
/** | /** | |||
* @file libimobiledevice/restore.h | * @file libimobiledevice/restore.h | |||
* @brief Initiate restore process or reboot device. | * @brief Initiate restore process or reboot device. | |||
* @note This service is only available if the device is in restore mode. | ||||
* \internal | * \internal | |||
* | * | |||
* Copyright (c) 2010 Joshua Hill. All Rights Reserved. | * Copyright (c) 2010 Joshua Hill. All Rights Reserved. | |||
* | * | |||
* This library is free software; you can redistribute it and/or | * This library is free software; you can redistribute it and/or | |||
* modify it under the terms of the GNU Lesser General Public | * modify it under the terms of the GNU Lesser General Public | |||
* License as published by the Free Software Foundation; either | * License as published by the Free Software Foundation; either | |||
* version 2.1 of the License, or (at your option) any later version. | * 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, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef RESTORE_H | #ifndef IRESTORE_H | |||
#define RESTORE_H | #define IRESTORE_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define RESTORE_E_SUCCESS 0 | #define RESTORE_E_SUCCESS 0 | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 3 lines changed or added | |||
sbservices.h | sbservices.h | |||
---|---|---|---|---|
skipping to change at line 23 | skipping to change at line 23 | |||
* This library is distributed in the hope that it will be useful, | * This library is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
* Lesser General Public License for more details. | * Lesser General Public License for more details. | |||
* | * | |||
* You should have received a copy of the GNU Lesser General Public | * You should have received a copy of the GNU Lesser General Public | |||
* License along with this library; if not, write to the Free Software | * License along with this library; if not, write to the Free Software | |||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1 USA | |||
*/ | */ | |||
#ifndef SB_SERVICES_H | #ifndef ISB_SERVICES_H | |||
#define SB_SERVICES_H | #define ISB_SERVICES_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define SBSERVICES_E_SUCCESS 0 | #define SBSERVICES_E_SUCCESS 0 | |||
#define SBSERVICES_E_INVALID_ARG -1 | #define SBSERVICES_E_INVALID_ARG -1 | |||
#define SBSERVICES_E_PLIST_ERROR -2 | #define SBSERVICES_E_PLIST_ERROR -2 | |||
#define SBSERVICES_E_CONN_FAILED -3 | #define SBSERVICES_E_CONN_FAILED -3 | |||
#define SBSERVICES_E_UNKNOWN_ERROR -256 | #define SBSERVICES_E_UNKNOWN_ERROR -256 | |||
/*@}*/ | /*@}*/ | |||
skipping to change at line 60 | skipping to change at line 61 | |||
} sbservices_interface_orientation_t; | } sbservices_interface_orientation_t; | |||
/*@}*/ | /*@}*/ | |||
/** Represents an error code. */ | /** Represents an error code. */ | |||
typedef int16_t sbservices_error_t; | typedef int16_t sbservices_error_t; | |||
typedef struct sbservices_client_private sbservices_client_private; | typedef struct sbservices_client_private sbservices_client_private; | |||
typedef sbservices_client_private *sbservices_client_t; /**< The client han dle. */ | typedef sbservices_client_private *sbservices_client_t; /**< The client han dle. */ | |||
/* Interface */ | /* Interface */ | |||
sbservices_error_t sbservices_client_new(idevice_t device, uint16_t port, s bservices_client_t *client); | sbservices_error_t sbservices_client_new(idevice_t device, lockdownd_servic e_descriptor_t service, sbservices_client_t *client); | |||
sbservices_error_t sbservices_client_free(sbservices_client_t client); | sbservices_error_t sbservices_client_free(sbservices_client_t client); | |||
sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, pl ist_t *state, const char *format_version); | sbservices_error_t sbservices_get_icon_state(sbservices_client_t client, pl ist_t *state, const char *format_version); | |||
sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, pl ist_t newstate); | sbservices_error_t sbservices_set_icon_state(sbservices_client_t client, pl ist_t newstate); | |||
sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize); | sbservices_error_t sbservices_get_icon_pngdata(sbservices_client_t client, const char *bundleId, char **pngdata, uint64_t *pngsize); | |||
sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation); | sbservices_error_t sbservices_get_interface_orientation(sbservices_client_t client, sbservices_interface_orientation_t* interface_orientation); | |||
sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_ client_t client, char **pngdata, uint64_t *pngsize); | sbservices_error_t sbservices_get_home_screen_wallpaper_pngdata(sbservices_ client_t client, char **pngdata, uint64_t *pngsize); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 4 lines changed or added | |||
screenshotr.h | screenshotr.h | |||
---|---|---|---|---|
skipping to change at line 32 | skipping to change at line 32 | |||
*/ | */ | |||
#ifndef ISCREENSHOTR_H | #ifndef ISCREENSHOTR_H | |||
#define ISCREENSHOTR_H | #define ISCREENSHOTR_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <libimobiledevice/lockdown.h> | ||||
/** @name Error Codes */ | /** @name Error Codes */ | |||
/*@{*/ | /*@{*/ | |||
#define SCREENSHOTR_E_SUCCESS 0 | #define SCREENSHOTR_E_SUCCESS 0 | |||
#define SCREENSHOTR_E_INVALID_ARG -1 | #define SCREENSHOTR_E_INVALID_ARG -1 | |||
#define SCREENSHOTR_E_PLIST_ERROR -2 | #define SCREENSHOTR_E_PLIST_ERROR -2 | |||
#define SCREENSHOTR_E_MUX_ERROR -3 | #define SCREENSHOTR_E_MUX_ERROR -3 | |||
#define SCREENSHOTR_E_BAD_VERSION -4 | #define SCREENSHOTR_E_BAD_VERSION -4 | |||
#define SCREENSHOTR_E_UNKNOWN_ERROR -256 | #define SCREENSHOTR_E_UNKNOWN_ERROR -256 | |||
/*@}*/ | /*@}*/ | |||
/** Represents an error code. */ | /** Represents an error code. */ | |||
typedef int16_t screenshotr_error_t; | typedef int16_t screenshotr_error_t; | |||
typedef struct screenshotr_client_private screenshotr_client_private; | typedef struct screenshotr_client_private screenshotr_client_private; | |||
typedef screenshotr_client_private *screenshotr_client_t; /**< The client h andle. */ | typedef screenshotr_client_private *screenshotr_client_t; /**< The client h andle. */ | |||
screenshotr_error_t screenshotr_client_new(idevice_t device, uint16_t port, screenshotr_client_t * client); | screenshotr_error_t screenshotr_client_new(idevice_t device, lockdownd_serv ice_descriptor_t service, screenshotr_client_t * client); | |||
screenshotr_error_t screenshotr_client_free(screenshotr_client_t client); | screenshotr_error_t screenshotr_client_free(screenshotr_client_t client); | |||
screenshotr_error_t screenshotr_take_screenshot(screenshotr_client_t client , char **imgdata, uint64_t *imgsize); | screenshotr_error_t screenshotr_take_screenshot(screenshotr_client_t client , char **imgdata, uint64_t *imgsize); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||