diff options
| author | 2009-12-10 18:40:08 +0100 | |
|---|---|---|
| committer | 2009-12-10 18:40:08 +0100 | |
| commit | 7b153ef8ca43c4b437cb9e4e6f2777bdb7047677 (patch) | |
| tree | 04472b547ed5363dc1d6d4b9c4766823683ebc9d /src/AFC.h | |
| parent | 444b4d94afa6ff15129922f0dc2b82ae69deeac8 (diff) | |
| parent | 318cc4f7b336109819c7b4c6a1a9f2e8d37d9bed (diff) | |
| download | libimobiledevice-7b153ef8ca43c4b437cb9e4e6f2777bdb7047677.tar.gz libimobiledevice-7b153ef8ca43c4b437cb9e4e6f2777bdb7047677.tar.bz2 | |
Merge branch 'master' of git://github.com/MattColyer/libiphone into martin
Diffstat (limited to 'src/AFC.h')
| -rw-r--r-- | src/AFC.h | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -36,6 +36,18 @@ typedef struct { | |||
| 36 | uint64_t entire_length, this_length, packet_num, operation; | 36 | uint64_t entire_length, this_length, packet_num, operation; |
| 37 | } AFCPacket; | 37 | } AFCPacket; |
| 38 | 38 | ||
| 39 | #define AFCPacket_to_LE(x) \ | ||
| 40 | (x)->entire_length = GUINT64_TO_LE((x)->entire_length); \ | ||
| 41 | (x)->this_length = GUINT64_TO_LE((x)->this_length); \ | ||
| 42 | (x)->packet_num = GUINT64_TO_LE((x)->packet_num); \ | ||
| 43 | (x)->operation = GUINT64_TO_LE((x)->operation); | ||
| 44 | |||
| 45 | #define AFCPacket_from_LE(x) \ | ||
| 46 | (x)->entire_length = GUINT64_FROM_LE((x)->entire_length); \ | ||
| 47 | (x)->this_length = GUINT64_FROM_LE((x)->this_length); \ | ||
| 48 | (x)->packet_num = GUINT64_FROM_LE((x)->packet_num); \ | ||
| 49 | (x)->operation = GUINT64_FROM_LE((x)->operation); | ||
| 50 | |||
| 39 | typedef struct { | 51 | typedef struct { |
| 40 | uint64_t filehandle, size; | 52 | uint64_t filehandle, size; |
| 41 | } AFCFilePacket; | 53 | } AFCFilePacket; |
