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

	header->eventCapacity = htole32(eventsCapacity);
}
/**
 * Set the maximum number of events this packet can store.
 * This is determined at packet allocation time and should
 * not be changed during the life-time of the packet.
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventsCapacity the number of events this packet can hold.
 */
Set the maximum number of events this packet can store.
This is determined at packet allocation time and should
not be changed during the life-time of the packet.

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventsCapacity the number of events this packet can hold.
Set the maximum number of events this packet can store . This is determined at packet allocation time and should not be changed during the life - time of the packet . @param header a valid EventPacket header pointer . Cannot be NULL . @param eventsCapacity the number of events this packet can hold .
static inline void caerEventPacketHeaderSetEventCapacity(caerEventPacketHeader header, int32_t eventsCapacity) {
	if (eventsCapacity < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventCapacity() with negative value!");
#endif
		return;
	}
	header->eventCapacity = htole32(eventsCapacity);
}
static inline void caerEventPacketHeaderSetEventCapacity ( caerEventPacketHeader header , int32_t eventsCapacity ) { if ( eventsCapacity < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventCapacity = htole32 ( eventsCapacity ) ; }
Set the maximum number of events this packet can store.
Set the maximum number of events this packet can store .
// Negative numbers (bit 31 set) are not allowed!