StikDebug/StikJIT/idevice/ls.h
2025-08-03 02:16:10 -04:00

55 lines
1.3 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// ls.h
// StikDebug
//
// Created by Stephen on 8/3/25.
//
#ifndef LS_H
#define LS_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
// Success / error codes
#define IPA_OK 0
#define IPA_ERR_INVALID_IP 1
#define IPA_ERR_PAIRING_READ 2
#define IPA_ERR_PROVIDER_CREATE 3
#define IPA_ERR_CORE_DEVICE 4
#define IPA_ERR_RSD_PORT 5
#define IPA_ERR_ADAPTER_CREATE 6
#define IPA_ERR_STREAM 7
#define IPA_ERR_HANDSHAKE 8
#define IPA_ERR_REMOTE_SERVER 9
#define IPA_ERR_LOCATION_SIM 10
#define IPA_ERR_LOCATION_SET 11
#define IPA_ERR_LOCATION_CLEAR 12
/**
* Simulate the device’s location.
* @param device_ip IP address of the device.
* @param latitude Latitude to simulate.
* @param longitude Longitude to simulate.
* @param pairing_file Path to the pairing file.
* @return IPA_OK (0) on success, or one of the IPA_ERR_* codes.
*/
int simulate_location(const char *device_ip,
double latitude,
double longitude,
const char *pairing_file);
/**
* Clear any simulated location.
* @return IPA_OK (0) on success, or IPA_ERR_LOCATION_CLEAR.
*/
int clear_simulated_location(void);
#ifdef __cplusplus
}
#endif
#endif /* LS_H */