Commit 1a06347d authored by Jonathan Beck's avatar Jonathan Beck

cleanup binary parsing and move stuff around.

parent 75639177
......@@ -963,7 +963,7 @@ iphone_error_t iphone_lckd_start_service(iphone_lckd_client_t client, const char
if (result_key_type == PLIST_KEY &&
result_value_type == PLIST_STRING &&
port_key_type == PLIST_KEY &&
port_value_type == PLIST_UINT64 &&
port_value_type == PLIST_UINT &&
!strcmp(result_key, "Result") && !strcmp(result_value, "Success") && !strcmp(port_key, "Port")) {
port_loc = port_value;
ret = IPHONE_E_SUCCESS;
......
This diff is collapsed.
......@@ -35,7 +35,7 @@ char *format_string(const char *buf, int cols, int depth);
/* Binary plist stuff */
/*
typedef enum {
PLIST_BOOLEAN,
PLIST_UINT8,
......@@ -53,6 +53,22 @@ typedef enum {
PLIST_PLIST,
PLIST_KEY,
} plist_type;
*/
typedef enum {
PLIST_BOOLEAN,
PLIST_UINT,
PLIST_REAL,
PLIST_STRING,
PLIST_UNICODE,
PLIST_ARRAY,
PLIST_DICT,
PLIST_DATE,
PLIST_DATA,
PLIST_PLIST,
PLIST_KEY,
} plist_type;
typedef GNode *plist_t;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment