libidevicefunctions.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #ifndef libidevicefunctions_h
  2. #define libidevicefunctions_h
  3. #include <stdio.h>
  4. #include <plist/plist.h>
  5. int sendiBEC(char *iBECpath);
  6. int get_dev();
  7. char* diag(char* com, char* mobileGestaltKey);
  8. char *getdeviceInformation();
  9. char *getspecialdeviceInformation(const char *domain_);
  10. int activationHandler(int function, char *udidIN);
  11. void plist_print_to_stream(plist_t plist, FILE* stream);
  12. void ActivationProgress(int x);
  13. char *output_xml;
  14. const char* title ;
  15. const char* describtion ;
  16. char* AppleID;
  17. char* ID_Password;
  18. char * send_state();
  19. static int read_file_into_buffer(char* path, char** buf, size_t* len);
  20. static int load_ibec(char* path, char** ibec, size_t* ibec_len);
  21. int boot_client(void* buf, size_t sz);
  22. int sendiBSS(char *iBSSpath);
  23. int sendDeviceTree(char *DeviceTree_Path);
  24. int sendKernelCache(char *KernelCache_Path);
  25. int dfu_send_iBSS(char *iBSSpath);
  26. int dfu_send_iBEC(char *iBECpath);
  27. int ipsw_outside_file_extract_to_memory_boot(const char *infile, unsigned char **pbuffer, size_t *psize, char* outside_path);
  28. int extract_outside_component_boot(const char* path, unsigned char** component_data, size_t* component_size, char* outside_path);
  29. static int read_file_into_buffer(char* path, char** buf, size_t* len);
  30. int boot_ibec(const char* outside_path);
  31. int boot_ibss(const char* outside_path);
  32. int download_component(const char* url, const char* component, const char* outdir);
  33. ///
  34. struct swift_callbacks {
  35. void (* _Nonnull send_output_to_swift)(const char * _Nonnull modifier);
  36. };
  37. typedef struct swift_callbacks swift_callbacks;
  38. extern void callback_setup(const swift_callbacks * _Nonnull callbacks);
  39. ///
  40. typedef void (*callback_t)(void);
  41. void callBackIntoSwift( callback_t cb );
  42. struct swift_progresss {
  43. void (* _Nonnull send_output_progress_to_swift)(double modifier);
  44. };
  45. typedef struct swift_progresss swift_progress;
  46. extern void progress_setup(const swift_progress* _Nonnull callbacks);
  47. int test_prog();
  48. char * send_ecid();
  49. #endif /* libidevicefunctions_h */