smiGetFirstEvent(3)

smiGetFirstEvent3

Smi identity information routines

Part of smi_event(3).

Usage

#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;

Overview

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

smiGetEvent(SmiClass *smiClassPtr, char *name) returns a pointer to struct SmiEvent 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 struct SmiEvent 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

Releases

Unchanged in 8 releases since Debian 6.0 (Squeeze).

  1. 6.0–13

Author

(C) 2007 Kaloyan Kanev, Jacobs University, Germany <[email protected]>

From libsmi2-dev 0.4.8+dfsg2-17+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.