diff options
| author | 2015-01-28 01:27:59 +0100 | |
|---|---|---|
| committer | 2015-01-28 01:27:59 +0100 | |
| commit | 24ce2e27b47d3ad460680e02514f5bdbd4628724 (patch) | |
| tree | ff174ebb7deab82d1f9c031d147e47e01bf47d3a | |
| parent | c9d8013c1a6d69ef8b6024166629413e481e185d (diff) | |
| download | libimobiledevice-24ce2e27b47d3ad460680e02514f5bdbd4628724.tar.gz libimobiledevice-24ce2e27b47d3ad460680e02514f5bdbd4628724.tar.bz2 | |
Remove trailing whitespace errors from all files
78 files changed, 360 insertions, 363 deletions
diff --git a/common/debug.c b/common/debug.c index 82e3c2f..acca456 100644 --- a/common/debug.c +++ b/common/debug.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | 23 | #ifdef HAVE_CONFIG_H |
diff --git a/common/debug.h b/common/debug.h index 4c264c7..882072d 100644 --- a/common/debug.h +++ b/common/debug.h | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifndef __DEBUG_H | 23 | #ifndef __DEBUG_H |
diff --git a/common/socket.c b/common/socket.c index c35de33..b276864 100644 --- a/common/socket.c +++ b/common/socket.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/common/socket.h b/common/socket.h index c2b2599..81ee083 100644 --- a/common/socket.h +++ b/common/socket.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __SOCKET_SOCKET_H | 22 | #ifndef __SOCKET_SOCKET_H |
diff --git a/common/thread.c b/common/thread.c index f4a00cf..fdc8112 100644 --- a/common/thread.c +++ b/common/thread.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include "thread.h" | 22 | #include "thread.h" |
diff --git a/common/thread.h b/common/thread.h index d0eebdf..bd53c5b 100644 --- a/common/thread.h +++ b/common/thread.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __THREAD_H | 22 | #ifndef __THREAD_H |
diff --git a/common/userpref.c b/common/userpref.c index fd7022c..f88a123 100644 --- a/common/userpref.c +++ b/common/userpref.c | |||
| @@ -159,7 +159,7 @@ const char *userpref_get_config_dir() | |||
| 159 | __config_dir = string_concat(base_config_dir, DIR_SEP_S, USERPREF_CONFIG_DIR, NULL); | 159 | __config_dir = string_concat(base_config_dir, DIR_SEP_S, USERPREF_CONFIG_DIR, NULL); |
| 160 | 160 | ||
| 161 | if (__config_dir) { | 161 | if (__config_dir) { |
| 162 | int i = strlen(__config_dir)-1; | 162 | int i = strlen(__config_dir)-1; |
| 163 | while ((i > 0) && (__config_dir[i] == DIR_SEP)) { | 163 | while ((i > 0) && (__config_dir[i] == DIR_SEP)) { |
| 164 | __config_dir[i--] = '\0'; | 164 | __config_dir[i--] = '\0'; |
| 165 | } | 165 | } |
| @@ -232,7 +232,7 @@ int userpref_has_pair_record(const char *udid) | |||
| 232 | * @param count The number of UDIDs found. This parameter can be NULL if it | 232 | * @param count The number of UDIDs found. This parameter can be NULL if it |
| 233 | * is not required. | 233 | * is not required. |
| 234 | * | 234 | * |
| 235 | * @return USERPREF_E_SUCCESS on success, or USERPREF_E_INVALID_ARG if the | 235 | * @return USERPREF_E_SUCCESS on success, or USERPREF_E_INVALID_ARG if the |
| 236 | * list parameter is not pointing to NULL. | 236 | * list parameter is not pointing to NULL. |
| 237 | */ | 237 | */ |
| 238 | userpref_error_t userpref_get_paired_udids(char ***list, unsigned int *count) | 238 | userpref_error_t userpref_get_paired_udids(char ***list, unsigned int *count) |
| @@ -491,7 +491,7 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record, key_da | |||
| 491 | X509_set_notAfter(host_cert, asn1time); | 491 | X509_set_notAfter(host_cert, asn1time); |
| 492 | ASN1_TIME_free(asn1time); | 492 | ASN1_TIME_free(asn1time); |
| 493 | 493 | ||
| 494 | /* use host public key for host cert */ | 494 | /* use host public key for host cert */ |
| 495 | X509_set_pubkey(host_cert, host_pkey); | 495 | X509_set_pubkey(host_cert, host_pkey); |
| 496 | 496 | ||
| 497 | /* sign host cert with root private key */ | 497 | /* sign host cert with root private key */ |
diff --git a/dev/afccheck.c b/dev/afccheck.c index c534000..fed8538 100644 --- a/dev/afccheck.c +++ b/dev/afccheck.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| @@ -46,7 +46,7 @@ static void* check_afc(void *data) | |||
| 46 | int *buf2 = (int *) malloc(buffersize); | 46 | int *buf2 = (int *) malloc(buffersize); |
| 47 | unsigned int bytes = 0; | 47 | unsigned int bytes = 0; |
| 48 | uint64_t position = 0; | 48 | uint64_t position = 0; |
| 49 | 49 | ||
| 50 | //fill buffer | 50 | //fill buffer |
| 51 | int i = 0; | 51 | int i = 0; |
| 52 | for (i = 0; i < BUFFER_SIZE; i++) { | 52 | for (i = 0; i < BUFFER_SIZE; i++) { |
diff --git a/dev/filerelaytest.c b/dev/filerelaytest.c index 1069711..6983f1d 100644 --- a/dev/filerelaytest.c +++ b/dev/filerelaytest.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #include <errno.h> | 21 | #include <errno.h> |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/dev/housearresttest.c b/dev/housearresttest.c index 2e24670..6586787 100644 --- a/dev/housearresttest.c +++ b/dev/housearresttest.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #include <stdio.h> | 21 | #include <stdio.h> |
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| @@ -30,7 +30,7 @@ | |||
| 30 | static void print_usage(int argc, char **argv) | 30 | static void print_usage(int argc, char **argv) |
| 31 | { | 31 | { |
| 32 | char *name = NULL; | 32 | char *name = NULL; |
| 33 | 33 | ||
| 34 | name = strrchr(argv[0], '/'); | 34 | name = strrchr(argv[0], '/'); |
| 35 | printf("Usage: %s [OPTIONS] APPID\n", (name ? name + 1: argv[0])); | 35 | printf("Usage: %s [OPTIONS] APPID\n", (name ? name + 1: argv[0])); |
| 36 | printf("Test the house_arrest service.\n\n"); | 36 | printf("Test the house_arrest service.\n\n"); |
diff --git a/dev/ideviceclient.c b/dev/ideviceclient.c index 778f20e..b92ae94 100644 --- a/dev/ideviceclient.c +++ b/dev/ideviceclient.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/dev/ideviceheartbeat.c b/dev/ideviceheartbeat.c index c92ff90..a140589 100644 --- a/dev/ideviceheartbeat.c +++ b/dev/ideviceheartbeat.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -42,7 +42,7 @@ static void clean_exit(int sig) | |||
| 42 | static void print_usage(int argc, char **argv) | 42 | static void print_usage(int argc, char **argv) |
| 43 | { | 43 | { |
| 44 | char *name = NULL; | 44 | char *name = NULL; |
| 45 | 45 | ||
| 46 | name = strrchr(argv[0], '/'); | 46 | name = strrchr(argv[0], '/'); |
| 47 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 47 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 48 | printf("Runs in the foreground and keeps a \"heartbeat\" connection alive.\n\n"); | 48 | printf("Runs in the foreground and keeps a \"heartbeat\" connection alive.\n\n"); |
diff --git a/dev/lckdclient.c b/dev/lckdclient.c index b9be4de..08d798f 100644 --- a/dev/lckdclient.c +++ b/dev/lckdclient.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/include/endianness.h b/include/endianness.h index 9dfcd0c..585e768 100644 --- a/include/endianness.h +++ b/include/endianness.h | |||
| @@ -66,7 +66,7 @@ | |||
| 66 | | (((x) & 0x00000000FF000000ull) << 8) \ | 66 | | (((x) & 0x00000000FF000000ull) << 8) \ |
| 67 | | (((x) & 0x0000000000FF0000ull) << 24) \ | 67 | | (((x) & 0x0000000000FF0000ull) << 24) \ |
| 68 | | (((x) & 0x000000000000FF00ull) << 40) \ | 68 | | (((x) & 0x000000000000FF00ull) << 40) \ |
| 69 | | (((x) & 0x00000000000000FFull) << 56)) | 69 | | (((x) & 0x00000000000000FFull) << 56)) |
| 70 | #endif | 70 | #endif |
| 71 | 71 | ||
| 72 | #ifndef htobe64 | 72 | #ifndef htobe64 |
diff --git a/include/libimobiledevice/diagnostics_relay.h b/include/libimobiledevice/diagnostics_relay.h index f8eda2b..97ac363 100644 --- a/include/libimobiledevice/diagnostics_relay.h +++ b/include/libimobiledevice/diagnostics_relay.h | |||
| @@ -67,7 +67,7 @@ typedef diagnostics_relay_client_private *diagnostics_relay_client_t; /**< The c | |||
| 67 | * or DIAGNOSTICS_RELAY_E_MUX_ERROR when the connection failed. | 67 | * or DIAGNOSTICS_RELAY_E_MUX_ERROR when the connection failed. |
| 68 | */ | 68 | */ |
| 69 | diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, diagnostics_relay_client_t *client); | 69 | diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, lockdownd_service_descriptor_t service, diagnostics_relay_client_t *client); |
| 70 | 70 | ||
| 71 | /** | 71 | /** |
| 72 | * Starts a new diagnostics_relay service on the specified device and connects to it. | 72 | * Starts a new diagnostics_relay service on the specified device and connects to it. |
| 73 | * | 73 | * |
| @@ -82,7 +82,7 @@ diagnostics_relay_error_t diagnostics_relay_client_new(idevice_t device, lockdow | |||
| 82 | * code otherwise. | 82 | * code otherwise. |
| 83 | */ | 83 | */ |
| 84 | diagnostics_relay_error_t diagnostics_relay_client_start_service(idevice_t device, diagnostics_relay_client_t* client, const char* label); | 84 | diagnostics_relay_error_t diagnostics_relay_client_start_service(idevice_t device, diagnostics_relay_client_t* client, const char* label); |
| 85 | 85 | ||
| 86 | /** | 86 | /** |
| 87 | * Disconnects a diagnostics_relay client from the device and frees up the | 87 | * Disconnects a diagnostics_relay client from the device and frees up the |
| 88 | * diagnostics_relay client data. | 88 | * diagnostics_relay client data. |
| @@ -96,7 +96,7 @@ diagnostics_relay_error_t diagnostics_relay_client_start_service(idevice_t devic | |||
| 96 | */ | 96 | */ |
| 97 | diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client); | 97 | diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client_t client); |
| 98 | 98 | ||
| 99 | 99 | ||
| 100 | /** | 100 | /** |
| 101 | * Sends the Goodbye request signaling the end of communication. | 101 | * Sends the Goodbye request signaling the end of communication. |
| 102 | * | 102 | * |
| @@ -108,7 +108,7 @@ diagnostics_relay_error_t diagnostics_relay_client_free(diagnostics_relay_client | |||
| 108 | * request | 108 | * request |
| 109 | */ | 109 | */ |
| 110 | diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client); | 110 | diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t client); |
| 111 | 111 | ||
| 112 | /** | 112 | /** |
| 113 | * Puts the device into deep sleep mode and disconnects from host. | 113 | * Puts the device into deep sleep mode and disconnects from host. |
| 114 | * | 114 | * |
| @@ -120,7 +120,7 @@ diagnostics_relay_error_t diagnostics_relay_goodbye(diagnostics_relay_client_t c | |||
| 120 | * request | 120 | * request |
| 121 | */ | 121 | */ |
| 122 | diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client); | 122 | diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t client); |
| 123 | 123 | ||
| 124 | /** | 124 | /** |
| 125 | * Restart the device and optionally show a user notification. | 125 | * Restart the device and optionally show a user notification. |
| 126 | * | 126 | * |
| @@ -137,7 +137,7 @@ diagnostics_relay_error_t diagnostics_relay_sleep(diagnostics_relay_client_t cli | |||
| 137 | * request | 137 | * request |
| 138 | */ | 138 | */ |
| 139 | diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, int flags); | 139 | diagnostics_relay_error_t diagnostics_relay_restart(diagnostics_relay_client_t client, int flags); |
| 140 | 140 | ||
| 141 | /** | 141 | /** |
| 142 | * Shutdown of the device and optionally show a user notification. | 142 | * Shutdown of the device and optionally show a user notification. |
| 143 | * | 143 | * |
| @@ -171,11 +171,11 @@ diagnostics_relay_error_t diagnostics_relay_shutdown(diagnostics_relay_client_t | |||
| 171 | * request | 171 | * request |
| 172 | */ | 172 | */ |
| 173 | diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, const char* type, plist_t* diagnostics); | 173 | diagnostics_relay_error_t diagnostics_relay_request_diagnostics(diagnostics_relay_client_t client, const char* type, plist_t* diagnostics); |
| 174 | 174 | ||
| 175 | diagnostics_relay_error_t diagnostics_relay_query_mobilegestalt(diagnostics_relay_client_t client, plist_t keys, plist_t* result); | 175 | diagnostics_relay_error_t diagnostics_relay_query_mobilegestalt(diagnostics_relay_client_t client, plist_t keys, plist_t* result); |
| 176 | 176 | ||
| 177 | diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* name, const char* class, plist_t* result); | 177 | diagnostics_relay_error_t diagnostics_relay_query_ioregistry_entry(diagnostics_relay_client_t client, const char* name, const char* class, plist_t* result); |
| 178 | 178 | ||
| 179 | diagnostics_relay_error_t diagnostics_relay_query_ioregistry_plane(diagnostics_relay_client_t client, const char* plane, plist_t* result); | 179 | diagnostics_relay_error_t diagnostics_relay_query_ioregistry_plane(diagnostics_relay_client_t client, const char* plane, plist_t* result); |
| 180 | 180 | ||
| 181 | #ifdef __cplusplus | 181 | #ifdef __cplusplus |
diff --git a/include/libimobiledevice/libimobiledevice.h b/include/libimobiledevice/libimobiledevice.h index 6a349f8..016cadb 100644 --- a/include/libimobiledevice/libimobiledevice.h +++ b/include/libimobiledevice/libimobiledevice.h | |||
| @@ -11,15 +11,15 @@ | |||
| 11 | * modify it under the terms of the GNU Lesser General Public | 11 | * modify it under the terms of the GNU Lesser General Public |
| 12 | * License as published by the Free Software Foundation; either | 12 | * License as published by the Free Software Foundation; either |
| 13 | * version 2.1 of the License, or (at your option) any later version. | 13 | * version 2.1 of the License, or (at your option) any later version. |
| 14 | * | 14 | * |
| 15 | * This library is distributed in the hope that it will be useful, | 15 | * This library is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 18 | * Lesser General Public License for more details. | 18 | * Lesser General Public License for more details. |
| 19 | * | 19 | * |
| 20 | * You should have received a copy of the GNU Lesser General Public | 20 | * You should have received a copy of the GNU Lesser General Public |
| 21 | * License along with this library; if not, write to the Free Software | 21 | * License along with this library; if not, write to the Free Software |
| 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #ifndef IMOBILEDEVICE_H | 25 | #ifndef IMOBILEDEVICE_H |
| @@ -122,7 +122,7 @@ idevice_error_t idevice_get_device_list(char ***devices, int *count); | |||
| 122 | idevice_error_t idevice_device_list_free(char **devices); | 122 | idevice_error_t idevice_device_list_free(char **devices); |
| 123 | 123 | ||
| 124 | /* device structure creation and destruction */ | 124 | /* device structure creation and destruction */ |
| 125 | 125 | ||
| 126 | /** | 126 | /** |
| 127 | * Creates an idevice_t structure for the device specified by udid, | 127 | * Creates an idevice_t structure for the device specified by udid, |
| 128 | * if the device is available. | 128 | * if the device is available. |
| @@ -148,7 +148,7 @@ idevice_error_t idevice_new(idevice_t *device, const char *udid); | |||
| 148 | idevice_error_t idevice_free(idevice_t device); | 148 | idevice_error_t idevice_free(idevice_t device); |
| 149 | 149 | ||
| 150 | /* connection/disconnection */ | 150 | /* connection/disconnection */ |
| 151 | 151 | ||
| 152 | /** | 152 | /** |
| 153 | * Set up a connection to the given device. | 153 | * Set up a connection to the given device. |
| 154 | * | 154 | * |
| @@ -171,7 +171,7 @@ idevice_error_t idevice_connect(idevice_t device, uint16_t port, idevice_connect | |||
| 171 | idevice_error_t idevice_disconnect(idevice_connection_t connection); | 171 | idevice_error_t idevice_disconnect(idevice_connection_t connection); |
| 172 | 172 | ||
| 173 | /* communication */ | 173 | /* communication */ |
| 174 | 174 | ||
| 175 | /** | 175 | /** |
| 176 | * Send data to a device via the given connection. | 176 | * Send data to a device via the given connection. |
| 177 | * | 177 | * |
| @@ -201,7 +201,7 @@ idevice_error_t idevice_connection_send(idevice_connection_t connection, const c | |||
| 201 | * @return IDEVICE_E_SUCCESS if ok, otherwise an error code. | 201 | * @return IDEVICE_E_SUCCESS if ok, otherwise an error code. |
| 202 | */ | 202 | */ |
| 203 | idevice_error_t idevice_connection_receive_timeout(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout); | 203 | idevice_error_t idevice_connection_receive_timeout(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes, unsigned int timeout); |
| 204 | 204 | ||
| 205 | /** | 205 | /** |
| 206 | * Receive data from a device via the given connection. | 206 | * Receive data from a device via the given connection. |
| 207 | * This function is like idevice_connection_receive_timeout, but with a | 207 | * This function is like idevice_connection_receive_timeout, but with a |
| @@ -216,7 +216,7 @@ idevice_error_t idevice_connection_receive_timeout(idevice_connection_t connecti | |||
| 216 | * @return IDEVICE_E_SUCCESS if ok, otherwise an error code. | 216 | * @return IDEVICE_E_SUCCESS if ok, otherwise an error code. |
| 217 | */ | 217 | */ |
| 218 | idevice_error_t idevice_connection_receive(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes); | 218 | idevice_error_t idevice_connection_receive(idevice_connection_t connection, char *data, uint32_t len, uint32_t *recv_bytes); |
| 219 | 219 | ||
| 220 | /** | 220 | /** |
| 221 | * Enables SSL for the given connection. | 221 | * Enables SSL for the given connection. |
| 222 | * | 222 | * |
| @@ -227,7 +227,7 @@ idevice_error_t idevice_connection_receive(idevice_connection_t connection, char | |||
| 227 | * SSL initialization, setup, or handshake fails. | 227 | * SSL initialization, setup, or handshake fails. |
| 228 | */ | 228 | */ |
| 229 | idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection); | 229 | idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection); |
| 230 | 230 | ||
| 231 | /** | 231 | /** |
| 232 | * Disable SSL for the given connection. | 232 | * Disable SSL for the given connection. |
| 233 | * | 233 | * |
| @@ -240,12 +240,12 @@ idevice_error_t idevice_connection_enable_ssl(idevice_connection_t connection); | |||
| 240 | idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection); | 240 | idevice_error_t idevice_connection_disable_ssl(idevice_connection_t connection); |
| 241 | 241 | ||
| 242 | /* misc */ | 242 | /* misc */ |
| 243 | 243 | ||
| 244 | /** | 244 | /** |
| 245 | * Gets the handle of the device. Depends on the connection type. | 245 | * Gets the handle of the device. Depends on the connection type. |
| 246 | */ | 246 | */ |
| 247 | idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle); | 247 | idevice_error_t idevice_get_handle(idevice_t device, uint32_t *handle); |
| 248 | 248 | ||
| 249 | /** | 249 | /** |
| 250 | * Gets the unique id for the device. | 250 | * Gets the unique id for the device. |
| 251 | */ | 251 | */ |
diff --git a/include/libimobiledevice/property_list_service.h b/include/libimobiledevice/property_list_service.h index 31ba99a..5d5b835 100644 --- a/include/libimobiledevice/property_list_service.h +++ b/include/libimobiledevice/property_list_service.h | |||
| @@ -10,15 +10,15 @@ | |||
| 10 | * modify it under the terms of the GNU Lesser General Public | 10 | * modify it under the terms of the GNU Lesser General Public |
| 11 | * License as published by the Free Software Foundation; either | 11 | * License as published by the Free Software Foundation; either |
| 12 | * version 2.1 of the License, or (at your option) any later version. | 12 | * version 2.1 of the License, or (at your option) any later version. |
| 13 | * | 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, | 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * Lesser General Public License for more details. | 17 | * Lesser General Public License for more details. |
| 18 | * | 18 | * |
| 19 | * You should have received a copy of the GNU Lesser General Public | 19 | * You should have received a copy of the GNU Lesser General Public |
| 20 | * License along with this library; if not, write to the Free Software | 20 | * License along with this library; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | #ifndef IPROPERTY_LIST_SERVICE_H | 24 | #ifndef IPROPERTY_LIST_SERVICE_H |
diff --git a/include/libimobiledevice/service.h b/include/libimobiledevice/service.h index 97f9cf1..13c5df1 100644 --- a/include/libimobiledevice/service.h +++ b/include/libimobiledevice/service.h | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifndef ISERVICE_H | 23 | #ifndef ISERVICE_H |
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * afc.c | 2 | * afc.c |
| 3 | * Contains functions for the built-in AFC client. | 3 | * Contains functions for the built-in AFC client. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. |
| 6 | * Copyright (c) 2009-2014 Nikias Bassen. All Rights Reserved. | 6 | * Copyright (c) 2009-2014 Nikias Bassen. All Rights Reserved. |
| 7 | * Copyright (c) 2008 Zach C. All Rights Reserved. | 7 | * Copyright (c) 2008 Zach C. All Rights Reserved. |
| @@ -10,15 +10,15 @@ | |||
| 10 | * modify it under the terms of the GNU Lesser General Public | 10 | * modify it under the terms of the GNU Lesser General Public |
| 11 | * License as published by the Free Software Foundation; either | 11 | * License as published by the Free Software Foundation; either |
| 12 | * version 2.1 of the License, or (at your option) any later version. | 12 | * version 2.1 of the License, or (at your option) any later version. |
| 13 | * | 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, | 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * Lesser General Public License for more details. | 17 | * Lesser General Public License for more details. |
| 18 | * | 18 | * |
| 19 | * You should have received a copy of the GNU Lesser General Public | 19 | * You should have received a copy of the GNU Lesser General Public |
| 20 | * License along with this library; if not, write to the Free Software | 20 | * License along with this library; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | #ifdef HAVE_CONFIG_H | 24 | #ifdef HAVE_CONFIG_H |
| @@ -36,7 +36,7 @@ | |||
| 36 | 36 | ||
| 37 | /** | 37 | /** |
| 38 | * Locks an AFC client, done for thread safety stuff | 38 | * Locks an AFC client, done for thread safety stuff |
| 39 | * | 39 | * |
| 40 | * @param client The AFC client connection to lock | 40 | * @param client The AFC client connection to lock |
| 41 | */ | 41 | */ |
| 42 | static void afc_lock(afc_client_t client) | 42 | static void afc_lock(afc_client_t client) |
| @@ -47,8 +47,8 @@ static void afc_lock(afc_client_t client) | |||
| 47 | 47 | ||
| 48 | /** | 48 | /** |
| 49 | * Unlocks an AFC client, done for thread safety stuff. | 49 | * Unlocks an AFC client, done for thread safety stuff. |
| 50 | * | 50 | * |
| 51 | * @param client The AFC | 51 | * @param client The AFC |
| 52 | */ | 52 | */ |
| 53 | static void afc_unlock(afc_client_t client) | 53 | static void afc_unlock(afc_client_t client) |
| 54 | { | 54 | { |
| @@ -63,7 +63,7 @@ static void afc_unlock(afc_client_t client) | |||
| 63 | * @param service_client A connected service client | 63 | * @param service_client A connected service client |
| 64 | * @param client Pointer that will be set to a newly allocated afc_client_t | 64 | * @param client Pointer that will be set to a newly allocated afc_client_t |
| 65 | * upon successful return. | 65 | * upon successful return. |
| 66 | * | 66 | * |
| 67 | * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if connection is | 67 | * @return AFC_E_SUCCESS on success, AFC_E_INVALID_ARG if connection is |
| 68 | * invalid, or AFC_E_NO_MEM if there is a memory allocation problem. | 68 | * invalid, or AFC_E_NO_MEM if there is a memory allocation problem. |
| 69 | */ | 69 | */ |
| @@ -139,7 +139,7 @@ LIBIMOBILEDEVICE_API afc_error_t afc_client_free(afc_client_t client) | |||
| 139 | 139 | ||
| 140 | /** | 140 | /** |
| 141 | * Dispatches an AFC packet over a client. | 141 | * Dispatches an AFC packet over a client. |
| 142 | * | 142 | * |
| 143 | * @param client The client to send data through. | 143 | * @param client The client to send data through. |
| 144 | * @param operation The operation to perform. | 144 | * @param operation The operation to perform. |
| 145 | * @param data The data to send together with the header. | 145 | * @param data The data to send together with the header. |
| @@ -211,11 +211,11 @@ static afc_error_t afc_dispatch_packet(afc_client_t client, uint64_t operation, | |||
| 211 | 211 | ||
| 212 | /** | 212 | /** |
| 213 | * Receives data through an AFC client and sets a variable to the received data. | 213 | * Receives data through an AFC client and sets a variable to the received data. |
| 214 | * | 214 | * |
| 215 | * @param client The client to receive data on. | 215 | * @param client The client to receive data on. |
| 216 | * @param bytes The char* to point to the newly-received data. | 216 | * @param bytes The char* to point to the newly-received data. |
| 217 | * @param bytes_recv How much data was received. | 217 | * @param bytes_recv How much data was received. |
| 218 | * | 218 | * |
| 219 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. | 219 | * @return AFC_E_SUCCESS on success or an AFC_E_* error value. |
| 220 | */ | 220 | */ |
| 221 | static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t *bytes_recv) | 221 | static afc_error_t afc_receive_data(afc_client_t client, char **bytes, uint32_t *bytes_recv) |
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * afc.h | 2 | * afc.h |
| 3 | * Defines and structs and the like for the built-in AFC client | 3 | * Defines and structs and the like for the built-in AFC client |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. |
| 6 | * Copyright (c) 2008 Zach C. All Rights Reserved. | 6 | * Copyright (c) 2008 Zach C. All Rights Reserved. |
| 7 | * | 7 | * |
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifndef __AFC_H | 23 | #ifndef __AFC_H |
diff --git a/src/debugserver.c b/src/debugserver.c index 0aec260..41546dd 100644 --- a/src/debugserver.c +++ b/src/debugserver.c | |||
| @@ -1,19 +1,19 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * debugserver.c | 2 | * debugserver.c |
| 3 | * com.apple.debugserver service implementation. | 3 | * com.apple.debugserver service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
diff --git a/src/debugserver.h b/src/debugserver.h index 8608167..05cd97b 100644 --- a/src/debugserver.h +++ b/src/debugserver.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * debugserver.h | 2 | * debugserver.h |
| 3 | * com.apple.debugserver service header file. | 3 | * com.apple.debugserver service header file. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2014 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef _DEBUGSERVER_H | 22 | #ifndef _DEBUGSERVER_H |
diff --git a/src/device_link_service.c b/src/device_link_service.c index e9ca5f6..007223e 100644 --- a/src/device_link_service.c +++ b/src/device_link_service.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * device_link_service.c | 2 | * device_link_service.c |
| 3 | * DeviceLink service implementation. | 3 | * DeviceLink service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #include <string.h> | 21 | #include <string.h> |
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| @@ -149,7 +149,7 @@ device_link_service_error_t device_link_service_version_exchange(device_link_ser | |||
| 149 | { | 149 | { |
| 150 | if (!client) | 150 | if (!client) |
| 151 | return DEVICE_LINK_SERVICE_E_INVALID_ARG; | 151 | return DEVICE_LINK_SERVICE_E_INVALID_ARG; |
| 152 | 152 | ||
| 153 | device_link_service_error_t err = DEVICE_LINK_SERVICE_E_UNKNOWN_ERROR; | 153 | device_link_service_error_t err = DEVICE_LINK_SERVICE_E_UNKNOWN_ERROR; |
| 154 | 154 | ||
| 155 | /* perform version exchange */ | 155 | /* perform version exchange */ |
| @@ -240,7 +240,7 @@ leave: | |||
| 240 | * | 240 | * |
| 241 | * @param client The device link service client to disconnect. | 241 | * @param client The device link service client to disconnect. |
| 242 | * @param message Optional message to send send to the device or NULL. | 242 | * @param message Optional message to send send to the device or NULL. |
| 243 | * | 243 | * |
| 244 | * @return DEVICE_LINK_SERVICE_E_SUCCESS on success, | 244 | * @return DEVICE_LINK_SERVICE_E_SUCCESS on success, |
| 245 | * DEVICE_LINK_SERVICE_E_INVALID_ARG if client is NULL, | 245 | * DEVICE_LINK_SERVICE_E_INVALID_ARG if client is NULL, |
| 246 | * or DEVICE_LINK_SERVICE_E_MUX_ERROR when there's an error when sending | 246 | * or DEVICE_LINK_SERVICE_E_MUX_ERROR when there's an error when sending |
diff --git a/src/device_link_service.h b/src/device_link_service.h index 2469877..a0c8390 100644 --- a/src/device_link_service.h +++ b/src/device_link_service.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * device_link_service.h | 2 | * device_link_service.h |
| 3 | * Definitions for the DeviceLink service | 3 | * Definitions for the DeviceLink service |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __DEVICE_LINK_SERVICE_H | 22 | #ifndef __DEVICE_LINK_SERVICE_H |
diff --git a/src/diagnostics_relay.c b/src/diagnostics_relay.c index 825678a..f67c4df 100644 --- a/src/diagnostics_relay.c +++ b/src/diagnostics_relay.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * diagnostics_relay.c | 2 | * diagnostics_relay.c |
| 3 | * com.apple.mobile.diagnostics_relay service implementation. | 3 | * com.apple.mobile.diagnostics_relay service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2012 Martin Szulecki, All Rights Reserved. | 5 | * Copyright (c) 2012 Martin Szulecki, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #include <string.h> | 21 | #include <string.h> |
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
diff --git a/src/diagnostics_relay.h b/src/diagnostics_relay.h index eb1a21b..6d11ea1 100644 --- a/src/diagnostics_relay.h +++ b/src/diagnostics_relay.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * diagnostics_relay.h | 2 | * diagnostics_relay.h |
| 3 | * com.apple.mobile.diagnostics_relay service header file. | 3 | * com.apple.mobile.diagnostics_relay service header file. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2012 Martin Szulecki, All Rights Reserved. | 5 | * Copyright (c) 2012 Martin Szulecki, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __DIAGNOSTICS_RELAY_H | 22 | #ifndef __DIAGNOSTICS_RELAY_H |
diff --git a/src/file_relay.c b/src/file_relay.c index 64b04ad..5055556 100644 --- a/src/file_relay.c +++ b/src/file_relay.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * file_relay.c | 2 | * file_relay.c |
| 3 | * com.apple.mobile.file_relay service implementation. | 3 | * com.apple.mobile.file_relay service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #include <string.h> | 21 | #include <string.h> |
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| @@ -75,7 +75,7 @@ LIBIMOBILEDEVICE_API file_relay_error_t file_relay_request_sources_timeout(file_ | |||
| 75 | while (sources[i]) { | 75 | while (sources[i]) { |
| 76 | plist_array_append_item(array, plist_new_string(sources[i])); | 76 | plist_array_append_item(array, plist_new_string(sources[i])); |
| 77 | i++; | 77 | i++; |
| 78 | } | 78 | } |
| 79 | plist_t dict = plist_new_dict(); | 79 | plist_t dict = plist_new_dict(); |
| 80 | plist_dict_set_item(dict, "Sources", array); | 80 | plist_dict_set_item(dict, "Sources", array); |
| 81 | 81 | ||
diff --git a/src/file_relay.h b/src/file_relay.h index c476a38..626fab8 100644 --- a/src/file_relay.h +++ b/src/file_relay.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * file_relay.h | 2 | * file_relay.h |
| 3 | * com.apple.mobile.file_relay service header file. | 3 | * com.apple.mobile.file_relay service header file. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __FILE_RELAY_H | 22 | #ifndef __FILE_RELAY_H |
diff --git a/src/heartbeat.c b/src/heartbeat.c index a6e70ef..fe7e63a 100644 --- a/src/heartbeat.c +++ b/src/heartbeat.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * heartbeat.c | 2 | * heartbeat.c |
| 3 | * com.apple.mobile.heartbeat service implementation. | 3 | * com.apple.mobile.heartbeat service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifdef HAVE_CONFIG_H | 22 | #ifdef HAVE_CONFIG_H |
diff --git a/src/heartbeat.h b/src/heartbeat.h index 84e27fe..f648681 100644 --- a/src/heartbeat.h +++ b/src/heartbeat.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * heartbeat.h | 2 | * heartbeat.h |
| 3 | * com.apple.mobile.heartbeat service header file. | 3 | * com.apple.mobile.heartbeat service header file. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __HEARTBEAT_H | 22 | #ifndef __HEARTBEAT_H |
diff --git a/src/house_arrest.c b/src/house_arrest.c index b719d6f..135fc01 100644 --- a/src/house_arrest.c +++ b/src/house_arrest.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <string.h> | 22 | #include <string.h> |
diff --git a/src/house_arrest.h b/src/house_arrest.h index f050213..387594f 100644 --- a/src/house_arrest.h +++ b/src/house_arrest.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __HOUSE_ARREST_H | 22 | #ifndef __HOUSE_ARREST_H |
diff --git a/src/idevice.c b/src/idevice.c index c73c21b..ce27495 100644 --- a/src/idevice.c +++ b/src/idevice.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * idevice.c | 2 | * idevice.c |
| 3 | * Device discovery and communication interface. | 3 | * Device discovery and communication interface. |
| 4 | * | 4 | * |
| @@ -10,15 +10,15 @@ | |||
| 10 | * modify it under the terms of the GNU Lesser General Public | 10 | * modify it under the terms of the GNU Lesser General Public |
| 11 | * License as published by the Free Software Foundation; either | 11 | * License as published by the Free Software Foundation; either |
| 12 | * version 2.1 of the License, or (at your option) any later version. | 12 | * version 2.1 of the License, or (at your option) any later version. |
| 13 | * | 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, | 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | * Lesser General Public License for more details. | 17 | * Lesser General Public License for more details. |
| 18 | * | 18 | * |
| 19 | * You should have received a copy of the GNU Lesser General Public | 19 | * You should have received a copy of the GNU Lesser General Public |
| 20 | * License along with this library; if not, write to the Free Software | 20 | * License along with this library; if not, write to the Free Software |
| 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 22 | */ | 22 | */ |
| 23 | 23 | ||
| 24 | #ifdef HAVE_CONFIG_H | 24 | #ifdef HAVE_CONFIG_H |
| @@ -795,7 +795,7 @@ LIBIMOBILEDEVICE_API idevice_error_t idevice_connection_disable_ssl(idevice_conn | |||
| 795 | if (!connection) | 795 | if (!connection) |
| 796 | return IDEVICE_E_INVALID_ARG; | 796 | return IDEVICE_E_INVALID_ARG; |
| 797 | if (!connection->ssl_data) { | 797 | if (!connection->ssl_data) { |
| 798 | /* ignore if ssl is not enabled */ | 798 | /* ignore if ssl is not enabled */ |
| 799 | return IDEVICE_E_SUCCESS; | 799 | return IDEVICE_E_SUCCESS; |
| 800 | } | 800 | } |
| 801 | 801 | ||
diff --git a/src/idevice.h b/src/idevice.h index 08e24e6..1354cc0 100644 --- a/src/idevice.h +++ b/src/idevice.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __DEVICE_H | 22 | #ifndef __DEVICE_H |
diff --git a/src/installation_proxy.c b/src/installation_proxy.c index c60e6b5..e858e58 100644 --- a/src/installation_proxy.c +++ b/src/installation_proxy.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <string.h> | 23 | #include <string.h> |
| @@ -192,7 +192,7 @@ static void instproxy_lock(instproxy_client_t client) | |||
| 192 | 192 | ||
| 193 | /** | 193 | /** |
| 194 | * Unlocks an installation_proxy client, used for thread safety. | 194 | * Unlocks an installation_proxy client, used for thread safety. |
| 195 | * | 195 | * |
| 196 | * @param client The installation_proxy client to lock | 196 | * @param client The installation_proxy client to lock |
| 197 | */ | 197 | */ |
| 198 | static void instproxy_unlock(instproxy_client_t client) | 198 | static void instproxy_unlock(instproxy_client_t client) |
| @@ -502,7 +502,7 @@ static instproxy_error_t instproxy_receive_status_loop_with_callback(instproxy_c | |||
| 502 | * @param user_data Callback data passed to status_cb. | 502 | * @param user_data Callback data passed to status_cb. |
| 503 | * | 503 | * |
| 504 | * @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if | 504 | * @return INSTPROXY_E_SUCCESS on success or an INSTPROXY_E_* error value if |
| 505 | * an error occured. | 505 | * an error occured. |
| 506 | */ | 506 | */ |
| 507 | static instproxy_error_t instproxy_perform_command(instproxy_client_t client, plist_t command, instproxy_command_type_t async, instproxy_status_cb_t status_cb, void *user_data) | 507 | static instproxy_error_t instproxy_perform_command(instproxy_client_t client, plist_t command, instproxy_command_type_t async, instproxy_status_cb_t status_cb, void *user_data) |
| 508 | { | 508 | { |
diff --git a/src/installation_proxy.h b/src/installation_proxy.h index 15dbb84..bbc14ce 100644 --- a/src/installation_proxy.h +++ b/src/installation_proxy.h | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifndef __INSTALLATION_PROXY_H | 23 | #ifndef __INSTALLATION_PROXY_H |
diff --git a/src/lockdown.c b/src/lockdown.c index 12cefa5..d1296c9 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -734,7 +734,7 @@ LIBIMOBILEDEVICE_API lockdownd_error_t lockdownd_client_new_with_handshake(idevi | |||
| 734 | } | 734 | } |
| 735 | 735 | ||
| 736 | } | 736 | } |
| 737 | 737 | ||
| 738 | if (LOCKDOWN_E_SUCCESS == ret) { | 738 | if (LOCKDOWN_E_SUCCESS == ret) { |
| 739 | *client = client_loc; | 739 | *client = client_loc; |
| 740 | } else { | 740 | } else { |
diff --git a/src/misagent.c b/src/misagent.c index e00fb17..2dd3451 100644 --- a/src/misagent.c +++ b/src/misagent.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <string.h> | 22 | #include <string.h> |
diff --git a/src/misagent.h b/src/misagent.h index b5035f1..08ad063 100644 --- a/src/misagent.h +++ b/src/misagent.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __MISAGENT_H | 22 | #ifndef __MISAGENT_H |
diff --git a/src/mobile_image_mounter.c b/src/mobile_image_mounter.c index 9696b8c..c8c4c6f 100644 --- a/src/mobile_image_mounter.c +++ b/src/mobile_image_mounter.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <string.h> | 22 | #include <string.h> |
| @@ -40,7 +40,7 @@ static void mobile_image_mounter_lock(mobile_image_mounter_client_t client) | |||
| 40 | 40 | ||
| 41 | /** | 41 | /** |
| 42 | * Unlocks a mobile_image_mounter client, used for thread safety. | 42 | * Unlocks a mobile_image_mounter client, used for thread safety. |
| 43 | * | 43 | * |
| 44 | * @param client mobile_image_mounter client to unlock | 44 | * @param client mobile_image_mounter client to unlock |
| 45 | */ | 45 | */ |
| 46 | static void mobile_image_mounter_unlock(mobile_image_mounter_client_t client) | 46 | static void mobile_image_mounter_unlock(mobile_image_mounter_client_t client) |
| @@ -231,7 +231,7 @@ LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_upload_im | |||
| 231 | plist_get_string_val(node, &strval); | 231 | plist_get_string_val(node, &strval); |
| 232 | } | 232 | } |
| 233 | if (!strval) { | 233 | if (!strval) { |
| 234 | debug_info("Error: Unexpected response received!"); | 234 | debug_info("Error: Unexpected response received!"); |
| 235 | goto leave_unlock; | 235 | goto leave_unlock; |
| 236 | } | 236 | } |
| 237 | if (strcmp(strval, "Complete") != 0) { | 237 | if (strcmp(strval, "Complete") != 0) { |
| @@ -242,7 +242,7 @@ LIBIMOBILEDEVICE_API mobile_image_mounter_error_t mobile_image_mounter_upload_im | |||
| 242 | res = MOBILE_IMAGE_MOUNTER_E_SUCCESS; | 242 | res = MOBILE_IMAGE_MOUNTER_E_SUCCESS; |
| 243 | } | 243 | } |
| 244 | free(strval); | 244 | free(strval); |
| 245 | 245 | ||
| 246 | 246 | ||
| 247 | leave_unlock: | 247 | leave_unlock: |
| 248 | mobile_image_mounter_unlock(client); | 248 | mobile_image_mounter_unlock(client); |
diff --git a/src/mobile_image_mounter.h b/src/mobile_image_mounter.h index 67cb589..e9754e4 100644 --- a/src/mobile_image_mounter.h +++ b/src/mobile_image_mounter.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __MOBILE_IMAGE_MOUNTER_H | 22 | #ifndef __MOBILE_IMAGE_MOUNTER_H |
diff --git a/src/mobilebackup.c b/src/mobilebackup.c index eefaef3..b32e0ba 100644 --- a/src/mobilebackup.c +++ b/src/mobilebackup.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * mobilebackup.c | 2 | * mobilebackup.c |
| 3 | * Contains functions for the built-in MobileBackup client. | 3 | * Contains functions for the built-in MobileBackup client. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2009 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2009 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <plist/plist.h> | 22 | #include <plist/plist.h> |
diff --git a/src/mobilebackup.h b/src/mobilebackup.h index a373105..19b9999 100644 --- a/src/mobilebackup.h +++ b/src/mobilebackup.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * mobilebackup.h | 2 | * mobilebackup.h |
| 3 | * Definitions for the mobilebackup service | 3 | * Definitions for the mobilebackup service |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2009 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2009 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __MOBILEBACKUP_H | 22 | #ifndef __MOBILEBACKUP_H |
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c index 38b4069..08ce22b 100644 --- a/src/mobilebackup2.c +++ b/src/mobilebackup2.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * mobilebackup2.c | 2 | * mobilebackup2.c |
| 3 | * Contains functions for the built-in MobileBackup2 client (iOS4+ only) | 3 | * Contains functions for the built-in MobileBackup2 client (iOS4+ only) |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <plist/plist.h> | 22 | #include <plist/plist.h> |
diff --git a/src/mobilebackup2.h b/src/mobilebackup2.h index 66d4a42..4dba22a 100644 --- a/src/mobilebackup2.h +++ b/src/mobilebackup2.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * mobilebackup2.h | 2 | * mobilebackup2.h |
| 3 | * Definitions for the mobilebackup2 service (iOS4+) | 3 | * Definitions for the mobilebackup2 service (iOS4+) |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __MOBILEBACKUP2_H | 22 | #ifndef __MOBILEBACKUP2_H |
diff --git a/src/mobilesync.c b/src/mobilesync.c index b07d536..06fb1c1 100644 --- a/src/mobilesync.c +++ b/src/mobilesync.c | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * mobilesync.c | 2 | * mobilesync.c |
| 3 | * Contains functions for the built-in MobileSync client. | 3 | * Contains functions for the built-in MobileSync client. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Bryan Forbes All Rights Reserved. | 5 | * Copyright (c) 2010 Bryan Forbes All Rights Reserved. |
| 6 | * Copyright (c) 2009 Jonathan Beck All Rights Reserved. | 6 | * Copyright (c) 2009 Jonathan Beck All Rights Reserved. |
| 7 | * | 7 | * |
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #define _GNU_SOURCE 1 | 23 | #define _GNU_SOURCE 1 |
| @@ -328,7 +328,7 @@ static mobilesync_error_t mobilesync_get_records(mobilesync_client_t client, con | |||
| 328 | msg = plist_new_array(); | 328 | msg = plist_new_array(); |
| 329 | plist_array_append_item(msg, plist_new_string(operation)); | 329 | plist_array_append_item(msg, plist_new_string(operation)); |
| 330 | plist_array_append_item(msg, plist_new_string(client->data_class)); | 330 | plist_array_append_item(msg, plist_new_string(client->data_class)); |
| 331 | 331 | ||
| 332 | err = mobilesync_send(client, msg); | 332 | err = mobilesync_send(client, msg); |
| 333 | 333 | ||
| 334 | if (msg) { | 334 | if (msg) { |
| @@ -710,7 +710,7 @@ LIBIMOBILEDEVICE_API mobilesync_error_t mobilesync_cancel(mobilesync_client_t cl | |||
| 710 | 710 | ||
| 711 | LIBIMOBILEDEVICE_API mobilesync_anchors_t mobilesync_anchors_new(const char *device_anchor, const char *computer_anchor) | 711 | LIBIMOBILEDEVICE_API mobilesync_anchors_t mobilesync_anchors_new(const char *device_anchor, const char *computer_anchor) |
| 712 | { | 712 | { |
| 713 | mobilesync_anchors_t anchors = (mobilesync_anchors_t) malloc(sizeof(mobilesync_anchors)); | 713 | mobilesync_anchors_t anchors = (mobilesync_anchors_t) malloc(sizeof(mobilesync_anchors)); |
| 714 | if (device_anchor != NULL) { | 714 | if (device_anchor != NULL) { |
| 715 | anchors->device_anchor = strdup(device_anchor); | 715 | anchors->device_anchor = strdup(device_anchor); |
| 716 | } else { | 716 | } else { |
diff --git a/src/mobilesync.h b/src/mobilesync.h index b0e7d4c..f672252 100644 --- a/src/mobilesync.h +++ b/src/mobilesync.h | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * mobilesync.h | 2 | * mobilesync.h |
| 3 | * Definitions for the built-in MobileSync client | 3 | * Definitions for the built-in MobileSync client |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Bryan Forbes All Rights Reserved. | 5 | * Copyright (c) 2010 Bryan Forbes All Rights Reserved. |
| 6 | * Copyright (c) 2009 Jonathan Beck All Rights Reserved. | 6 | * Copyright (c) 2009 Jonathan Beck All Rights Reserved. |
| 7 | * | 7 | * |
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifndef __MOBILESYNC_H | 23 | #ifndef __MOBILESYNC_H |
diff --git a/src/notification_proxy.c b/src/notification_proxy.c index b22448d..c0b216e 100644 --- a/src/notification_proxy.c +++ b/src/notification_proxy.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <string.h> | 22 | #include <string.h> |
| @@ -51,7 +51,7 @@ static void np_lock(np_client_t client) | |||
| 51 | 51 | ||
| 52 | /** | 52 | /** |
| 53 | * Unlocks a notification_proxy client, used for thread safety. | 53 | * Unlocks a notification_proxy client, used for thread safety. |
| 54 | * | 54 | * |
| 55 | * @param client notification_proxy client to unlock | 55 | * @param client notification_proxy client to unlock |
| 56 | */ | 56 | */ |
| 57 | static void np_unlock(np_client_t client) | 57 | static void np_unlock(np_client_t client) |
| @@ -260,7 +260,7 @@ static int np_get_notification(np_client_t client, char **notification) | |||
| 260 | debug_info("NotificationProxy: no notification received!"); | 260 | debug_info("NotificationProxy: no notification received!"); |
| 261 | res = 0; | 261 | res = 0; |
| 262 | } else if (perr != PROPERTY_LIST_SERVICE_E_SUCCESS) { | 262 | } else if (perr != PROPERTY_LIST_SERVICE_E_SUCCESS) { |
| 263 | debug_info("NotificationProxy: error %d occured!", perr); | 263 | debug_info("NotificationProxy: error %d occured!", perr); |
| 264 | res = perr; | 264 | res = perr; |
| 265 | } | 265 | } |
| 266 | if (dict) { | 266 | if (dict) { |
diff --git a/src/notification_proxy.h b/src/notification_proxy.h index c2ded6a..cc25a95 100644 --- a/src/notification_proxy.h +++ b/src/notification_proxy.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __NOTIFICATION_PROXY_H | 22 | #ifndef __NOTIFICATION_PROXY_H |
diff --git a/src/property_list_service.c b/src/property_list_service.c index 931c1ef..141fab7 100644 --- a/src/property_list_service.c +++ b/src/property_list_service.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * property_list_service.c | 2 | * property_list_service.c |
| 3 | * PropertyList service implementation. | 3 | * PropertyList service implementation. |
| 4 | * | 4 | * |
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #ifdef HAVE_CONFIG_H | 21 | #ifdef HAVE_CONFIG_H |
| 22 | #include <config.h> | 22 | #include <config.h> |
diff --git a/src/property_list_service.h b/src/property_list_service.h index 6775c7c..3c9e14d 100644 --- a/src/property_list_service.h +++ b/src/property_list_service.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * property_list_service.h | 2 | * property_list_service.h |
| 3 | * Definitions for the PropertyList service | 3 | * Definitions for the PropertyList service |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __PROPERTY_LIST_SERVICE_H | 22 | #ifndef __PROPERTY_LIST_SERVICE_H |
diff --git a/src/restore.c b/src/restore.c index 4d4823f..4b578c2 100644 --- a/src/restore.c +++ b/src/restore.c | |||
| @@ -93,7 +93,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_client_free(restored_client_t cli | |||
| 93 | { | 93 | { |
| 94 | if (!client) | 94 | if (!client) |
| 95 | return RESTORE_E_INVALID_ARG; | 95 | return RESTORE_E_INVALID_ARG; |
| 96 | 96 | ||
| 97 | restored_error_t ret = RESTORE_E_UNKNOWN_ERROR; | 97 | restored_error_t ret = RESTORE_E_UNKNOWN_ERROR; |
| 98 | 98 | ||
| 99 | if (client->parent) { | 99 | if (client->parent) { |
| @@ -110,7 +110,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_client_free(restored_client_t cli | |||
| 110 | if (client->label) { | 110 | if (client->label) { |
| 111 | free(client->label); | 111 | free(client->label); |
| 112 | } | 112 | } |
| 113 | 113 | ||
| 114 | if (client->info) { | 114 | if (client->info) { |
| 115 | plist_free(client->info); | 115 | plist_free(client->info); |
| 116 | } | 116 | } |
| @@ -133,7 +133,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_receive(restored_client_t client, | |||
| 133 | { | 133 | { |
| 134 | if (!client || !plist || (plist && *plist)) | 134 | if (!client || !plist || (plist && *plist)) |
| 135 | return RESTORE_E_INVALID_ARG; | 135 | return RESTORE_E_INVALID_ARG; |
| 136 | 136 | ||
| 137 | restored_error_t ret = RESTORE_E_SUCCESS; | 137 | restored_error_t ret = RESTORE_E_SUCCESS; |
| 138 | property_list_service_error_t err; | 138 | property_list_service_error_t err; |
| 139 | 139 | ||
| @@ -181,7 +181,7 @@ LIBIMOBILEDEVICE_API restored_error_t restored_query_type(restored_client_t clie | |||
| 181 | dict = NULL; | 181 | dict = NULL; |
| 182 | 182 | ||
| 183 | ret = restored_receive(client, &dict); | 183 | ret = restored_receive(client, &dict); |
| 184 | 184 | ||
| 185 | if (RESTORE_E_SUCCESS != ret) | 185 | if (RESTORE_E_SUCCESS != ret) |
| 186 | return ret; | 186 | return ret; |
| 187 | 187 | ||
| @@ -268,26 +268,26 @@ LIBIMOBILEDEVICE_API restored_error_t restored_get_value(restored_client_t clien | |||
| 268 | { | 268 | { |
| 269 | if (!client || !value || (value && *value)) | 269 | if (!client || !value || (value && *value)) |
| 270 | return RESTORE_E_INVALID_ARG; | 270 | return RESTORE_E_INVALID_ARG; |
| 271 | 271 | ||
| 272 | if (!client->info) | 272 | if (!client->info) |
| 273 | return RESTORE_E_NOT_ENOUGH_DATA; | 273 | return RESTORE_E_NOT_ENOUGH_DATA; |
| 274 | 274 | ||
| 275 | restored_error_t ret = RESTORE_E_SUCCESS; | 275 | restored_error_t ret = RESTORE_E_SUCCESS; |
| 276 | plist_t item = NULL; | 276 | plist_t item = NULL; |
| 277 | 277 | ||
| 278 | if (!key) { | 278 | if (!key) { |
| 279 | *value = plist_copy(client->info); | 279 | *value = plist_copy(client->info); |
| 280 | return RESTORE_E_SUCCESS; | 280 | return RESTORE_E_SUCCESS; |
| 281 | } else { | 281 | } else { |
| 282 | item = plist_dict_get_item(client->info, key); | 282 | item = plist_dict_get_item(client->info, key); |
| 283 | } | 283 | } |
| 284 | 284 | ||
| 285 | if (item) { | 285 | if (item) { |
| 286 | *value = plist_copy(item); | 286 | *value = plist_copy(item); |
| 287 | } else { | 287 | } else { |
| 288 | ret = RESTORE_E_PLIST_ERROR; | 288 | ret = RESTORE_E_PLIST_ERROR; |
| 289 | } | 289 | } |
| 290 | 290 | ||
| 291 | return ret; | 291 | return ret; |
| 292 | } | 292 | } |
| 293 | 293 | ||
diff --git a/src/sbservices.c b/src/sbservices.c index 798e38a..0591f4a 100644 --- a/src/sbservices.c +++ b/src/sbservices.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <string.h> | 22 | #include <string.h> |
| @@ -41,7 +41,7 @@ static void sbservices_lock(sbservices_client_t client) | |||
| 41 | 41 | ||
| 42 | /** | 42 | /** |
| 43 | * Unlocks an sbservices client, used for thread safety. | 43 | * Unlocks an sbservices client, used for thread safety. |
| 44 | * | 44 | * |
| 45 | * @param client sbservices client to unlock | 45 | * @param client sbservices client to unlock |
| 46 | */ | 46 | */ |
| 47 | static void sbservices_unlock(sbservices_client_t client) | 47 | static void sbservices_unlock(sbservices_client_t client) |
diff --git a/src/sbservices.h b/src/sbservices.h index ba64d67..6c047ce 100644 --- a/src/sbservices.h +++ b/src/sbservices.h | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __SBSERVICES_H | 22 | #ifndef __SBSERVICES_H |
diff --git a/src/screenshotr.c b/src/screenshotr.c index eed271e..5c4a53f 100644 --- a/src/screenshotr.c +++ b/src/screenshotr.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * screenshotr.c | 2 | * screenshotr.c |
| 3 | * com.apple.mobile.screenshotr service implementation. | 3 | * com.apple.mobile.screenshotr service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <plist/plist.h> | 22 | #include <plist/plist.h> |
diff --git a/src/screenshotr.h b/src/screenshotr.h index 2dadee8..47d4e42 100644 --- a/src/screenshotr.h +++ b/src/screenshotr.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * screenshotr.h | 2 | * screenshotr.h |
| 3 | * com.apple.mobile.screenshotr service header file. | 3 | * com.apple.mobile.screenshotr service header file. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. | 5 | * Copyright (c) 2010 Nikias Bassen All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __SCREENSHOTR_H | 22 | #ifndef __SCREENSHOTR_H |
diff --git a/src/service.c b/src/service.c index 48959b6..2dc42b2 100644 --- a/src/service.c +++ b/src/service.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * service.c | 2 | * service.c |
| 3 | * generic service implementation. | 3 | * generic service implementation. |
| 4 | * | 4 | * |
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #ifdef HAVE_CONFIG_H | 21 | #ifdef HAVE_CONFIG_H |
| 22 | #include <config.h> | 22 | #include <config.h> |
| @@ -148,7 +148,7 @@ LIBIMOBILEDEVICE_API service_error_t service_send(service_client_t client, const | |||
| 148 | 148 | ||
| 149 | return res; | 149 | return res; |
| 150 | } | 150 | } |
| 151 | 151 | ||
| 152 | LIBIMOBILEDEVICE_API service_error_t service_receive_with_timeout(service_client_t client, char* data, uint32_t size, uint32_t *received, unsigned int timeout) | 152 | LIBIMOBILEDEVICE_API service_error_t service_receive_with_timeout(service_client_t client, char* data, uint32_t size, uint32_t *received, unsigned int timeout) |
| 153 | { | 153 | { |
| 154 | service_error_t res = SERVICE_E_UNKNOWN_ERROR; | 154 | service_error_t res = SERVICE_E_UNKNOWN_ERROR; |
diff --git a/src/service.h b/src/service.h index 512f9e2..3fc3077 100644 --- a/src/service.h +++ b/src/service.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * service.h | 2 | * service.h |
| 3 | * Definitions for the generic service implementation | 3 | * Definitions for the generic service implementation |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2013 Nikias Bassen, All Rights Reserved. | 5 | * Copyright (c) 2013 Nikias Bassen, All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | #ifndef SERVICE_H | 21 | #ifndef SERVICE_H |
| 22 | #define SERVICE_H | 22 | #define SERVICE_H |
diff --git a/src/syslog_relay.c b/src/syslog_relay.c index 5ef64cd..29f4de5 100644 --- a/src/syslog_relay.c +++ b/src/syslog_relay.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * syslog_relay.c | 2 | * syslog_relay.c |
| 3 | * com.apple.syslog_relay service implementation. | 3 | * com.apple.syslog_relay service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifdef HAVE_CONFIG_H | 22 | #ifdef HAVE_CONFIG_H |
diff --git a/src/syslog_relay.h b/src/syslog_relay.h index c6dcf32..cd45775 100644 --- a/src/syslog_relay.h +++ b/src/syslog_relay.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * syslog_relay.h | 2 | * syslog_relay.h |
| 3 | * com.apple.syslog_relay service header file. | 3 | * com.apple.syslog_relay service header file. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2013 Martin Szulecki All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef _SYSLOG_RELAY_H | 22 | #ifndef _SYSLOG_RELAY_H |
diff --git a/src/webinspector.c b/src/webinspector.c index de30cd1..c81f4c7 100644 --- a/src/webinspector.c +++ b/src/webinspector.c | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * webinspector.c | 2 | * webinspector.c |
| 3 | * com.apple.webinspector service implementation. | 3 | * com.apple.webinspector service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2013 Yury Melnichek All Rights Reserved. | 5 | * Copyright (c) 2013 Yury Melnichek All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifdef HAVE_CONFIG_H | 22 | #ifdef HAVE_CONFIG_H |
| @@ -123,7 +123,7 @@ LIBIMOBILEDEVICE_API webinspector_error_t webinspector_send(webinspector_client_ | |||
| 123 | return res; | 123 | return res; |
| 124 | } | 124 | } |
| 125 | 125 | ||
| 126 | do { | 126 | do { |
| 127 | /* determine if we need to send partial messages */ | 127 | /* determine if we need to send partial messages */ |
| 128 | if (packet_length < WEBINSPECTOR_PARTIAL_PACKET_CHUNK_SIZE) { | 128 | if (packet_length < WEBINSPECTOR_PARTIAL_PACKET_CHUNK_SIZE) { |
| 129 | is_final_message = 1; | 129 | is_final_message = 1; |
diff --git a/src/webinspector.h b/src/webinspector.h index 3c8e695..67421bc 100644 --- a/src/webinspector.h +++ b/src/webinspector.h | |||
| @@ -1,22 +1,22 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * webinspector.h | 2 | * webinspector.h |
| 3 | * com.apple.webinspector service header file. | 3 | * com.apple.webinspector service header file. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2013 Yury Melnichek All Rights Reserved. | 5 | * Copyright (c) 2013 Yury Melnichek All Rights Reserved. |
| 6 | * | 6 | * |
| 7 | * This library is free software; you can redistribute it and/or | 7 | * This library is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #ifndef __WEBINSPECTOR_H | 22 | #ifndef __WEBINSPECTOR_H |
diff --git a/tools/idevice_id.c b/tools/idevice_id.c index ebcdf6f..9629f8b 100644 --- a/tools/idevice_id.c +++ b/tools/idevice_id.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -32,7 +32,7 @@ | |||
| 32 | static void print_usage(int argc, char **argv) | 32 | static void print_usage(int argc, char **argv) |
| 33 | { | 33 | { |
| 34 | char *name = NULL; | 34 | char *name = NULL; |
| 35 | 35 | ||
| 36 | name = strrchr(argv[0], '/'); | 36 | name = strrchr(argv[0], '/'); |
| 37 | printf("Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0])); | 37 | printf("Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0])); |
| 38 | printf("Prints device name or a list of attached devices.\n\n"); | 38 | printf("Prints device name or a list of attached devices.\n\n"); |
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index 152721e..eefaa6f 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | 23 | #ifdef HAVE_CONFIG_H |
| @@ -511,13 +511,13 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 511 | 511 | ||
| 512 | char *version = NULL; | 512 | char *version = NULL; |
| 513 | node = plist_dict_get_item(metadata, "Version"); | 513 | node = plist_dict_get_item(metadata, "Version"); |
| 514 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { | 514 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { |
| 515 | plist_get_string_val(node, &version); | 515 | plist_get_string_val(node, &version); |
| 516 | } | 516 | } |
| 517 | 517 | ||
| 518 | char *destpath = NULL; | 518 | char *destpath = NULL; |
| 519 | node = plist_dict_get_item(metadata, "Path"); | 519 | node = plist_dict_get_item(metadata, "Path"); |
| 520 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { | 520 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { |
| 521 | plist_get_string_val(node, &destpath); | 521 | plist_get_string_val(node, &destpath); |
| 522 | } | 522 | } |
| 523 | 523 | ||
| @@ -529,7 +529,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 529 | 529 | ||
| 530 | char *domain = NULL; | 530 | char *domain = NULL; |
| 531 | node = plist_dict_get_item(metadata, "Domain"); | 531 | node = plist_dict_get_item(metadata, "Domain"); |
| 532 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { | 532 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { |
| 533 | plist_get_string_val(node, &domain); | 533 | plist_get_string_val(node, &domain); |
| 534 | } | 534 | } |
| 535 | 535 | ||
| @@ -547,7 +547,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 547 | snprintf (p, 3, "%02x", (unsigned char)fnhash[i] ); | 547 | snprintf (p, 3, "%02x", (unsigned char)fnhash[i] ); |
| 548 | } | 548 | } |
| 549 | if (strcmp(fnamehash, hash)) { | 549 | if (strcmp(fnamehash, hash)) { |
| 550 | printf("\r\n"); | 550 | printf("\r\n"); |
| 551 | printf("WARNING: filename hash does not match for entry '%s'\n", hash); | 551 | printf("WARNING: filename hash does not match for entry '%s'\n", hash); |
| 552 | } | 552 | } |
| 553 | 553 | ||
| @@ -940,7 +940,7 @@ int main(int argc, char *argv[]) | |||
| 940 | case CMD_BACKUP: | 940 | case CMD_BACKUP: |
| 941 | printf("Starting backup...\n"); | 941 | printf("Starting backup...\n"); |
| 942 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ | 942 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ |
| 943 | /* TODO: verify battery on AC enough battery remaining */ | 943 | /* TODO: verify battery on AC enough battery remaining */ |
| 944 | 944 | ||
| 945 | /* read the last Manifest.plist */ | 945 | /* read the last Manifest.plist */ |
| 946 | if (!is_full_backup) { | 946 | if (!is_full_backup) { |
| @@ -1026,7 +1026,7 @@ int main(int argc, char *argv[]) | |||
| 1026 | sleep(2); | 1026 | sleep(2); |
| 1027 | goto files_out; | 1027 | goto files_out; |
| 1028 | } | 1028 | } |
| 1029 | 1029 | ||
| 1030 | node = plist_array_get_item(message, 0); | 1030 | node = plist_array_get_item(message, 0); |
| 1031 | 1031 | ||
| 1032 | /* get out if we don't get a DLSendFile */ | 1032 | /* get out if we don't get a DLSendFile */ |
| @@ -1287,7 +1287,7 @@ files_out: | |||
| 1287 | } | 1287 | } |
| 1288 | free(auth_sig); | 1288 | free(auth_sig); |
| 1289 | } else if (auth_ver) { | 1289 | } else if (auth_ver) { |
| 1290 | printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver); | 1290 | printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver); |
| 1291 | } | 1291 | } |
| 1292 | plist_from_bin(bin, (uint32_t)binsize, &backup_data); | 1292 | plist_from_bin(bin, (uint32_t)binsize, &backup_data); |
| 1293 | free(bin); | 1293 | free(bin); |
| @@ -1434,7 +1434,7 @@ files_out: | |||
| 1434 | file_status = DEVICE_LINK_FILE_STATUS_LAST_HUNK; | 1434 | file_status = DEVICE_LINK_FILE_STATUS_LAST_HUNK; |
| 1435 | else | 1435 | else |
| 1436 | file_status = DEVICE_LINK_FILE_STATUS_HUNK; | 1436 | file_status = DEVICE_LINK_FILE_STATUS_HUNK; |
| 1437 | 1437 | ||
| 1438 | plist_dict_remove_item(file_info, "DLFileOffsetKey"); | 1438 | plist_dict_remove_item(file_info, "DLFileOffsetKey"); |
| 1439 | plist_dict_set_item(file_info, "DLFileOffsetKey", plist_new_uint(file_offset)); | 1439 | plist_dict_set_item(file_info, "DLFileOffsetKey", plist_new_uint(file_offset)); |
| 1440 | 1440 | ||
| @@ -1469,7 +1469,7 @@ files_out: | |||
| 1469 | printf("DONE\n"); | 1469 | printf("DONE\n"); |
| 1470 | 1470 | ||
| 1471 | plist_free(send_file_node); | 1471 | plist_free(send_file_node); |
| 1472 | 1472 | ||
| 1473 | if (file_status == DEVICE_LINK_FILE_STATUS_NONE) | 1473 | if (file_status == DEVICE_LINK_FILE_STATUS_NONE) |
| 1474 | break; | 1474 | break; |
| 1475 | 1475 | ||
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index abc0efa..ead4dba 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| @@ -142,7 +142,6 @@ static void mobilebackup_afc_get_file_contents(afc_client_t afc, const char *fil | |||
| 142 | uint32_t bread = 0; | 142 | uint32_t bread = 0; |
| 143 | afc_file_read(afc, f, buf+done, 65536, &bread); | 143 | afc_file_read(afc, f, buf+done, 65536, &bread); |
| 144 | if (bread > 0) { | 144 | if (bread > 0) { |
| 145 | |||
| 146 | } else { | 145 | } else { |
| 147 | break; | 146 | break; |
| 148 | } | 147 | } |
| @@ -172,7 +171,7 @@ static int mkdir_with_parents(const char *dir, int mode) | |||
| 172 | if (__mkdir(dir, mode) == 0) { | 171 | if (__mkdir(dir, mode) == 0) { |
| 173 | return 0; | 172 | return 0; |
| 174 | } else { | 173 | } else { |
| 175 | if (errno == EEXIST) return 0; | 174 | if (errno == EEXIST) return 0; |
| 176 | } | 175 | } |
| 177 | int res; | 176 | int res; |
| 178 | char *parent = strdup(dir); | 177 | char *parent = strdup(dir); |
| @@ -180,7 +179,7 @@ static int mkdir_with_parents(const char *dir, int mode) | |||
| 180 | if (parentdir) { | 179 | if (parentdir) { |
| 181 | res = mkdir_with_parents(parentdir, mode); | 180 | res = mkdir_with_parents(parentdir, mode); |
| 182 | } else { | 181 | } else { |
| 183 | res = -1; | 182 | res = -1; |
| 184 | } | 183 | } |
| 185 | free(parent); | 184 | free(parent); |
| 186 | if (res == 0) { | 185 | if (res == 0) { |
| @@ -590,7 +589,7 @@ leave: | |||
| 590 | } | 589 | } |
| 591 | char *errdesc = strerror(errcode); | 590 | char *errdesc = strerror(errcode); |
| 592 | mb2_multi_status_add_file_error(*errplist, path, errno_to_device_error(errcode), errdesc); | 591 | mb2_multi_status_add_file_error(*errplist, path, errno_to_device_error(errcode), errdesc); |
| 593 | 592 | ||
| 594 | length = strlen(errdesc); | 593 | length = strlen(errdesc); |
| 595 | nlen = htobe32(length+1); | 594 | nlen = htobe32(length+1); |
| 596 | memcpy(buf, &nlen, 4); | 595 | memcpy(buf, &nlen, 4); |
| @@ -616,7 +615,7 @@ leave_proto_err: | |||
| 616 | 615 | ||
| 617 | static void mb2_handle_send_files(mobilebackup2_client_t mobilebackup2, plist_t message, const char *backup_dir) | 616 | static void mb2_handle_send_files(mobilebackup2_client_t mobilebackup2, plist_t message, const char *backup_dir) |
| 618 | { | 617 | { |
| 619 | uint32_t cnt; | 618 | uint32_t cnt; |
| 620 | uint32_t i = 0; | 619 | uint32_t i = 0; |
| 621 | uint32_t sent; | 620 | uint32_t sent; |
| 622 | plist_t errplist = NULL; | 621 | plist_t errplist = NULL; |
| @@ -1077,15 +1076,15 @@ static void get_hidden_input(char *buf, int maxlen) | |||
| 1077 | static char* ask_for_password(const char* msg, int type_again) | 1076 | static char* ask_for_password(const char* msg, int type_again) |
| 1078 | { | 1077 | { |
| 1079 | char pwbuf[256]; | 1078 | char pwbuf[256]; |
| 1080 | 1079 | ||
| 1081 | fprintf(stderr, "%s: ", msg); | 1080 | fprintf(stderr, "%s: ", msg); |
| 1082 | fflush(stderr); | 1081 | fflush(stderr); |
| 1083 | get_hidden_input(pwbuf, 256); | 1082 | get_hidden_input(pwbuf, 256); |
| 1084 | fputc('\n', stderr); | 1083 | fputc('\n', stderr); |
| 1085 | 1084 | ||
| 1086 | if (type_again) { | 1085 | if (type_again) { |
| 1087 | char pwrep[256]; | 1086 | char pwrep[256]; |
| 1088 | 1087 | ||
| 1089 | fprintf(stderr, "%s (repeat): ", msg); | 1088 | fprintf(stderr, "%s (repeat): ", msg); |
| 1090 | fflush(stderr); | 1089 | fflush(stderr); |
| 1091 | get_hidden_input(pwrep, 256); | 1090 | get_hidden_input(pwrep, 256); |
| @@ -1168,7 +1167,7 @@ int main(int argc, char *argv[]) | |||
| 1168 | /* we need to exit cleanly on running backups and restores or we cause havok */ | 1167 | /* we need to exit cleanly on running backups and restores or we cause havok */ |
| 1169 | signal(SIGINT, clean_exit); | 1168 | signal(SIGINT, clean_exit); |
| 1170 | signal(SIGTERM, clean_exit); | 1169 | signal(SIGTERM, clean_exit); |
| 1171 | #ifndef WIN32 | 1170 | #ifndef WIN32 |
| 1172 | signal(SIGQUIT, clean_exit); | 1171 | signal(SIGQUIT, clean_exit); |
| 1173 | signal(SIGPIPE, SIG_IGN); | 1172 | signal(SIGPIPE, SIG_IGN); |
| 1174 | #endif | 1173 | #endif |
| @@ -1274,7 +1273,7 @@ int main(int argc, char *argv[]) | |||
| 1274 | if (!argv[i]) { | 1273 | if (!argv[i]) { |
| 1275 | printf("No argument given for encryption command; requires either 'on' or 'off'.\n"); | 1274 | printf("No argument given for encryption command; requires either 'on' or 'off'.\n"); |
| 1276 | print_usage(argc, argv); | 1275 | print_usage(argc, argv); |
| 1277 | return -1; | 1276 | return -1; |
| 1278 | } | 1277 | } |
| 1279 | if (!strcmp(argv[i], "on")) { | 1278 | if (!strcmp(argv[i], "on")) { |
| 1280 | cmd_flags |= CMD_FLAG_ENCRYPTION_ENABLE; | 1279 | cmd_flags |= CMD_FLAG_ENCRYPTION_ENABLE; |
| @@ -1291,7 +1290,7 @@ int main(int argc, char *argv[]) | |||
| 1291 | if (backup_password) { | 1290 | if (backup_password) { |
| 1292 | free(backup_password); | 1291 | free(backup_password); |
| 1293 | backup_password = NULL; | 1292 | backup_password = NULL; |
| 1294 | } | 1293 | } |
| 1295 | i++; | 1294 | i++; |
| 1296 | if (argv[i]) { | 1295 | if (argv[i]) { |
| 1297 | if (cmd_flags & CMD_FLAG_ENCRYPTION_ENABLE) { | 1296 | if (cmd_flags & CMD_FLAG_ENCRYPTION_ENABLE) { |
| @@ -1304,7 +1303,7 @@ int main(int argc, char *argv[]) | |||
| 1304 | } | 1303 | } |
| 1305 | else if (!strcmp(argv[i], "changepw")) { | 1304 | else if (!strcmp(argv[i], "changepw")) { |
| 1306 | cmd = CMD_CHANGEPW; | 1305 | cmd = CMD_CHANGEPW; |
| 1307 | cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW; | 1306 | cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW; |
| 1308 | // check if passwords were given on command line | 1307 | // check if passwords were given on command line |
| 1309 | if (newpw) { | 1308 | if (newpw) { |
| 1310 | free(newpw); | 1309 | free(newpw); |
| @@ -1313,7 +1312,7 @@ int main(int argc, char *argv[]) | |||
| 1313 | if (backup_password) { | 1312 | if (backup_password) { |
| 1314 | free(backup_password); | 1313 | free(backup_password); |
| 1315 | backup_password = NULL; | 1314 | backup_password = NULL; |
| 1316 | } | 1315 | } |
| 1317 | i++; | 1316 | i++; |
| 1318 | if (argv[i]) { | 1317 | if (argv[i]) { |
| 1319 | backup_password = strdup(argv[i]); | 1318 | backup_password = strdup(argv[i]); |
| @@ -1382,7 +1381,7 @@ int main(int argc, char *argv[]) | |||
| 1382 | } | 1381 | } |
| 1383 | 1382 | ||
| 1384 | uint8_t is_encrypted = 0; | 1383 | uint8_t is_encrypted = 0; |
| 1385 | char *info_path = NULL; | 1384 | char *info_path = NULL; |
| 1386 | if (cmd == CMD_CHANGEPW) { | 1385 | if (cmd == CMD_CHANGEPW) { |
| 1387 | if (!interactive_mode && !backup_password && !newpw) { | 1386 | if (!interactive_mode && !backup_password && !newpw) { |
| 1388 | idevice_free(device); | 1387 | idevice_free(device); |
| @@ -1609,7 +1608,7 @@ checkpoint: | |||
| 1609 | } | 1608 | } |
| 1610 | 1609 | ||
| 1611 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ | 1610 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ |
| 1612 | /* TODO: verify battery on AC enough battery remaining */ | 1611 | /* TODO: verify battery on AC enough battery remaining */ |
| 1613 | 1612 | ||
| 1614 | /* re-create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */ | 1613 | /* re-create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */ |
| 1615 | if (info_plist) { | 1614 | if (info_plist) { |
| @@ -1776,7 +1775,7 @@ checkpoint: | |||
| 1776 | if (newpw) { | 1775 | if (newpw) { |
| 1777 | free(newpw); | 1776 | free(newpw); |
| 1778 | newpw = NULL; | 1777 | newpw = NULL; |
| 1779 | } | 1778 | } |
| 1780 | if (backup_password) { | 1779 | if (backup_password) { |
| 1781 | free(backup_password); | 1780 | free(backup_password); |
| 1782 | backup_password = NULL; | 1781 | backup_password = NULL; |
| @@ -2057,7 +2056,6 @@ checkpoint: | |||
| 2057 | printf("%s", str); | 2056 | printf("%s", str); |
| 2058 | free(str); | 2057 | free(str); |
| 2059 | } | 2058 | } |
| 2060 | |||
| 2061 | break; | 2059 | break; |
| 2062 | } | 2060 | } |
| 2063 | 2061 | ||
| @@ -2134,7 +2132,7 @@ files_out: | |||
| 2134 | } | 2132 | } |
| 2135 | } else if (cmd_flags & CMD_FLAG_ENCRYPTION_DISABLE) { | 2133 | } else if (cmd_flags & CMD_FLAG_ENCRYPTION_DISABLE) { |
| 2136 | if (operation_ok) { | 2134 | if (operation_ok) { |
| 2137 | PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n"); | 2135 | PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n"); |
| 2138 | } else { | 2136 | } else { |
| 2139 | PRINT_VERBOSE(1, "Could not disable backup encryption.\n"); | 2137 | PRINT_VERBOSE(1, "Could not disable backup encryption.\n"); |
| 2140 | } | 2138 | } |
| @@ -2154,7 +2152,6 @@ files_out: | |||
| 2154 | } else { | 2152 | } else { |
| 2155 | PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code); | 2153 | PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code); |
| 2156 | } | 2154 | } |
| 2157 | |||
| 2158 | break; | 2155 | break; |
| 2159 | case CMD_INFO: | 2156 | case CMD_INFO: |
| 2160 | case CMD_LIST: | 2157 | case CMD_LIST: |
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c index b6384a9..b74a660 100644 --- a/tools/idevicecrashreport.c +++ b/tools/idevicecrashreport.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
diff --git a/tools/idevicedate.c b/tools/idevicedate.c index 27906f3..f6bed7a 100644 --- a/tools/idevicedate.c +++ b/tools/idevicedate.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -39,7 +39,7 @@ | |||
| 39 | static void print_usage(int argc, char **argv) | 39 | static void print_usage(int argc, char **argv) |
| 40 | { | 40 | { |
| 41 | char *name = NULL; | 41 | char *name = NULL; |
| 42 | 42 | ||
| 43 | name = strrchr(argv[0], '/'); | 43 | name = strrchr(argv[0], '/'); |
| 44 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 44 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 45 | printf("Display the current date or set it on a device.\n\n"); | 45 | printf("Display the current date or set it on a device.\n\n"); |
diff --git a/tools/idevicedebugserverproxy.c b/tools/idevicedebugserverproxy.c index 75061fb..28bba5e 100644 --- a/tools/idevicedebugserverproxy.c +++ b/tools/idevicedebugserverproxy.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicediagnostics.c b/tools/idevicediagnostics.c index 309aa95..992bc0a 100644 --- a/tools/idevicediagnostics.c +++ b/tools/idevicediagnostics.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -166,7 +166,7 @@ int main(int argc, char **argv) | |||
| 166 | 166 | ||
| 167 | if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) { | 167 | if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) { |
| 168 | if (udid) { | 168 | if (udid) { |
| 169 | printf("No device found with udid %s, is it plugged in?\n", udid); | 169 | printf("No device found with udid %s, is it plugged in?\n", udid); |
| 170 | } else { | 170 | } else { |
| 171 | printf("No device found, is it plugged in?\n"); | 171 | printf("No device found, is it plugged in?\n"); |
| 172 | } | 172 | } |
diff --git a/tools/ideviceenterrecovery.c b/tools/ideviceenterrecovery.c index 3048176..3069be8 100644 --- a/tools/ideviceenterrecovery.c +++ b/tools/ideviceenterrecovery.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -30,7 +30,7 @@ | |||
| 30 | static void print_usage(int argc, char **argv) | 30 | static void print_usage(int argc, char **argv) |
| 31 | { | 31 | { |
| 32 | char *name = NULL; | 32 | char *name = NULL; |
| 33 | 33 | ||
| 34 | name = strrchr(argv[0], '/'); | 34 | name = strrchr(argv[0], '/'); |
| 35 | printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0])); | 35 | printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0])); |
| 36 | printf("Makes a device with the supplied 40-digit UDID enter recovery mode immediately.\n\n"); | 36 | printf("Makes a device with the supplied 40-digit UDID enter recovery mode immediately.\n\n"); |
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c index 27f699f..a0f4b83 100644 --- a/tools/ideviceimagemounter.c +++ b/tools/ideviceimagemounter.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| @@ -205,7 +205,7 @@ int main(int argc, char **argv) | |||
| 205 | if (mobile_image_mounter_new(device, service, &mim) != MOBILE_IMAGE_MOUNTER_E_SUCCESS) { | 205 | if (mobile_image_mounter_new(device, service, &mim) != MOBILE_IMAGE_MOUNTER_E_SUCCESS) { |
| 206 | printf("ERROR: Could not connect to mobile_image_mounter!\n"); | 206 | printf("ERROR: Could not connect to mobile_image_mounter!\n"); |
| 207 | goto leave; | 207 | goto leave; |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | if (service) { | 210 | if (service) { |
| 211 | lockdownd_service_descriptor_free(service); | 211 | lockdownd_service_descriptor_free(service); |
diff --git a/tools/ideviceinfo.c b/tools/ideviceinfo.c index 41881e6..641a036 100644 --- a/tools/ideviceinfo.c +++ b/tools/ideviceinfo.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -35,7 +35,7 @@ static const char *domains[] = { | |||
| 35 | "com.apple.disk_usage", | 35 | "com.apple.disk_usage", |
| 36 | "com.apple.disk_usage.factory", | 36 | "com.apple.disk_usage.factory", |
| 37 | "com.apple.mobile.battery", | 37 | "com.apple.mobile.battery", |
| 38 | /* FIXME: For some reason lockdownd segfaults on this, works sometimes though | 38 | /* FIXME: For some reason lockdownd segfaults on this, works sometimes though |
| 39 | "com.apple.mobile.debug",. */ | 39 | "com.apple.mobile.debug",. */ |
| 40 | "com.apple.iqagent", | 40 | "com.apple.iqagent", |
| 41 | "com.apple.purplebuddy", | 41 | "com.apple.purplebuddy", |
| @@ -81,7 +81,7 @@ static void print_usage(int argc, char **argv) | |||
| 81 | { | 81 | { |
| 82 | int i = 0; | 82 | int i = 0; |
| 83 | char *name = NULL; | 83 | char *name = NULL; |
| 84 | 84 | ||
| 85 | name = strrchr(argv[0], '/'); | 85 | name = strrchr(argv[0], '/'); |
| 86 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 86 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 87 | printf("Show information about a connected device.\n\n"); | 87 | printf("Show information about a connected device.\n\n"); |
diff --git a/tools/idevicename.c b/tools/idevicename.c index 4214600..b5b9e62 100644 --- a/tools/idevicename.c +++ b/tools/idevicename.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicenotificationproxy.c b/tools/idevicenotificationproxy.c index 24976b9..ff18eca 100644 --- a/tools/idevicenotificationproxy.c +++ b/tools/idevicenotificationproxy.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicepair.c b/tools/idevicepair.c index 5604fc3..237b168 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| @@ -55,7 +55,7 @@ static void print_error_message(lockdownd_error_t err) | |||
| 55 | static void print_usage(int argc, char **argv) | 55 | static void print_usage(int argc, char **argv) |
| 56 | { | 56 | { |
| 57 | char *name = NULL; | 57 | char *name = NULL; |
| 58 | 58 | ||
| 59 | name = strrchr(argv[0], '/'); | 59 | name = strrchr(argv[0], '/'); |
| 60 | printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0])); | 60 | printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0])); |
| 61 | printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0])); | 61 | printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0])); |
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c index b9f2a02..9517af8 100644 --- a/tools/ideviceprovision.c +++ b/tools/ideviceprovision.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| @@ -37,7 +37,7 @@ | |||
| 37 | static void print_usage(int argc, char **argv) | 37 | static void print_usage(int argc, char **argv) |
| 38 | { | 38 | { |
| 39 | char *name = NULL; | 39 | char *name = NULL; |
| 40 | 40 | ||
| 41 | name = strrchr(argv[0], '/'); | 41 | name = strrchr(argv[0], '/'); |
| 42 | printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); | 42 | printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); |
| 43 | printf("Manage provisioning profiles on a device.\n\n"); | 43 | printf("Manage provisioning profiles on a device.\n\n"); |
| @@ -411,7 +411,7 @@ int main(int argc, char *argv[]) | |||
| 411 | case OP_INSTALL: | 411 | case OP_INSTALL: |
| 412 | { | 412 | { |
| 413 | unsigned char* profile_data = NULL; | 413 | unsigned char* profile_data = NULL; |
| 414 | unsigned int profile_size = 0; | 414 | unsigned int profile_size = 0; |
| 415 | if (profile_read_from_file(param, &profile_data, &profile_size) != 0) { | 415 | if (profile_read_from_file(param, &profile_data, &profile_size) != 0) { |
| 416 | break; | 416 | break; |
| 417 | } | 417 | } |
diff --git a/tools/idevicescreenshot.c b/tools/idevicescreenshot.c index b01cafd..bff502c 100644 --- a/tools/idevicescreenshot.c +++ b/tools/idevicescreenshot.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 23f74ab..4bc4b45 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -187,7 +187,7 @@ int main(int argc, char *argv[]) | |||
| 187 | } | 187 | } |
| 188 | idevice_event_unsubscribe(); | 188 | idevice_event_unsubscribe(); |
| 189 | stop_logging(); | 189 | stop_logging(); |
| 190 | 190 | ||
| 191 | if (udid) { | 191 | if (udid) { |
| 192 | free(udid); | 192 | free(udid); |
| 193 | } | 193 | } |
| @@ -198,7 +198,7 @@ int main(int argc, char *argv[]) | |||
| 198 | void print_usage(int argc, char **argv) | 198 | void print_usage(int argc, char **argv) |
| 199 | { | 199 | { |
| 200 | char *name = NULL; | 200 | char *name = NULL; |
| 201 | 201 | ||
| 202 | name = strrchr(argv[0], '/'); | 202 | name = strrchr(argv[0], '/'); |
| 203 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 203 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 204 | printf("Relay syslog of a connected device.\n\n"); | 204 | printf("Relay syslog of a connected device.\n\n"); |
