38 #ifndef reda_sequenceNumber_h
39 #define reda_sequenceNumber_h
58 struct REDA_SequenceNumber
75 #define REDA_SEQUENCE_NUMBER_HIGH_MAX ((RTI_INT32)0x7fffffff)
81 #define REDA_SEQUENCE_NUMBER_LOW_MAX ((RTI_UINT32)0xffffffff)
93 #define REDA_SEQUENCE_NUMBER_MAX {REDA_SEQUENCE_NUMBER_HIGH_MAX, \
94 REDA_SEQUENCE_NUMBER_LOW_MAX}
108 #define REDA_SEQUENCE_NUMBER_ZERO {0, 0}
123 #define REDA_SEQUENCE_NUMBER_UNKNOWN \
124 {(RTI_INT32)0xffffffff, (RTI_UINT32)0}
137 REDA_SequenceNumber_set_zero(
struct REDA_SequenceNumber *me);
150 REDA_SequenceNumber_set_maximum(
struct REDA_SequenceNumber *me);
169 MUST_CHECK_RETURN REDADllExport RTI_INT32
170 REDA_SequenceNumber_compare(
const struct REDA_SequenceNumber *me,
171 const struct REDA_SequenceNumber *sn);
181 REDA_SequenceNumber_is_unknown(
const struct REDA_SequenceNumber *me);
191 REDA_SequenceNumber_is_zero(
const struct REDA_SequenceNumber *me);
207 REDA_SequenceNumber_add(
struct REDA_SequenceNumber *answer,
208 const struct REDA_SequenceNumber *sn1,
209 const struct REDA_SequenceNumber *sn2);
225 REDA_SequenceNumber_subtract(
struct REDA_SequenceNumber *answer,
226 const struct REDA_SequenceNumber *sn1,
227 const struct REDA_SequenceNumber *sn2);
241 REDA_SequenceNumber_plusplus(
struct REDA_SequenceNumber *me);
255 REDA_SequenceNumber_minusminus(
struct REDA_SequenceNumber *me);
270 REDA_SequenceNumber_increment(
struct REDA_SequenceNumber *me,
271 const struct REDA_SequenceNumber *sn);
286 REDA_SequenceNumber_decrement(
struct REDA_SequenceNumber *me,
287 const struct REDA_SequenceNumber *sn);
305 REDA_SequenceNumber_max(
struct REDA_SequenceNumber *answer,
306 const struct REDA_SequenceNumber *sn1,
307 const struct REDA_SequenceNumber *sn2);
325 REDA_SequenceNumber_min(
struct REDA_SequenceNumber *answer,
326 const struct REDA_SequenceNumber *sn1,
327 const struct REDA_SequenceNumber *sn2);