diff options
Diffstat (limited to 'src/packet.h')
-rw-r--r-- | src/packet.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/packet.h b/src/packet.h index 79b1984..548b9a4 100644 --- a/src/packet.h +++ b/src/packet.h @@ -29,8 +29,11 @@ #define _FASTD_PACKET_H_ +typedef enum _fastd_reply_code { + REPLY_SUCCESS = 0, +} fastd_reply_code; + typedef struct __attribute__ ((__packed__)) _fastd_packet_any { - unsigned type : 8; unsigned reply : 1; unsigned cp : 1; unsigned req_id : 6; @@ -38,7 +41,6 @@ typedef struct __attribute__ ((__packed__)) _fastd_packet_any { } fastd_packet_any; typedef struct __attribute__ ((__packed__)) _fastd_packet_request { - unsigned type : 8; unsigned reply : 1; unsigned cp : 1; unsigned req_id : 6; @@ -50,7 +52,6 @@ typedef struct __attribute__ ((__packed__)) _fastd_packet_request { } fastd_packet_request; typedef struct __attribute__ ((__packed__)) _fastd_packet_reply { - unsigned type : 8; unsigned reply : 1; unsigned cp : 1; unsigned req_id : 6; |