Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
9236fee8
Commit
9236fee8
authored
Aug 13, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first draft of public API
parent
a8409b6f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
6 deletions
+40
-6
libiphone.h
include/libiphone/libiphone.h
+40
-6
No files found.
include/libiphone/libiphone.h
View file @
9236fee8
...
@@ -26,19 +26,53 @@
...
@@ -26,19 +26,53 @@
extern
"C"
{
extern
"C"
{
#endif
#endif
#include <sys/types.h>
typedef
void
*
iph_device_t
;
typedef
void
*
iph_lckd_client_t
;
typedef
void
*
iph_umux_client_t
;
typedef
void
*
iph_afc_client_t
;
typedef
void
*
iph_afc_file_t
;
//device related functions
int
iph_get_device
(
iph_device_t
*
device
);
void
iph_free_device
(
iph_device_t
device
);
typedef
struct
iPhone_s
*
iPhone_t
;
typedef
struct
lockdownd_client_s
*
lockdownd_client_t
;
//lockdownd related functions
int
iph_lckd_get_client
(
iph_device_t
device
,
iph_lckd_client_t
*
client
);
void
iph_lckd_free_client
(
iph_lckd_client_t
client
);
void
free_iPhone
(
iPhone_t
victim
);
int
iph_lckd_start_service
(
iph_lckd_client_t
client
,
const
char
*
service
);
iPhone_t
get_iPhone
();
int
iph_lckd_recv
(
iph_lckd_client_t
client
,
char
**
dump_data
);
int
iph_lckd_send
(
iph_lckd_client_t
client
,
char
*
raw_data
,
uint32_t
length
);
//usbmux related functions
int
iph_mux_get_client
(
iph_device_t
device
,
uint16_t
src_port
,
uint16_t
dst_port
,
iph_umux_client_t
*
client
);
void
iph_mux_free_client
(
iph_umux_client_t
client
);
int
iph_mux_send
(
iph_umux_client_t
client
,
const
char
*
data
,
uint32_t
datalen
);
int
iph_mux_recv
(
iph_umux_client_t
client
,
char
*
data
,
uint32_t
datalen
);
//afc related functions
int
iph_afc_get_client
(
iph_device_t
device
,
int
src_port
,
int
dst_port
,
iph_afc_client_t
*
client
);
void
iph_afc_free_client
(
iph_afc_client_t
client
);
char
**
iph_afc_get_devinfo
(
iph_afc_client_t
client
);
char
**
iph_afc_get_dir_list
(
iph_afc_client_t
client
,
const
char
*
dir
);
int
iph_afc_open_file
(
iph_afc_client_t
client
,
const
char
*
filename
,
uint32
file_mode
,
iph_afc_file_t
*
file
);
void
iph_afc_close_file
(
iph_afc_client_t
client
,
iph_afc_file_t
file
);
int
iph_afc_read_file
(
iph_afc_client_t
client
,
iph_afc_file_t
file
,
char
*
data
,
int
length
);
int
iph_afc_write_file
(
iph_afc_client_t
client
,
iph_afc_file_t
file
,
const
char
*
data
,
int
length
);
int
iph_afc_seek_file
(
iph_afc_client_t
client
,
iph_afc_file_t
file
,
int
seekpos
);
int
iph_afc_truncate_file
(
iph_afc_client_t
client
,
iph_afc_file_t
file
,
uint32
newsize
);
int
iph_afc_delete_file
(
iph_afc_client_t
client
,
const
char
*
path
);
int
iph_afc_rename_file
(
iph_afc_client_t
client
,
const
char
*
from
,
const
char
*
to
);
int
iph_afc_mkdir
(
iph_afc_client_t
client
,
const
char
*
dir
);
int
lockdownd_init
(
iPhone_t
phone
,
lockdownd_client_t
*
control
);
int
lockdownd_start_service
(
lockdownd_client_t
control
,
const
char
*
service
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment