DOKK / manpages / debian 10 / libxdffileio-dev / xdf_get_evttype.3.en
XDF_GET_EVTTYPE(3) xdffileio library manual XDF_GET_EVTTYPE(3)

xdf_get_evttype - Get information about an event type

#include <xdfio.h>

int xdf_get_evttype(struct xdf* xdf, unsigned int evttype,
int* code, const char** desc);

xdf_get_evttype() returns the information of the event type evttype of the XDF file referenced by xdf. The code and the description of the event type are returned respectively in the pointers code and desc.

The function returns 0 in case of success. Otherwise -1 is returned and errno is set appropriately.

xdf, code or desc is NULL.
evttype is an invalid event type of xdf

xdf_get_event(3)

2010 EPFL