diff options
| author | 2011-09-03 02:10:48 +0200 | |
|---|---|---|
| committer | 2012-03-18 20:40:54 +0100 | |
| commit | dcb85727c3649c254c985d840aa2efb36f727872 (patch) | |
| tree | 0f6f551b70bd845f57d5a044915e617a1bd40ac6 /dev/ideviceclient.c | |
| parent | 6a83ef58a1032e3b336587e2f3a19659ae325c25 (diff) | |
| download | libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.gz libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.bz2 | |
Completely remove glib dependency.
Diffstat (limited to 'dev/ideviceclient.c')
| -rw-r--r-- | dev/ideviceclient.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/ideviceclient.c b/dev/ideviceclient.c index d952594..0400fed 100644 --- a/dev/ideviceclient.c +++ b/dev/ideviceclient.c | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 24 | #include <string.h> | 24 | #include <string.h> |
| 25 | #include <errno.h> | 25 | #include <errno.h> |
| 26 | #include <glib.h> | ||
| 27 | 26 | ||
| 28 | #include <libimobiledevice/libimobiledevice.h> | 27 | #include <libimobiledevice/libimobiledevice.h> |
| 29 | #include <libimobiledevice/lockdown.h> | 28 | #include <libimobiledevice/lockdown.h> |
| @@ -138,18 +137,20 @@ int main(int argc, char *argv[]) | |||
| 138 | printf("Directory time.\n"); | 137 | printf("Directory time.\n"); |
| 139 | for (i = 0; dirs[i]; i++) { | 138 | for (i = 0; dirs[i]; i++) { |
| 140 | printf("/%s\n", dirs[i]); | 139 | printf("/%s\n", dirs[i]); |
| 140 | free(dirs[i]); | ||
| 141 | } | 141 | } |
| 142 | 142 | if (dirs) | |
| 143 | g_strfreev(dirs); | 143 | free(dirs); |
| 144 | 144 | ||
| 145 | dirs = NULL; | 145 | dirs = NULL; |
| 146 | afc_get_device_info(afc, &dirs); | 146 | afc_get_device_info(afc, &dirs); |
| 147 | if (dirs) { | 147 | if (dirs) { |
| 148 | for (i = 0; dirs[i]; i += 2) { | 148 | for (i = 0; dirs[i]; i += 2) { |
| 149 | printf("%s: %s\n", dirs[i], dirs[i + 1]); | 149 | printf("%s: %s\n", dirs[i], dirs[i + 1]); |
| 150 | free(dirs[i]); | ||
| 150 | } | 151 | } |
| 152 | free(dirs); | ||
| 151 | } | 153 | } |
| 152 | g_strfreev(dirs); | ||
| 153 | 154 | ||
| 154 | uint64_t my_file = 0; | 155 | uint64_t my_file = 0; |
| 155 | char **info = NULL; | 156 | char **info = NULL; |
