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

smiGetIdentity, smiGetFirstIdentity, smiGetNextIdentity, smiGetParentIdentity, smiGetIdentityModule - SMI

Author

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

                                                February 10, 2007                                smi_identity(3)

Description

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

       smiGetIdentity(SmiModule*smiModulePtr,char*name)  returns  a  pointer  to  structSmiIdentity for the
       identity with the given name in the given module(smiModulePtr), or NULL if the  idenity  with  the  given
       name does not exist

       smiGetFirstIdentity(SmiModule*smiModulePtr) and smiGetNextIdentity(SmiIdentity*smiIdentityPtr) are used
       to  iterate  through  the identities of the module given by smiModulePtr. They return a pointer to structSmiIdentity hat represents an identity or NULL if there are no identities left in the  module,  or  error
       has occurred.

       smiGetIdentityModule(SmiIdentity*smiIdentityPtr)  returns  a pointer to structSmiModule, of the module
       containing the given identity.

       smiGetParentIdentity(SmiIdentity*smiIdentityPtr) returns a pointer to structSmiIdentity pointing to the
       parent of the given smiIdentityPtr, or NULL if the Identity is not derived.

Files

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

Name

       smiGetIdentity, smiGetFirstIdentity, smiGetNextIdentity, smiGetParentIdentity, smiGetIdentityModule - SMI
       identity information routines

See Also

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

Synopsis

#include<smi.h>SmiIdentity*smiGetIdentity(SmiModule*smiModulePtr,char*name);SmiIdentity*smiGetFirstIdentity(SmiModule*smiModulePtr);SmiIdentity*smiGetNextIdentity(SmiIdentity*smiIdentityPtr);SmiIdentity*smiGetParentIdentity(SmiIdentity*smiIdentityPtr);SmiModule*smiGetIdentityModule(SmiType*smiIdentityPtr);

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

See Also