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
c042f7ca
Commit
c042f7ca
authored
Aug 25, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate AFC.c
parent
65f66a72
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
131 additions
and
113 deletions
+131
-113
AFC.c
src/AFC.c
+121
-87
AFC.h
src/AFC.h
+10
-26
No files found.
src/AFC.c
View file @
c042f7ca
This diff is collapsed.
Click to expand it.
src/AFC.h
View file @
c042f7ca
...
...
@@ -32,26 +32,25 @@ typedef struct {
uint32
entire_length
,
unknown1
,
this_length
,
unknown2
,
packet_num
,
unknown3
,
operation
,
unknown4
;
}
AFCPacket
;
typedef
struct
{
usbmux_connection
*
connection
;
AFCPacket
*
afc_packet
;
int
file_handle
;
int
lock
;
}
AFClient
;
typedef
struct
{
uint32
filehandle
,
unknown1
,
size
,
unknown2
;
}
AFCFilePacket
;
typedef
struct
{
uint32
filehandle
,
blocks
,
size
,
type
;
}
AFCFile
;
typedef
struct
__AFCToken
{
struct
__AFCToken
*
last
,
*
next
;
char
*
token
;
}
AFCToken
;
struct
iphone_afc_client_int
{
iphone_umux_client_t
connection
;
AFCPacket
*
afc_packet
;
int
file_handle
;
int
lock
;
};
struct
iphone_afc_file_int
{
uint32
filehandle
,
blocks
,
size
,
type
;
};
enum
{
AFC_FILE_READ
=
0x00000002
,
// seems to be able to read and write files
...
...
@@ -82,18 +81,3 @@ enum {
AFC_WRITE
=
0x00000010
};
AFClient
*
afc_connect
(
iPhone
*
phone
,
int
s_port
,
int
d_port
);
void
afc_disconnect
(
AFClient
*
client
);
char
**
afc_get_devinfo
(
AFClient
*
client
);
char
**
afc_get_dir_list
(
AFClient
*
client
,
const
char
*
dir
);
AFCFile
*
afc_get_file_info
(
AFClient
*
client
,
const
char
*
path
);
AFCFile
*
afc_open_file
(
AFClient
*
client
,
const
char
*
filename
,
uint32
file_mode
);
void
afc_close_file
(
AFClient
*
client
,
AFCFile
*
file
);
int
afc_read_file
(
AFClient
*
client
,
AFCFile
*
file
,
char
*
data
,
int
length
);
int
afc_write_file
(
AFClient
*
client
,
AFCFile
*
file
,
const
char
*
data
,
int
length
);
int
afc_seek_file
(
AFClient
*
client
,
AFCFile
*
file
,
int
seekpos
);
int
afc_truncate_file
(
AFClient
*
client
,
AFCFile
*
file
,
uint32
newsize
);
int
afc_delete_file
(
AFClient
*
client
,
const
char
*
path
);
int
afc_rename_file
(
AFClient
*
client
,
const
char
*
from
,
const
char
*
to
);
int
afc_mkdir
(
AFClient
*
client
,
const
char
*
dir
);
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