summaryrefslogtreecommitdiffstats
path: root/src/afc.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-09-03 02:10:48 +0200
committerGravatar Martin Szulecki2012-03-18 20:40:54 +0100
commitdcb85727c3649c254c985d840aa2efb36f727872 (patch)
tree0f6f551b70bd845f57d5a044915e617a1bd40ac6 /src/afc.h
parent6a83ef58a1032e3b336587e2f3a19659ae325c25 (diff)
downloadlibimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.gz
libimobiledevice-dcb85727c3649c254c985d840aa2efb36f727872.tar.bz2
Completely remove glib dependency.
Diffstat (limited to 'src/afc.h')
-rw-r--r--src/afc.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/afc.h b/src/afc.h
index 79078ec..c86828c 100644
--- a/src/afc.h
+++ b/src/afc.h
@@ -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;