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

	header->eventValid = htole32(eventsValid);
}
/**
 * Set the number of valid events in this packet, disregarding
 * invalid ones (where the invalid mark is set).
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventsValid the number of valid events in this packet.
 */
Set the number of valid events in this packet, disregarding
invalid ones (where the invalid mark is set).

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventsValid the number of valid events in this packet.
Set the number of valid events in this packet disregarding invalid ones ( where the invalid mark is set ) . @param header a valid EventPacket header pointer . Cannot be NULL . @param eventsValid the number of valid events in this packet .
static inline void caerEventPacketHeaderSetEventValid(caerEventPacketHeader header, int32_t eventsValid) {
	if (eventsValid < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventValid() with negative value!");
#endif
		return;
	}
	header->eventValid = htole32(eventsValid);
}
static inline void caerEventPacketHeaderSetEventValid ( caerEventPacketHeader header , int32_t eventsValid ) { if ( eventsValid < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventValid = htole32 ( eventsValid ) ; }
Set the number of valid events in this packet, disregarding
 invalid ones (where the invalid mark is set).
Set the number of valid events in this packet disregarding invalid ones ( where the invalid mark is set ) .
// Negative numbers (bit 31 set) are not allowed!