logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

xdf_add_evttype - Adds a type of event

Description

xdf_add_evttype()  adds  an event type specified by combination of code and the event description desc to
       the file referenced by the handle xdf opened for writing. If there is no description associated with  the
       event type, desc should be set to NULL.

       If  an  event  type  with  the same combination has been already added, no new type will be added and the
       previous type will be returned.

Errors

EINVALxdf is NULL

       ENOMEM The system is unable to allocate resources.

       EPERM  The  file  referenced  by  xdf has not been opened for writing or its file format does not support
              events.

Name

       xdf_add_evttype - Adds a type of event

Return Value

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

See Also

xdf_add_event(3)

EPFL                                                  2010                                    XDF_ADD_EVTTYPE(3)

Synopsis

#include<xdfio.h>intxdf_add_evttype(structxdf*xdf,intcode,constchar*desc);

See Also