diff options
author | 2024-01-31 02:57:11 +0100 | |
---|---|---|
committer | 2024-01-31 02:57:11 +0100 | |
commit | 63bbac545efc400373a7f472fdd78174149119c3 (patch) | |
tree | f95c8d58b7b0fbf33bd188c5becc0401ee7e64ef /src/house_arrest.c | |
parent | f723a44513eb5ba5797da24bc2b63d9f09600a6e (diff) | |
download | libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.gz libimobiledevice-63bbac545efc400373a7f472fdd78174149119c3.tar.bz2 |
Move LIBIMOBILEDEVICE_API to public headers
Diffstat (limited to 'src/house_arrest.c')
-rw-r--r-- | src/house_arrest.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/house_arrest.c b/src/house_arrest.c index ac92130..caad731 100644 --- a/src/house_arrest.c +++ b/src/house_arrest.c | |||
@@ -58,7 +58,7 @@ static house_arrest_error_t house_arrest_error(property_list_service_error_t err | |||
58 | return HOUSE_ARREST_E_UNKNOWN_ERROR; | 58 | return HOUSE_ARREST_E_UNKNOWN_ERROR; |
59 | } | 59 | } |
60 | 60 | ||
61 | LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_new(idevice_t device, lockdownd_service_descriptor_t service, house_arrest_client_t *client) | 61 | house_arrest_error_t house_arrest_client_new(idevice_t device, lockdownd_service_descriptor_t service, house_arrest_client_t *client) |
62 | { | 62 | { |
63 | property_list_service_client_t plistclient = NULL; | 63 | property_list_service_client_t plistclient = NULL; |
64 | house_arrest_error_t err = house_arrest_error(property_list_service_client_new(device, service, &plistclient)); | 64 | house_arrest_error_t err = house_arrest_error(property_list_service_client_new(device, service, &plistclient)); |
@@ -74,14 +74,14 @@ LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_new(idevice_t devi | |||
74 | return HOUSE_ARREST_E_SUCCESS; | 74 | return HOUSE_ARREST_E_SUCCESS; |
75 | } | 75 | } |
76 | 76 | ||
77 | LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_start_service(idevice_t device, house_arrest_client_t * client, const char* label) | 77 | house_arrest_error_t house_arrest_client_start_service(idevice_t device, house_arrest_client_t * client, const char* label) |
78 | { | 78 | { |
79 | house_arrest_error_t err = HOUSE_ARREST_E_UNKNOWN_ERROR; | 79 | house_arrest_error_t err = HOUSE_ARREST_E_UNKNOWN_ERROR; |
80 | service_client_factory_start_service(device, HOUSE_ARREST_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(house_arrest_client_new), &err); | 80 | service_client_factory_start_service(device, HOUSE_ARREST_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(house_arrest_client_new), &err); |
81 | return err; | 81 | return err; |
82 | } | 82 | } |
83 | 83 | ||
84 | LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_free(house_arrest_client_t client) | 84 | house_arrest_error_t house_arrest_client_free(house_arrest_client_t client) |
85 | { | 85 | { |
86 | if (!client) | 86 | if (!client) |
87 | return HOUSE_ARREST_E_INVALID_ARG; | 87 | return HOUSE_ARREST_E_INVALID_ARG; |
@@ -96,7 +96,7 @@ LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_free(house_arrest_ | |||
96 | return err; | 96 | return err; |
97 | } | 97 | } |
98 | 98 | ||
99 | LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, plist_t dict) | 99 | house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, plist_t dict) |
100 | { | 100 | { |
101 | if (!client || !client->parent || !dict) | 101 | if (!client || !client->parent || !dict) |
102 | return HOUSE_ARREST_E_INVALID_ARG; | 102 | return HOUSE_ARREST_E_INVALID_ARG; |
@@ -112,7 +112,7 @@ LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_send_request(house_arrest | |||
112 | return res; | 112 | return res; |
113 | } | 113 | } |
114 | 114 | ||
115 | LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, const char *command, const char *appid) | 115 | house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, const char *command, const char *appid) |
116 | { | 116 | { |
117 | if (!client || !client->parent || !command || !appid) | 117 | if (!client || !client->parent || !command || !appid) |
118 | return HOUSE_ARREST_E_INVALID_ARG; | 118 | return HOUSE_ARREST_E_INVALID_ARG; |
@@ -132,7 +132,7 @@ LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_send_command(house_arrest | |||
132 | return res; | 132 | return res; |
133 | } | 133 | } |
134 | 134 | ||
135 | LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict) | 135 | house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict) |
136 | { | 136 | { |
137 | if (!client || !client->parent) | 137 | if (!client || !client->parent) |
138 | return HOUSE_ARREST_E_INVALID_ARG; | 138 | return HOUSE_ARREST_E_INVALID_ARG; |
@@ -150,7 +150,7 @@ LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_get_result(house_arrest_c | |||
150 | return res; | 150 | return res; |
151 | } | 151 | } |
152 | 152 | ||
153 | LIBIMOBILEDEVICE_API afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client) | 153 | afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client) |
154 | { | 154 | { |
155 | if (!client || !client->parent || (client->mode == HOUSE_ARREST_CLIENT_MODE_AFC)) { | 155 | if (!client || !client->parent || (client->mode == HOUSE_ARREST_CLIENT_MODE_AFC)) { |
156 | return AFC_E_INVALID_ARG; | 156 | return AFC_E_INVALID_ARG; |