include/events/common.h
static inline void caerEventPacketHeaderSetEventNumber(caerEventPacketHeader header, int32_t eventsNumber) {
	if (eventsNumber < 0) {
		// Negative numbers (bit 31 set) are not allowed!
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventNumber() with negative value!");
#endif
		return;
	}

	header->eventNumber = htole32(eventsNumber);
}
/**
 * Set the number of events currently stored in this packet,
 * considering both valid and invalid events.
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventsNumber the number of events in this packet.
 */
Set the number of events currently stored in this packet,
considering both valid and invalid events.

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventsNumber the number of events in this packet.
Set the number of events currently stored in this packet considering both valid and invalid events . @param header a valid EventPacket header pointer . Cannot be NULL . @param eventsNumber the number of events in this packet .
static inline void caerEventPacketHeaderSetEventNumber(caerEventPacketHeader header, int32_t eventsNumber) {
	if (eventsNumber < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventNumber() with negative value!");
#endif
		return;
	}
	header->eventNumber = htole32(eventsNumber);
}
static inline void caerEventPacketHeaderSetEventNumber ( caerEventPacketHeader header , int32_t eventsNumber ) { if ( eventsNumber < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventNumber = htole32 ( eventsNumber ) ; }
Set the number of events currently stored in this packet,
 considering both valid and invalid events.
Set the number of events currently stored in this packet considering both valid and invalid events .
// Negative numbers (bit 31 set) are not allowed!