diff options
author | Nikias Bassen | 2011-09-03 02:10:48 +0200 |
---|---|---|
committer | Martin Szulecki | 2012-03-18 20:40:54 +0100 |
commit | dcb85727c3649c254c985d840aa2efb36f727872 (patch) | |
tree | 0f6f551b70bd845f57d5a044915e617a1bd40ac6 /src/afc.h | |
parent | 6a83ef58a1032e3b336587e2f3a19659ae325c25 (diff) | |
download | libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.gz libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.bz2 |
Completely remove glib dependency.
Diffstat (limited to 'src/afc.h')
-rw-r--r-- | src/afc.h | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -33,16 +33,16 @@ typedef struct { } AFCPacket; #define AFCPacket_to_LE(x) \ - (x)->entire_length = GUINT64_TO_LE((x)->entire_length); \ - (x)->this_length = GUINT64_TO_LE((x)->this_length); \ - (x)->packet_num = GUINT64_TO_LE((x)->packet_num); \ - (x)->operation = GUINT64_TO_LE((x)->operation); + (x)->entire_length = htole64((x)->entire_length); \ + (x)->this_length = htole64((x)->this_length); \ + (x)->packet_num = htole64((x)->packet_num); \ + (x)->operation = htole64((x)->operation); #define AFCPacket_from_LE(x) \ - (x)->entire_length = GUINT64_FROM_LE((x)->entire_length); \ - (x)->this_length = GUINT64_FROM_LE((x)->this_length); \ - (x)->packet_num = GUINT64_FROM_LE((x)->packet_num); \ - (x)->operation = GUINT64_FROM_LE((x)->operation); + (x)->entire_length = le64toh((x)->entire_length); \ + (x)->this_length = le64toh((x)->this_length); \ + (x)->packet_num = le64toh((x)->packet_num); \ + (x)->operation = le64toh((x)->operation); typedef struct { uint64_t filehandle, size; |