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
318f4bd5
Commit
318f4bd5
authored
Aug 19, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix header and add an error
parent
c547987d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
libiphone.h
include/libiphone/libiphone.h
+15
-14
No files found.
include/libiphone/libiphone.h
View file @
318f4bd5
...
@@ -31,32 +31,33 @@ extern "C" {
...
@@ -31,32 +31,33 @@ extern "C" {
//general errors
//general errors
#define IPHONE_E_SUCCESS 0
#define IPHONE_E_SUCCESS 0
#define IPHONE_E_NO_DEVICE -1
#define IPHONE_E_INVALID_ARG -1
#define IPHONE_E_TIMEOUT -2
#define IPHONE_E_NO_DEVICE -2
#define IPHONE_E_NOT_ENOUGH_DATA -3
#define IPHONE_E_TIMEOUT -3
#define IPHONE_E_NOT_ENOUGH_DATA -4
//lockdownd specific error
//lockdownd specific error
#define IPHONE_E_INVALID_CONF -
4
#define IPHONE_E_INVALID_CONF -
5
#define IPHONE_E_PAIRING_FAILED -
5
#define IPHONE_E_PAIRING_FAILED -
6
#define IPHONE_E_SSL_ERROR -
6
#define IPHONE_E_SSL_ERROR -
7
//afc specific error
//afc specific error
#define IPHONE_E_NO_SUCH_FILE -
7
#define IPHONE_E_NO_SUCH_FILE -
8
struct
iphone_device_int
;
struct
iphone_device_int
;
typedef
iphone_device_int
*
iphone_device_t
;
typedef
struct
iphone_device_int
*
iphone_device_t
;
struct
iphone_lckd_client_int
;
struct
iphone_lckd_client_int
;
typedef
iphone_lckd_client_int
*
iphone_lckd_client_t
;
typedef
struct
iphone_lckd_client_int
*
iphone_lckd_client_t
;
struct
iphone_umux_client_int
;
struct
iphone_umux_client_int
;
typedef
iphone_umux_client_int
*
iphone_umux_client_t
;
typedef
struct
iphone_umux_client_int
*
iphone_umux_client_t
;
struct
iphone_afc_client_int
;
struct
iphone_afc_client_int
;
typedef
iphone_afc_client_int
*
iphone_afc_client_t
;
typedef
struct
iphone_afc_client_int
*
iphone_afc_client_t
;
struct
iphone_afc_file_int
;
struct
iphone_afc_file_int
;
typedef
iphone_afc_file_int
*
iphone_afc_file_t
;
typedef
struct
iphone_afc_file_int
*
iphone_afc_file_t
;
//device related functions
//device related functions
int
iphone_get_device
(
iphone_device_t
*
device
);
int
iphone_get_device
(
iphone_device_t
*
device
);
...
@@ -88,12 +89,12 @@ char **iphone_afc_get_devinfo ( iphone_afc_client_t client );
...
@@ -88,12 +89,12 @@ char **iphone_afc_get_devinfo ( iphone_afc_client_t client );
char
**
iphone_afc_get_dir_list
(
iphone_afc_client_t
client
,
const
char
*
dir
);
char
**
iphone_afc_get_dir_list
(
iphone_afc_client_t
client
,
const
char
*
dir
);
int
iphone_afc_get_file_attr
(
iphone_afc_client_t
client
,
const
char
*
filename
,
struct
stat
*
stbuf
);
int
iphone_afc_get_file_attr
(
iphone_afc_client_t
client
,
const
char
*
filename
,
struct
stat
*
stbuf
);
int
iphone_afc_open_file
(
iphone_afc_client_t
client
,
const
char
*
filename
,
uint32
file_mode
,
iphone_afc_file_t
*
file
);
int
iphone_afc_open_file
(
iphone_afc_client_t
client
,
const
char
*
filename
,
uint32
_t
file_mode
,
iphone_afc_file_t
*
file
);
void
iphone_afc_close_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
);
void
iphone_afc_close_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
);
int
iphone_afc_read_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
char
*
data
,
int
length
);
int
iphone_afc_read_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
char
*
data
,
int
length
);
int
iphone_afc_write_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
const
char
*
data
,
int
length
);
int
iphone_afc_write_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
const
char
*
data
,
int
length
);
int
iphone_afc_seek_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
int
seekpos
);
int
iphone_afc_seek_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
int
seekpos
);
int
iphone_afc_truncate_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
uint32
newsize
);
int
iphone_afc_truncate_file
(
iphone_afc_client_t
client
,
iphone_afc_file_t
file
,
uint32
_t
newsize
);
int
iphone_afc_delete_file
(
iphone_afc_client_t
client
,
const
char
*
path
);
int
iphone_afc_delete_file
(
iphone_afc_client_t
client
,
const
char
*
path
);
int
iphone_afc_rename_file
(
iphone_afc_client_t
client
,
const
char
*
from
,
const
char
*
to
);
int
iphone_afc_rename_file
(
iphone_afc_client_t
client
,
const
char
*
from
,
const
char
*
to
);
int
iphone_afc_mkdir
(
iphone_afc_client_t
client
,
const
char
*
dir
);
int
iphone_afc_mkdir
(
iphone_afc_client_t
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