mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-16 04:20:30 +00:00
32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
//
|
|
// something.h
|
|
// StikDebug
|
|
//
|
|
// Created by Stephen on 7/29/25.
|
|
//
|
|
|
|
#ifndef SOMETHING_H
|
|
#define SOMETHING_H
|
|
|
|
#include "idevice.h"
|
|
#include <stdint.h>
|
|
|
|
typedef enum {
|
|
IPA_OK = 0, /* success */
|
|
IPA_ERR_PAIRING_READ = 1, /* could not read pairing file */
|
|
IPA_ERR_PROVIDER_CREATE = 2, /* idevice_tcp_provider_new fail */
|
|
IPA_ERR_AFC_CONNECT = 3, /* afc_client_connect fail */
|
|
IPA_ERR_IPA_READ = 4, /* failed to mmap or read IPA */
|
|
IPA_ERR_AFC_OPEN = 5, /* afc_file_open fail */
|
|
IPA_ERR_AFC_WRITE = 6, /* afc_file_write fail */
|
|
IPA_ERR_INSTALLPROXY_CONNECT = 7, /* installation_proxy connect */
|
|
IPA_ERR_INSTALL = 8, /* installation_proxy_install */
|
|
IPA_ERR_INVALID_IP = 9, /* inet_pton failed */
|
|
} ipa_installer_error_t;
|
|
|
|
int install_ipa(const char *ip,
|
|
const char *pairing_file_path,
|
|
const char *udid,
|
|
const char *ipa_path);
|
|
|
|
#endif /* SOMETHING_H */
|