org.libimobiledevice.ios.driver.binding.raw.ImobiledeviceSdkLibrary Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2012-2013 eBay Software Foundation and ios-driver committers
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package org.libimobiledevice.ios.driver.binding.raw;
import com.sun.jna.Callback;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.NativeLibrary;
import com.sun.jna.NativeLong;
import com.sun.jna.Pointer;
import com.sun.jna.PointerType;
import com.sun.jna.Structure;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import java.nio.ByteBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* JNA Wrapper for library imobiledevice-sdk
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that
* uses a few opensource projects..
* For help, please visit NativeLibs4Java ,
* Rococoa, or JNA.
*/
public class ImobiledeviceSdkLibrary implements Library {
private static final Logger LOG = LoggerFactory.getLogger(ImobiledeviceSdkLibrary.class);
public static final String JNA_LIBRARY_NAME = "imobiledevice-sdk";
public static final NativeLibrary JNA_NATIVE_LIB = NativeLibrary.getInstance(
ImobiledeviceSdkLibrary.JNA_LIBRARY_NAME);
static {
Native.register(ImobiledeviceSdkLibrary.class, ImobiledeviceSdkLibrary.JNA_NATIVE_LIB);
}
/**
* enum values
*/
public static interface sdk_idevice_error_t {
public static final int SDK_E_SUCCESS = 0;
public static final int SDK_E_ILLEGAL_ARGUMENT = -1;
public static final int SDK_E_OUT_OF_MEMORY = -2;
public static final int SDK_E_DEVICE_CONNECT_FAILED = -3;
public static final int SDK_E_SERVICE_START_FAILED = -4;
public static final int SDK_E_SERVICE_CONNECT_FAILED = -5;
public static final int SDK_E_CONNECTION_TIMEOUT = -6;
public static final int SDK_E_SEND_FAILED = -7;
public static final int SDK_E_RECEIVE_FAILED = -8;
public static final int SDK_E_LOCKDOWN_CONNECT_FAILED = -9;
public static final int SDK_E_HANDSHAKE_FAILED = -10;
public static final int SDK_E_PASSWORD_PROTECTED = -11;
public static final int SDK_E_PAIRING_DIALOG_PENDING = -12;
public static final int SDK_E_USER_DENIED_PAIRING = -13;
public static final int SDK_E_EVENT_SUBSCRIBE_FAILED = -14;
public static final int SDK_E_EVENT_UNSUBSCRIBE_FAILED = -15;
public static final int SDK_E_APP_LAUNCH_FAILED = -16;
public static final int SDK_E_DISK_IMAGE_MOUNT_FAILED = -17;
public static final int SDK_E_FILE_OPEN_FAILED = -18;
public static final int SDK_E_GET_VALUE_FAILED = -19;
public static final int SDK_E_SET_VALUE_FAILED = -20;
public static final int SDK_E_RESTART_FAILED = -21;
public static final int SDK_E_SHUTDOWN_FAILED = -22;
public static final int SDK_E_UNKNOWN_ERROR = -256;
public static final int SDK_FORCE_SIGNED_TYPE = -1;
};
/**
* enum values
*/
public static interface sdk_idevice_app_type_t {
public static final int IDEVICE_APP_TYPE_USER = 1;
public static final int IDEVICE_APP_TYPE_SYSTEM = 2;
public static final int IDEVICE_APP_TYPE_ALL
= ImobiledeviceSdkLibrary.sdk_idevice_app_type_t.IDEVICE_APP_TYPE_USER
| ImobiledeviceSdkLibrary.sdk_idevice_app_type_t.IDEVICE_APP_TYPE_SYSTEM;
public static final int IDEVICE_APP_TYPE_DEFAULT = 1;
};
public static class sdk_idevice_app_info_t extends Structure {
/**
* C type : char*
*/
public Pointer bundle_identifier;
/**
* C type : char*
*/
public Pointer display_name;
/**
* C type : char*
*/
public Pointer version;
public sdk_idevice_app_info_t() {
super();
}
@Override
protected List> getFieldOrder() {
return Arrays.asList("bundle_identifier", "display_name", "version");
}
/**
* @param bundle_identifier C type : char*
* @param display_name C type : char*
* @param version C type : char*
*/
public sdk_idevice_app_info_t(Pointer bundle_identifier, Pointer display_name, Pointer version) {
super();
this.bundle_identifier = bundle_identifier;
this.display_name = display_name;
this.version = version;
}
public sdk_idevice_app_info_t(Pointer peer) {
super(peer);
}
public static class ByReference extends sdk_idevice_app_info_t implements Structure.ByReference {
};
public static class ByValue extends sdk_idevice_app_info_t implements Structure.ByValue {
};
};
public static class sdk_idevice_provisioning_profile_info_t extends Structure {
/**
* C type : char*
*/
public Pointer uuid;
/**
* C type : char*
*/
public Pointer name;
/**
* C type : char*
*/
public Pointer app_id_name;
/**
* C type : time_t
*/
public NativeLong creation_date;
/**
* C type : time_t
*/
public NativeLong expiration_date;
/**
* C type : char*
*/
public Pointer application_identifier_prefix;
/**
* C type : char*
*/
public Pointer team_name;
/**
* C type : char**
*/
public Pointer provisioned_devices;
/**
* C type : char*
*/
public Pointer entitlements;
public sdk_idevice_provisioning_profile_info_t() {
super();
}
protected List> getFieldOrder() {
return Arrays.asList("uuid", "name", "app_id_name", "creation_date", "expiration_date",
"application_identifier_prefix", "team_name", "provisioned_devices", "entitlements");
}
/**
* @param uuid C type : char*
* @param name C type : char*
* @param app_id_name C type : char*
* @param creation_date C type : time_t
* @param expiration_date C type : time_t
* @param application_identifier_prefix C type : char*
* @param team_name C type : char*
* @param provisioned_devices C type : char**
* @param entitlements C type : char*
*/
public sdk_idevice_provisioning_profile_info_t(Pointer uuid, Pointer name, Pointer app_id_name,
NativeLong creation_date, NativeLong expiration_date, Pointer application_identifier_prefix,
Pointer team_name, Pointer provisioned_devices, Pointer entitlements) {
super();
this.uuid = uuid;
this.name = name;
this.app_id_name = app_id_name;
this.creation_date = creation_date;
this.expiration_date = expiration_date;
this.application_identifier_prefix = application_identifier_prefix;
this.team_name = team_name;
this.provisioned_devices = provisioned_devices;
this.entitlements = entitlements;
}
public sdk_idevice_provisioning_profile_info_t(Pointer peer) {
super(peer);
}
public static class ByReference extends sdk_idevice_provisioning_profile_info_t implements Structure.ByReference {
};
public static class ByValue extends sdk_idevice_provisioning_profile_info_t implements Structure.ByValue {
};
};
public interface sdk_idevice_event_cb_t extends Callback {
void apply(String event_name, String udid, Pointer user_data);
};
public interface sdk_idevice_installation_service_status_cb_t extends Callback {
void apply(String operation, String message, int precent_complete, Pointer user_data);
};
public interface sdk_idevice_syslog_service_read_cb_t extends Callback {
void apply(byte c, Pointer user_data);
};
/**
* Original signature : void sdk_idevice_free_string(char*)
*
* @param s buffer
*/
public static native void sdk_idevice_free_string(ByteBuffer s);
/**
* Original signature : void sdk_idevice_set_debug_level(int)
*
* @param level int
*/
public static native void sdk_idevice_set_debug_level(int level);
/**
* sdk_device structure creation and destruction
* Original signature : sdk_idevice_error_t sdk_idevice_new_from_idevice(sdk_idevice_t*, void*)
*
* @param sdk_device device
* @param idevice device
*
* @return int
*/
public static native int sdk_idevice_new_from_idevice(PointerByReference sdk_device, Pointer idevice);
/**
* Original signature : sdk_idevice_error_t sdk_idevice_new(sdk_idevice_t*, const char*)
*
* @param sdk_device device
* @param udid string
*
* @return int
*/
public static native int sdk_idevice_new(PointerByReference sdk_device, String udid);
/**
* Original signature : sdk_idevice_error_t sdk_idevice_new(sdk_idevice_t*, const char*)
*
* @param sdk_device device
* @param udid string
*
* @return int
*/
public static native int sdk_idevice_new(PointerByReference sdk_device, Pointer udid);
/**
* Original signature : sdk_idevice_error_t sdk_idevice_free(sdk_idevice_t)
*
* @param sdk_device device
*
* @return int
*/
public static native int sdk_idevice_free(ImobiledeviceSdkLibrary.sdk_idevice_t sdk_device);
/**
* Original signature : sdk_idevice_error_t sdk_idevice_restart(sdk_idevice_t)
*
* @param sdk_device device
*
* @return int
*/
public static native int sdk_idevice_restart(ImobiledeviceSdkLibrary.sdk_idevice_t sdk_device);
/**
* Original signature : sdk_idevice_error_t sdk_idevice_shutdown(sdk_idevice_t)
*
* @param sdk_device device
*
* @return int
*/
public static native int sdk_idevice_shutdown(ImobiledeviceSdkLibrary.sdk_idevice_t sdk_device);
/**
* Original signature : void* sdk_idevice_get_idevice(sdk_idevice_t)
*
* @param sdk_device device
*
* @return int
*/
public static native Pointer sdk_idevice_get_idevice(ImobiledeviceSdkLibrary.sdk_idevice_t sdk_device);
/**
* Original signature : sdk_idevice_error_t sdk_idevice_event_subscribe(sdk_idevice_event_cb_t, void*)
*
* @param callback callback
* @param user_data data
*
* @return int
*/
public static native int sdk_idevice_event_subscribe(ImobiledeviceSdkLibrary.sdk_idevice_event_cb_t callback,
Pointer user_data);
/**
* Original signature : sdk_idevice_error_t sdk_idevice_event_unsubscribe()
*
* @return int
*/
public static native int sdk_idevice_event_unsubscribe();
/**
* interface
* Original signature :
* sdk_idevice_error_t information_service_new(sdk_idevice_t, sdk_idevice_information_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int information_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device,
PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t information_service_new(sdk_idevice_t, sdk_idevice_information_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int information_service_new(Pointer device, PointerByReference service);
/**
* Original signature : sdk_idevice_error_t information_service_free(sdk_idevice_information_service_t)
*
* @param service service
*
* @return int
*/
public static native int information_service_free(ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service);
/**
* Original signature :
* sdk_idevice_error_t information_service_get_device_name(sdk_idevice_information_service_t, char**)
*
* @param service service
* @param device_name string
*
* @return int
*/
public static native int information_service_get_device_name(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, PointerByReference device_name);
/**
* Original signature :
* sdk_idevice_error_t information_service_set_device_name(sdk_idevice_information_service_t, const char*)
*
* @param service service
* @param device_name string
*
* @return int
*/
public static native int information_service_set_device_name(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, String device_name);
/**
* Original signature :
* sdk_idevice_error_t information_service_get_device_type(sdk_idevice_information_service_t, char**)
*
* @param service service
* @param device_type type
*
* @return int
*/
public static native int information_service_get_device_type(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, PointerByReference device_type);
/**
* Original signature :
* sdk_idevice_error_t information_service_get_product_version(sdk_idevice_information_service_t, char**)
*
* @param service service
* @param product_version string
*
* @return int
*/
public static native int information_service_get_product_version(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, PointerByReference product_version);
/**
* Original signature :
* sdk_idevice_error_t information_service_get_language(sdk_idevice_information_service_t, char**)
*
* @param service service
* @param language_code string
*
* @return int
*/
public static native int information_service_get_language(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, PointerByReference language_code);
/**
* Original signature :
* sdk_idevice_error_t information_service_set_language(sdk_idevice_information_service_t, const char*)
*
* @param service service
* @param language_code string
*
* @return int
*/
public static native int information_service_set_language(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, String language_code);
/**
* Original signature :
* sdk_idevice_error_t information_service_get_locale(sdk_idevice_information_service_t, char**)
*
* @param service service
* @param locale_code string
*
* @return int
*/
public static native int information_service_get_locale(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, PointerByReference locale_code);
/**
* Original signature :
* sdk_idevice_error_t information_service_set_locale(sdk_idevice_information_service_t, const char*)
*
* @param service service
* @param locale_code string
*
* @return int
*/
public static native int information_service_set_locale(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, String locale_code);
/**
* Original signature :
* sdk_idevice_error_t information_service_set_value_from_string(sdk_idevice_information_service_t, const char*, const char*, const char*)
*
* @param service service
* @param domain string
* @param key string
* @param value string
*
* @return int
*/
public static native int information_service_set_value_from_string(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, String domain, String key, String value);
/**
* Original signature :
* sdk_idevice_error_t information_service_get_value_as_xml(sdk_idevice_information_service_t, const char*, const char*, char**)
*
* @param service service
* @param domain string
* @param key string
* @param xml xml
*
* @return int
*/
public static native int information_service_get_value_as_xml(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, String domain, String key,
PointerByReference xml);
/**
* Original signature :
* sdk_idevice_error_t information_service_is_developer_mode_enabled(sdk_idevice_information_service_t, int*)
*
* @param enabled boolean
* @param service service
*
* @return int
*/
public static native int information_service_is_developer_mode_enabled(
ImobiledeviceSdkLibrary.sdk_idevice_information_service_t service, IntBuffer enabled);
/**
* interface
* Original signature :
* sdk_idevice_error_t installation_service_new(sdk_idevice_t, sdk_idevice_installation_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int installation_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device,
PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t installation_service_new(sdk_idevice_t, sdk_idevice_installation_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int installation_service_new(Pointer device, PointerByReference service);
/**
* Original signature :
* sdk_idevice_error_t installation_service_free(sdk_idevice_installation_service_t)
*
* @param service service
*
* @return int
*/
public static native int installation_service_free(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t service);
/**
* Original signature :
* sdk_idevice_error_t installation_service_install_application_from_archive(sdk_idevice_installation_service_t, const char*)
*
* @param service service
* @param archive_filename file
*
* @return int
*/
public static native int installation_service_install_application_from_archive(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t service, String archive_filename);
/**
* Original signature :
* sdk_idevice_error_t installation_service_install_application_from_archive_with_callback(sdk_idevice_installation_service_t, const char*, sdk_idevice_installation_service_status_cb_t, void*)
*
* @param service service
* @param archive_filename file
* @param callback call
* @param user_data data
*
* @return int
*/
public static native int installation_service_install_application_from_archive_with_callback(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t service, String archive_filename,
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_status_cb_t callback, Pointer user_data);
/**
* Original signature :
* sdk_idevice_error_t installation_service_uninstall_application_with_callback(sdk_idevice_installation_service_t, const char*, sdk_idevice_installation_service_status_cb_t, void*)
*
* @param service service
* @param bundle_identifier id
* @param callback call
* @param user_data data
*
* @return int
*/
public static native int installation_service_uninstall_application_with_callback(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t service, String bundle_identifier,
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_status_cb_t callback, Pointer user_data);
/**
* Original signature :
* sdk_idevice_error_t installation_service_uninstall_application(sdk_idevice_installation_service_t, const char*)
*
* @param service service
* @param bundle_identifier id
*
* @return int
*/
public static native int installation_service_uninstall_application(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t service, String bundle_identifier);
/**
* Original signature :
* sdk_idevice_error_t installation_service_get_application_list(sdk_idevice_installation_service_t, sdk_idevice_app_type_t, sdk_idevice_app_info_t**, uint32_t*)
*
* @param service service
* @param type int
* @param app_info_list list
* @param count int
*
* @return int
*/
public static native int installation_service_get_application_list(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t service, int type, PointerByReference app_info_list,
IntBuffer count);
/**
* Original signature :
* sdk_idevice_error_t installation_service_get_application_list(sdk_idevice_installation_service_t, sdk_idevice_app_type_t, sdk_idevice_app_info_t**, uint32_t*)
*
* @param service service
* @param type int
* @param app_info_list list
* @param count int
*
* @return int
*/
public static native int installation_service_get_application_list(Pointer service, int type,
PointerByReference app_info_list, IntByReference count);
/**
* Original signature :
* sdk_idevice_error_t installation_service_get_application_list_as_xml(sdk_idevice_installation_service_t, sdk_idevice_app_type_t, char**)
*
* @param installservice service
* @param type int
* @param xml xml
*
* @return int
*/
public static native int installation_service_get_application_list_as_xml(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t installservice, int type, PointerByReference xml);
/**
* Original signature :
* sdk_idevice_error_t installation_service_application_list_free(sdk_idevice_installation_service_t, sdk_idevice_app_info_t*, uint32_t)
*
* @param app_info_list list
* @param count int
* @param service service
*
* @return int
*/
public static native int installation_service_application_list_free(
ImobiledeviceSdkLibrary.sdk_idevice_installation_service_t service,
ImobiledeviceSdkLibrary.sdk_idevice_app_info_t app_info_list, int count);
/**
* interface
* Original signature :
* sdk_idevice_error_t syslog_service_new(sdk_idevice_t, sdk_idevice_syslog_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int syslog_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device, PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t syslog_service_new(sdk_idevice_t, sdk_idevice_syslog_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int syslog_service_new(Pointer device, PointerByReference service);
/**
* Original signature : sdk_idevice_error_t syslog_service_free(sdk_idevice_syslog_service_t)
*
* @param service service
*
* @return int
*/
public static native int syslog_service_free(ImobiledeviceSdkLibrary.sdk_idevice_syslog_service_t service);
/**
* Original signature :
* sdk_idevice_error_t syslog_service_start_capture(sdk_idevice_syslog_service_t, sdk_idevice_syslog_service_read_cb_t, void*)
*
* @param service service
* @param callback callback
* @param user_data data
*
* @return int
*/
public static native int syslog_service_start_capture(ImobiledeviceSdkLibrary.sdk_idevice_syslog_service_t service,
ImobiledeviceSdkLibrary.sdk_idevice_syslog_service_read_cb_t callback, Pointer user_data);
/**
* Original signature : sdk_idevice_error_t syslog_service_stop_capture(sdk_idevice_syslog_service_t)
*
* @param service service
*
* @return int
*/
public static native int syslog_service_stop_capture(ImobiledeviceSdkLibrary.sdk_idevice_syslog_service_t service);
/**
* interface
* Original signature :
* sdk_idevice_error_t debug_service_new(sdk_idevice_t, sdk_idevice_debug_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int debug_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device, PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t debug_service_new(sdk_idevice_t, sdk_idevice_debug_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int debug_service_new(Pointer device, PointerByReference service);
/**
* Original signature : sdk_idevice_error_t debug_service_free(sdk_idevice_debug_service_t)
*
* @param service service
*
* @return int
*/
public static native int debug_service_free(ImobiledeviceSdkLibrary.sdk_idevice_debug_service_t service);
/**
* Original signature :
* sdk_idevice_error_t debug_service_launch_application_by_bundle_identifier(sdk_idevice_debug_service_t, const char*, const char*[], const char*[], int*)
*
* @param service service
* @param bundle_identifier id
* @param environment env
* @param arguments args
* @param pid id
*
* @return int
*/
public static native int debug_service_launch_application_by_bundle_identifier(
ImobiledeviceSdkLibrary.sdk_idevice_debug_service_t service, String bundle_identifier,
PointerByReference environment, PointerByReference arguments, IntBuffer pid);
/**
* interface
* Original signature :
* sdk_idevice_error_t app_container_service_new(sdk_idevice_t, sdk_idevice_app_container_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int app_container_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device,
PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t app_container_service_new(sdk_idevice_t, sdk_idevice_app_container_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int app_container_service_new(Pointer device, PointerByReference service);
/**
* Original signature :
* sdk_idevice_error_t app_container_service_free(sdk_idevice_app_container_service_t)
*
* @param service service
*
* @return int
*/
public static native int app_container_service_free(
ImobiledeviceSdkLibrary.sdk_idevice_app_container_service_t service);
/**
* Original signature :
* sdk_idevice_error_t app_container_service_empty_application_cache(sdk_idevice_app_container_service_t, const char*)
*
* @param bundle_identifier id
* @param service service
*
* @return int
*/
public static native int app_container_service_empty_application_cache(
ImobiledeviceSdkLibrary.sdk_idevice_app_container_service_t service, String bundle_identifier);
/**
* interface
* Original signature :
* sdk_idevice_error_t screenshot_service_new(sdk_idevice_t, sdk_idevice_screenshot_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int screenshot_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device,
PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t screenshot_service_new(sdk_idevice_t, sdk_idevice_screenshot_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int screenshot_service_new(Pointer device, PointerByReference service);
/**
* Original signature :
* sdk_idevice_error_t screenshot_service_take_screenshot(sdk_idevice_screenshot_service_t, char**, uint64_t*)
*
* @param service service
* @param image_data data
* @param image_size size
*
* @return int
*/
public static native int screenshot_service_take_screenshot(
ImobiledeviceSdkLibrary.sdk_idevice_screenshot_service_t service, PointerByReference image_data,
LongBuffer image_size);
/**
* Original signature : sdk_idevice_error_t screenshot_service_free(sdk_idevice_screenshot_service_t)
*
* @param service service
*
* @return int
*/
public static native int screenshot_service_free(ImobiledeviceSdkLibrary.sdk_idevice_screenshot_service_t service);
/**
* interface
* Original signature :
* sdk_idevice_error_t provisioning_profile_service_new(sdk_idevice_t, sdk_idevice_provisioning_profile_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int provisioning_profile_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device,
PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t provisioning_profile_service_new(sdk_idevice_t, sdk_idevice_provisioning_profile_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int provisioning_profile_service_new(Pointer device, PointerByReference service);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_service_free(sdk_idevice_provisioning_profile_service_t)
*
* @param service service
*
* @return int
*/
public static native int provisioning_profile_service_free(
ImobiledeviceSdkLibrary.sdk_idevice_provisioning_profile_service_t service);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_service_install_profile(sdk_idevice_provisioning_profile_service_t, const char*)
*
* @param service service
* @param profile_filename string
*
* @return int
*/
public static native int provisioning_profile_service_install_profile(
ImobiledeviceSdkLibrary.sdk_idevice_provisioning_profile_service_t service, String profile_filename);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_service_get_profile_list(sdk_idevice_provisioning_profile_service_t, sdk_idevice_provisioning_profile_info_t**, uint32_t*)
*
* @param service service
* @param profile_list list
* @param count int
*
* @return int
*/
public static native int provisioning_profile_service_get_profile_list(
ImobiledeviceSdkLibrary.sdk_idevice_provisioning_profile_service_t service, PointerByReference profile_list,
IntBuffer count);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_service_get_profile_list(sdk_idevice_provisioning_profile_service_t, sdk_idevice_provisioning_profile_info_t**, uint32_t*)
*
* @param service service
* @param profile_list list
* @param count int
*
* @return int
*/
public static native int provisioning_profile_service_get_profile_list(Pointer service,
PointerByReference profile_list, IntByReference count);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_service_remove_profile(sdk_idevice_provisioning_profile_service_t, const char*)
*
* @param service service
* @param profile_identifier id
*
* @return int
*/
public static native int provisioning_profile_service_remove_profile(
ImobiledeviceSdkLibrary.sdk_idevice_provisioning_profile_service_t service, String profile_identifier);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_info_list_free(sdk_idevice_provisioning_profile_info_t*, uint32_t)
*
* @param profile_list list
* @param count int
*
* @return int
*/
public static native int provisioning_profile_info_list_free(
ImobiledeviceSdkLibrary.sdk_idevice_provisioning_profile_info_t profile_list, int count);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_info_from_filename(const char*, sdk_idevice_provisioning_profile_info_t*)
*
* @param filename string
* @param profileinfo info
*
* @return int
*/
public static native int provisioning_profile_info_from_filename(String filename,
ImobiledeviceSdkLibrary.sdk_idevice_provisioning_profile_info_t profileinfo);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_info_from_filename_as_xml(const char*, char**)
*
* @param filename string
* @param xml xml
*
* @return int
*/
public static native int provisioning_profile_info_from_filename_as_xml(String filename, PointerByReference xml);
/**
* Original signature :
* sdk_idevice_error_t provisioning_profile_info_free(sdk_idevice_provisioning_profile_info_t)
*
* @param profileinfo info
*
* @return int
*/
public static native int provisioning_profile_info_free(
ImobiledeviceSdkLibrary.sdk_idevice_provisioning_profile_info_t.ByValue profileinfo);
/**
* interface
* Original signature :
* sdk_idevice_error_t image_mounting_service_new(sdk_idevice_t, sdk_idevice_image_mounting_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int image_mounting_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device,
PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t image_mounting_service_new(sdk_idevice_t, sdk_idevice_image_mounting_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int image_mounting_service_new(Pointer device, PointerByReference service);
/**
* Original signature :
* sdk_idevice_error_t image_mounting_service_free(sdk_idevice_image_mounting_service_t)
*
* @param service service
*
* @return int
*/
public static native int image_mounting_service_free(
ImobiledeviceSdkLibrary.sdk_idevice_image_mounting_service_t service);
/**
* Original signature :
* sdk_idevice_error_t image_mounting_service_mount_image(sdk_idevice_image_mounting_service_t, const char*, const char*)
*
* @param service service
* @param image_filename string
* @param image_type string
*
* @return int
*/
public static native int image_mounting_service_mount_image(
ImobiledeviceSdkLibrary.sdk_idevice_image_mounting_service_t service, String image_filename, String image_type);
/**
* interface
* Original signature :
* sdk_idevice_error_t webinspector_service_new(sdk_idevice_t, sdk_idevice_webinspector_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int webinspector_service_new(ImobiledeviceSdkLibrary.sdk_idevice_t device,
PointerByReference service);
/**
* interface
* Original signature :
* sdk_idevice_error_t webinspector_service_new(sdk_idevice_t, sdk_idevice_webinspector_service_t*)
*
* @param device device
* @param service service
*
* @return int
*/
public static native int webinspector_service_new(Pointer device, PointerByReference service);
/**
* Original signature :
* sdk_idevice_error_t webinspector_service_free(sdk_idevice_webinspector_service_t)
*
* @param service service
*
* @return int
*/
public static native int webinspector_service_free(
ImobiledeviceSdkLibrary.sdk_idevice_webinspector_service_t service);
/**
* Original signature :
* sdk_idevice_error_t webinspector_service_send_message(sdk_idevice_webinspector_service_t, const char*)
*
* @param service service
* @param message string
*
* @return int
*/
public static native int webinspector_service_send_message(
ImobiledeviceSdkLibrary.sdk_idevice_webinspector_service_t service, String message);
/**
* Original signature :
* sdk_idevice_error_t webinspector_service_receive_message(sdk_idevice_webinspector_service_t, char**)
*
* @param service service
* @param message string
*
* @return int
*/
public static native int webinspector_service_receive_message(
ImobiledeviceSdkLibrary.sdk_idevice_webinspector_service_t service, PointerByReference message);
/**
* Original signature :
* sdk_idevice_error_t webinspector_service_receive_message_with_timeout(sdk_idevice_webinspector_service_t, char**, uint32_t)
*
* @param service service
* @param message string
* @param timeout_ms ,s
*
* @return int
*/
public static native int webinspector_service_receive_message_with_timeout(
ImobiledeviceSdkLibrary.sdk_idevice_webinspector_service_t service, PointerByReference message, int timeout_ms);
public static class sdk_idevice_provisioning_profile_service_t extends PointerType {
public sdk_idevice_provisioning_profile_service_t(Pointer address) {
super(address);
}
public sdk_idevice_provisioning_profile_service_t() {
super();
}
};
public static class sdk_idevice_image_mounting_service_t extends PointerType {
public sdk_idevice_image_mounting_service_t(Pointer address) {
super(address);
}
public sdk_idevice_image_mounting_service_t() {
super();
}
};
public static class sdk_idevice_debug_service_t extends PointerType {
public sdk_idevice_debug_service_t(Pointer address) {
super(address);
}
public sdk_idevice_debug_service_t() {
super();
}
};
public static class sdk_idevice_t extends PointerType {
public sdk_idevice_t(Pointer address) {
super(address);
}
public sdk_idevice_t() {
super();
}
};
public static class sdk_idevice_app_container_service_t extends PointerType {
public sdk_idevice_app_container_service_t(Pointer address) {
super(address);
}
public sdk_idevice_app_container_service_t() {
super();
}
};
public static class sdk_idevice_screenshot_service_t extends PointerType {
public sdk_idevice_screenshot_service_t(Pointer address) {
super(address);
}
public sdk_idevice_screenshot_service_t() {
super();
}
};
public static class sdk_idevice_installation_service_t extends PointerType {
public sdk_idevice_installation_service_t(Pointer address) {
super(address);
}
public sdk_idevice_installation_service_t() {
super();
}
};
public static class sdk_idevice_syslog_service_t extends PointerType {
public sdk_idevice_syslog_service_t(Pointer address) {
super(address);
}
public sdk_idevice_syslog_service_t() {
super();
}
};
public static class sdk_idevice_information_service_t extends PointerType {
public sdk_idevice_information_service_t(Pointer address) {
super(address);
}
public sdk_idevice_information_service_t() {
super();
}
};
public static class sdk_idevice_webinspector_service_t extends PointerType {
public sdk_idevice_webinspector_service_t(Pointer address) {
super(address);
}
public sdk_idevice_webinspector_service_t() {
super();
}
};
}