GCS  0.2.3
gcs_seqno.h
1 /*
2  * Copyright (C) 2008-2012 Codership Oy <info@codership.com>
3  *
4  * $Id: gcs_seqno.h 2830 2012-06-23 12:49:47Z alex $
5  */
6 /*
7  * Operations on seqno.
8  */
9 
10 #ifndef _gcs_seqno_h_
11 #define _gcs_seqno_h_
12 
13 #include "galerautils.h"
14 #include "gcs.h"
15 
16 #define gcs_seqno_le(x) ((gcs_seqno_t)gu_le64(x))
17 #define gcs_seqno_be(x) ((gcs_seqno_t)gu_be64(x))
18 
19 #define gcs_seqno_htog(x) ((gcs_seqno_t)htog64(x))
20 #define gcs_seqno_gtoh gcs_seqno_htog
21 
22 #endif /* _gcs_seqno_h_ */