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

smiGetEvent, smiGetFirstEvent, smiGetNextEvent - SMI identity information routines

Author

       (C) 2007 Kaloyan Kanev, Jacobs University, Germany <k.kanev@jacobs-university.de>

                                                February 10, 2007                                   smi_event(3)

Description

       These functions retrieve information on a SMIng event definition (SMIng).

       smiGetEvent(SmiClass*smiClassPtr,char*name) returns a pointer to structSmiEvent for the event with
       the given name in the given class(smiClassPtr), or NULL if the event with the given name does not exist

       smiGetFirstEvent(SmiClass*smiClassPtr) and smiGetNextEvent(SmiEvent*smiEventPtr) are  used  to  iterate
       through  the  events  of  the  class  given by smiClassPtr. They return a pointer to structSmiEvent that
       represents an event or NULL if there are no events left in the class, or error has occurred.

Files

       ${prefix}/include/smi.h    SMI library header file

Name

       smiGetEvent, smiGetFirstEvent, smiGetNextEvent - SMI identity information routines

See Also

libsmi(3), smi_module(3), smi_class(3), smi.h

Synopsis

#include<smi.h>smiGetEvent(SmiClass*smiClassPtr,char*"name);smiGetFirstEvent(SmiClass*smiClassPtr);smiGetNextEvent(SmiEvent*smiEventPtr);

       typedef struct SmiEvent {
           SmiIdentifier       name;
           SmiDecl             decl;
           SmiStatus           status;
           char                *description;
           char                *reference;
       } SmiEvent;

See Also