1smi_identity(3)       SMI Management Information Library       smi_identity(3)
2
3
4

NAME

6       smiGetIdentity, smiGetFirstIdentity, smiGetNextIdentity, smiGetParentI‐
7       dentity, smiGetIdentityModule - SMI identity information routines
8

SYNOPSIS

10       #include <smi.h>
11
12       SmiIdentity *smiGetIdentity(SmiModule *smiModulePtr, char *name);
13
14       SmiIdentity *smiGetFirstIdentity(SmiModule *smiModulePtr);
15
16       SmiIdentity *smiGetNextIdentity(SmiIdentity *smiIdentityPtr);
17
18       SmiIdentity *smiGetParentIdentity(SmiIdentity *smiIdentityPtr);
19
20       SmiModule *smiGetIdentityModule(SmiType *smiIdentityPtr);
21
22       typedef struct SmiIdentity {
23           SmiIdentifier       name;
24           SmiDecl             decl;
25           SmiStatus           status;
26           char                *description;
27           char                *reference;
28       } SmiIdentity;
29
30

DESCRIPTION

32       These functions retrieve information on  a  SMIng  identity  definition
33       (SMIng).
34
35       smiGetIdentity(SmiModule *smiModulePtr,char *name) returns a pointer to
36       struct SmiIdentity for the identity with the given name  in  the  given
37       module(smiModulePtr),  or  NULL if the idenity with the given name does
38       not exist
39
40       smiGetFirstIdentity(SmiModule   *smiModulePtr)   and    smiGetNextIden‐
41       tity(SmiIdentity *smiIdentityPtr) are used to iterate through the iden‐
42       tities of the module given by smiModulePtr. They return  a  pointer  to
43       struct  SmiIdentity  hat represents an identity or NULL if there are no
44       identities left in the module, or error has occurred.
45
46       smiGetIdentityModule(SmiIdentity *smiIdentityPtr) returns a pointer  to
47       struct SmiModule, of the module containing the given identity.
48
49       smiGetParentIdentity(SmiIdentity  *smiIdentityPtr) returns a pointer to
50       struct SmiIdentity pointing to the parent of the given  smiIdentityPtr,
51       or NULL if the Identity is not derived.
52

FILES

54       /usr/include/smi.h    SMI library header file
55

SEE ALSO

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

AUTHOR

60       (C) 2007 Kaloyan Kanev, Jacobs University, Germany <k.kanev@jacobs-uni‐
61       versity.de>
62
63
64
65                               February 10, 2007               smi_identity(3)
Impressum