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

	header->eventSource = htole16(eventSource);
}
/**
 * Set the numerical event source ID, representing the event source
 * that generated all the events present in this packet.
 * This ID should be unique at least within a process, if not within
 * the whole system, to guarantee correct identification of who
 * generated an event later on.
 *
 * @param header a valid EventPacket header pointer. Cannot be NULL.
 * @param eventSource the numerical event source ID.
 */
Set the numerical event source ID, representing the event source
that generated all the events present in this packet.
This ID should be unique at least within a process, if not within
the whole system, to guarantee correct identification of who
generated an event later on.

@param header a valid EventPacket header pointer. Cannot be NULL.
@param eventSource the numerical event source ID.
Set the numerical event source ID representing the event source that generated all the events present in this packet . This ID should be unique at least within a process if not within the whole system to guarantee correct identification of who generated an event later on . @param header a valid EventPacket header pointer . Cannot be NULL . @param eventSource the numerical event source ID .
static inline void caerEventPacketHeaderSetEventSource(caerEventPacketHeader header, int16_t eventSource) {
	if (eventSource < 0) {
#if !defined(LIBCAER_LOG_NONE)
		caerLog(CAER_LOG_CRITICAL, "EventPacket Header",
			"Called caerEventPacketHeaderSetEventSource() with negative value!");
#endif
		return;
	}
	header->eventSource = htole16(eventSource);
}
static inline void caerEventPacketHeaderSetEventSource ( caerEventPacketHeader header , int16_t eventSource ) { if ( eventSource < 0 ) { #if ! defined ( LIBCAER_LOG_NONE ) caerLog ( CAER_LOG_CRITICAL , " " , " " ) ; #endif return ; } header -> eventSource = htole16 ( eventSource ) ; }
Set the numerical event source ID, representing the event source
 that generated all the events present in this packet.
Set the numerical event source ID representing the event source that generated all the events present in this packet .
// Negative numbers (bit 31 set) are not allowed!