smi_event(3)

✨ smi_event ✨ β€” the SMI identity info girlies πŸ’…

okay bestie, welcome to smi_event(3), straight outta the SMI Management Information Library 🫢 this is where you go to get the tea on SMIng event definitions, no cap.


🌸 NAME 🌸

smiGetEvent, smiGetFirstEvent, smiGetNextEvent β€” the SMI identity information routines πŸ’–


πŸŽ€ 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;

like, that struct is literally the moment πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so these functions are the ones that pull up the info on an SMIng event definition (that's SMIng, iykyk). ✨

  • smiGetEvent(SmiClass *smiClassPtr, char *name) β€” hands you back a pointer to a struct SmiEvent for the event with the given name inside the given class (smiClassPtr). and if that event with that name doesn't exist? you get NULL. not me getting ghosted by a data structure 😭
  • smiGetFirstEvent(SmiClass *smiClassPtr) and smiGetNextEvent(SmiEvent *smiEventPtr) β€” these two are your little duo for iterating through all the events of the class given by smiClassPtr. they return a pointer to a struct SmiEvent that represents an event, or NULL if there are no events left in the class, or if an error has occurred. periodt. πŸ’€

πŸ“ FILES πŸ“

  • ${prefix}/include/smi.h β€” the SMI library header file πŸ’œ

🌈 SEE ALSO 🌈

libsmi(3), smi_module(3), smi_class(3), smi.h β€” go read these next bestie, they ate πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

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


and that's the whole vibe, babe β€” this page was serving on February 10, 2007, from the SMI Management Information Library (smi_event(3) energy only). slay, go iterate some events 🧚✨