summaryrefslogtreecommitdiffstats
path: root/src/house_arrest.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-10-03 15:51:43 +0200
committerGravatar Martin Szulecki2014-10-03 16:29:42 +0200
commit4c4bbd31f52845de70f5b828121eeea62f8b4514 (patch)
tree6655c2eeba4a9865752523e68d73e982e8a0d515 /src/house_arrest.c
parentd335f9350eef7b0140a249f92b791dc88b2900e5 (diff)
downloadlibimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.gz
libimobiledevice-4c4bbd31f52845de70f5b828121eeea62f8b4514.tar.bz2
Avoid exporting non-public symbols
Diffstat (limited to 'src/house_arrest.c')
-rw-r--r--src/house_arrest.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/house_arrest.c b/src/house_arrest.c
index 4158368..b719d6f 100644
--- a/src/house_arrest.c
+++ b/src/house_arrest.c
@@ -55,7 +55,7 @@ static house_arrest_error_t house_arrest_error(property_list_service_error_t err
55 return HOUSE_ARREST_E_UNKNOWN_ERROR; 55 return HOUSE_ARREST_E_UNKNOWN_ERROR;
56} 56}
57 57
58house_arrest_error_t house_arrest_client_new(idevice_t device, lockdownd_service_descriptor_t service, house_arrest_client_t *client) 58LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_new(idevice_t device, lockdownd_service_descriptor_t service, house_arrest_client_t *client)
59{ 59{
60 property_list_service_client_t plistclient = NULL; 60 property_list_service_client_t plistclient = NULL;
61 house_arrest_error_t err = house_arrest_error(property_list_service_client_new(device, service, &plistclient)); 61 house_arrest_error_t err = house_arrest_error(property_list_service_client_new(device, service, &plistclient));
@@ -71,14 +71,14 @@ house_arrest_error_t house_arrest_client_new(idevice_t device, lockdownd_service
71 return HOUSE_ARREST_E_SUCCESS; 71 return HOUSE_ARREST_E_SUCCESS;
72} 72}
73 73
74house_arrest_error_t house_arrest_client_start_service(idevice_t device, house_arrest_client_t * client, const char* label) 74LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_start_service(idevice_t device, house_arrest_client_t * client, const char* label)
75{ 75{
76 house_arrest_error_t err = HOUSE_ARREST_E_UNKNOWN_ERROR; 76 house_arrest_error_t err = HOUSE_ARREST_E_UNKNOWN_ERROR;
77 service_client_factory_start_service(device, HOUSE_ARREST_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(house_arrest_client_new), &err); 77 service_client_factory_start_service(device, HOUSE_ARREST_SERVICE_NAME, (void**)client, label, SERVICE_CONSTRUCTOR(house_arrest_client_new), &err);
78 return err; 78 return err;
79} 79}
80 80
81house_arrest_error_t house_arrest_client_free(house_arrest_client_t client) 81LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_client_free(house_arrest_client_t client)
82{ 82{
83 if (!client) 83 if (!client)
84 return HOUSE_ARREST_E_INVALID_ARG; 84 return HOUSE_ARREST_E_INVALID_ARG;
@@ -93,7 +93,7 @@ house_arrest_error_t house_arrest_client_free(house_arrest_client_t client)
93 return err; 93 return err;
94} 94}
95 95
96house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, plist_t dict) 96LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, plist_t dict)
97{ 97{
98 if (!client || !client->parent || !dict) 98 if (!client || !client->parent || !dict)
99 return HOUSE_ARREST_E_INVALID_ARG; 99 return HOUSE_ARREST_E_INVALID_ARG;
@@ -109,7 +109,7 @@ house_arrest_error_t house_arrest_send_request(house_arrest_client_t client, pli
109 return res; 109 return res;
110} 110}
111 111
112house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, const char *command, const char *appid) 112LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, const char *command, const char *appid)
113{ 113{
114 if (!client || !client->parent || !command || !appid) 114 if (!client || !client->parent || !command || !appid)
115 return HOUSE_ARREST_E_INVALID_ARG; 115 return HOUSE_ARREST_E_INVALID_ARG;
@@ -129,7 +129,7 @@ house_arrest_error_t house_arrest_send_command(house_arrest_client_t client, con
129 return res; 129 return res;
130} 130}
131 131
132house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict) 132LIBIMOBILEDEVICE_API house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist_t *dict)
133{ 133{
134 if (!client || !client->parent) 134 if (!client || !client->parent)
135 return HOUSE_ARREST_E_INVALID_ARG; 135 return HOUSE_ARREST_E_INVALID_ARG;
@@ -147,7 +147,7 @@ house_arrest_error_t house_arrest_get_result(house_arrest_client_t client, plist
147 return res; 147 return res;
148} 148}
149 149
150afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client) 150LIBIMOBILEDEVICE_API afc_error_t afc_client_new_from_house_arrest_client(house_arrest_client_t client, afc_client_t *afc_client)
151{ 151{
152 if (!client || !client->parent || (client->mode == HOUSE_ARREST_CLIENT_MODE_AFC)) { 152 if (!client || !client->parent || (client->mode == HOUSE_ARREST_CLIENT_MODE_AFC)) {
153 return AFC_E_INVALID_ARG; 153 return AFC_E_INVALID_ARG;