installation_proxy.h | installation_proxy.h | |||
---|---|---|---|---|
skipping to change at line 31 | skipping to change at line 31 | |||
*/ | */ | |||
#ifndef INSTALLATION_PROXY_H | #ifndef INSTALLATION_PROXY_H | |||
#define INSTALLATION_PROXY_H | #define INSTALLATION_PROXY_H | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#include <libimobiledevice/libimobiledevice.h> | #include <libimobiledevice/libimobiledevice.h> | |||
#include <glib.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 69 | skipping to change at line 68 | |||
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); | |||
instproxy_error_t instproxy_remove_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_remove_archive(instproxy_client_t client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_data); | |||
plist_t instproxy_client_options_new(); | plist_t instproxy_client_options_new(); | |||
void instproxy_client_options_add(plist_t client_options, ...) G_GNUC_NULL_ TERMINATED; | void instproxy_client_options_add(plist_t client_options, ...); | |||
void instproxy_client_options_free(plist_t client_options); | void instproxy_client_options_free(plist_t client_options); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
libimobiledevice.h | libimobiledevice.h | |||
---|---|---|---|---|
skipping to change at line 69 | skipping to change at line 69 | |||
/** The event type for device add or removal */ | /** The event type for device add or removal */ | |||
enum idevice_event_type { | enum idevice_event_type { | |||
IDEVICE_DEVICE_ADD = 1, | IDEVICE_DEVICE_ADD = 1, | |||
IDEVICE_DEVICE_REMOVE | IDEVICE_DEVICE_REMOVE | |||
}; | }; | |||
/* event data structure */ | /* event data structure */ | |||
/** Provides information about the occured event. */ | /** Provides information about the occured event. */ | |||
typedef struct { | typedef struct { | |||
enum idevice_event_type event; /**< The event type. */ | enum idevice_event_type event; /**< The event type. */ | |||
const char *uuid; /**< The device unique id. */ | const char *udid; /**< The device unique id. */ | |||
int conn_type; /**< The connection type. Currently only 1 for usbmux d. */ | int conn_type; /**< The connection type. Currently only 1 for usbmux d. */ | |||
} idevice_event_t; | } idevice_event_t; | |||
/* event callback function prototype */ | /* event callback function prototype */ | |||
/** Callback to notifiy if a device was added or removed. */ | /** Callback to notifiy if a device was added or removed. */ | |||
typedef void (*idevice_event_cb_t) (const idevice_event_t *event, void *use r_data); | typedef void (*idevice_event_cb_t) (const idevice_event_t *event, void *use r_data); | |||
/* functions */ | /* functions */ | |||
idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void * user_data); | idevice_error_t idevice_event_subscribe(idevice_event_cb_t callback, void * user_data); | |||
idevice_error_t idevice_event_unsubscribe(); | idevice_error_t idevice_event_unsubscribe(); | |||
/* discovery (synchronous) */ | /* discovery (synchronous) */ | |||
idevice_error_t idevice_get_device_list(char ***devices, int *count); | idevice_error_t idevice_get_device_list(char ***devices, int *count); | |||
idevice_error_t idevice_device_list_free(char **devices); | idevice_error_t idevice_device_list_free(char **devices); | |||
/* device structure creation and destruction */ | /* device structure creation and destruction */ | |||
idevice_error_t idevice_new(idevice_t *device, const char *uuid); | idevice_error_t idevice_new(idevice_t *device, const char *udid); | |||
idevice_error_t idevice_free(idevice_t device); | idevice_error_t idevice_free(idevice_t device); | |||
/* connection/disconnection */ | /* connection/disconnection */ | |||
idevice_error_t idevice_connect(idevice_t device, uint16_t port, idevice_co nnection_t *connection); | idevice_error_t idevice_connect(idevice_t device, uint16_t port, idevice_co nnection_t *connection); | |||
idevice_error_t idevice_disconnect(idevice_connection_t connection); | idevice_error_t idevice_disconnect(idevice_connection_t connection); | |||
/* communication */ | /* communication */ | |||
idevice_error_t idevice_connection_send(idevice_connection_t connection, co nst char *data, uint32_t len, uint32_t *sent_bytes); | idevice_error_t idevice_connection_send(idevice_connection_t connection, co nst char *data, uint32_t len, uint32_t *sent_bytes); | |||
idevice_error_t idevice_connection_receive_timeout(idevice_connection_t con nection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeo ut); | idevice_error_t idevice_connection_receive_timeout(idevice_connection_t con nection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeo ut); | |||
idevice_error_t idevice_connection_receive(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes); | idevice_error_t idevice_connection_receive(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes); | |||
/* misc */ | /* misc */ | |||
idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle); | idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle); | |||
idevice_error_t idevice_get_uuid(idevice_t device, char **uuid); | idevice_error_t idevice_get_udid(idevice_t device, char **udid); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added | |||
lockdown.h | lockdown.h | |||
---|---|---|---|---|
skipping to change at line 97 | skipping to change at line 97 | |||
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_uuid(lockdownd_client_t control, cha r **uuid); | 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); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
mobilebackup2.h | mobilebackup2.h | |||
---|---|---|---|---|
skipping to change at line 53 | skipping to change at line 53 | |||
/*@}*/ | /*@}*/ | |||
/** 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, uint16_t p ort, 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_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 | |||
} | } | |||
#endif | #endif | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 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 <glib.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 96 | skipping to change at line 95 | |||
mobilesync_error_t mobilesync_ready_to_send_changes_from_computer(mobilesyn c_client_t client); | mobilesync_error_t mobilesync_ready_to_send_changes_from_computer(mobilesyn c_client_t client); | |||
mobilesync_error_t mobilesync_send_changes(mobilesync_client_t client, plis t_t entities, uint8_t is_last_record, plist_t actions); | mobilesync_error_t mobilesync_send_changes(mobilesync_client_t client, plis t_t entities, uint8_t is_last_record, plist_t actions); | |||
mobilesync_error_t mobilesync_remap_identifiers(mobilesync_client_t client, plist_t *mapping); | mobilesync_error_t mobilesync_remap_identifiers(mobilesync_client_t client, plist_t *mapping); | |||
/* Helper */ | /* Helper */ | |||
mobilesync_anchors_t mobilesync_anchors_new(const char *device_anchor, cons t char *computer_anchor); | mobilesync_anchors_t mobilesync_anchors_new(const char *device_anchor, cons t char *computer_anchor); | |||
void mobilesync_anchors_free(mobilesync_anchors_t anchors); | void mobilesync_anchors_free(mobilesync_anchors_t anchors); | |||
plist_t mobilesync_actions_new(); | plist_t mobilesync_actions_new(); | |||
void mobilesync_actions_add(plist_t actions, ...) G_GNUC_NULL_TERMINATED; | void mobilesync_actions_add(plist_t actions, ...); | |||
void mobilesync_actions_free(plist_t actions); | void mobilesync_actions_free(plist_t actions); | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 1 lines changed or added | |||
restore.h | restore.h | |||
---|---|---|---|---|
skipping to change at line 57 | skipping to change at line 57 | |||
typedef int16_t restored_error_t; | typedef int16_t restored_error_t; | |||
typedef struct restored_client_private restored_client_private; | typedef struct restored_client_private restored_client_private; | |||
typedef restored_client_private *restored_client_t; /**< The client handle. */ | typedef restored_client_private *restored_client_t; /**< The client handle. */ | |||
/* Interface */ | /* Interface */ | |||
restored_error_t restored_client_new(idevice_t device, restored_client_t *c lient, const char *label); | restored_error_t restored_client_new(idevice_t device, restored_client_t *c lient, const char *label); | |||
restored_error_t restored_client_free(restored_client_t client); | restored_error_t restored_client_free(restored_client_t client); | |||
restored_error_t restored_query_type(restored_client_t client, char **type, uint64_t *version); | restored_error_t restored_query_type(restored_client_t client, char **type, uint64_t *version); | |||
restored_error_t restored_query_value(restored_client_t client, const char *key, plist_t *value); | ||||
restored_error_t restored_get_value(restored_client_t client, const char *k ey, plist_t *value) ; | restored_error_t restored_get_value(restored_client_t client, const char *k ey, plist_t *value) ; | |||
restored_error_t restored_send(restored_client_t client, plist_t plist); | restored_error_t restored_send(restored_client_t client, plist_t plist); | |||
restored_error_t restored_receive(restored_client_t client, plist_t *plist) ; | restored_error_t restored_receive(restored_client_t client, plist_t *plist) ; | |||
restored_error_t restored_goodbye(restored_client_t client); | restored_error_t restored_goodbye(restored_client_t client); | |||
restored_error_t restored_start_restore(restored_client_t client); | restored_error_t restored_start_restore(restored_client_t client, plist_t o ptions, uint64_t version); | |||
restored_error_t restored_reboot(restored_client_t client); | restored_error_t restored_reboot(restored_client_t client); | |||
/* Helper */ | /* Helper */ | |||
void restored_client_set_label(restored_client_t client, const char *label) ; | void restored_client_set_label(restored_client_t client, const char *label) ; | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||
sbservices.h | sbservices.h | |||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
/** @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 | |||
/*@}*/ | /*@}*/ | |||
/** @name Orientation of the user interface on the device */ | ||||
/*@{*/ | ||||
typedef enum { | ||||
SBSERVICES_INTERFACE_ORIENTATION_UNKNOWN = 0, | ||||
SBSERVICES_INTERFACE_ORIENTATION_PORTRAIT = 1, | ||||
SBSERVICES_INTERFACE_ORIENTATION_PORTRAIT_UPSIDE_DOWN = 2, | ||||
SBSERVICES_INTERFACE_ORIENTATION_LANDSCAPE_RIGHT = 3, | ||||
SBSERVICES_INTERFACE_ORIENTATION_LANDSCAPE_LEFT = 4 | ||||
} 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, uint16_t port, s bservices_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_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 | |||
#endif | #endif | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 12 lines changed or added | |||