|
Packit Service |
9ccfef |
.\"
|
|
Packit Service |
9ccfef |
.\" $Id: smi_macro.3.in 4432 2006-05-29 16:21:11Z strauss $
|
|
Packit Service |
9ccfef |
.\"
|
|
Packit Service |
9ccfef |
.TH smi_macro 3 "August 16, 2001" "IBR" "SMI Management Information Library"
|
|
Packit Service |
9ccfef |
.SH NAME
|
|
Packit Service |
9ccfef |
.\" START OF MAN PAGE COPIES
|
|
Packit Service |
9ccfef |
smiGetMacro,
|
|
Packit Service |
9ccfef |
smiGetFirstMacro,
|
|
Packit Service |
9ccfef |
smiGetNextMacro,
|
|
Packit Service |
9ccfef |
smiGetMacroModule
|
|
Packit Service |
9ccfef |
\- SMI macro and extension information routines
|
|
Packit Service |
9ccfef |
.\" END OF MAN PAGE COPIES
|
|
Packit Service |
9ccfef |
.SH SYNOPSIS
|
|
Packit Service |
9ccfef |
.nf
|
|
Packit Service |
9ccfef |
.B #include <smi.h>
|
|
Packit Service |
9ccfef |
.RS
|
|
Packit Service |
9ccfef |
.RE
|
|
Packit Service |
9ccfef |
.sp
|
|
Packit Service |
9ccfef |
.BI "SmiMacro *smiGetMacro(SmiModule *" smiModulePtr ", char *" macro );
|
|
Packit Service |
9ccfef |
.RE
|
|
Packit Service |
9ccfef |
.sp
|
|
Packit Service |
9ccfef |
.BI "SmiMacro *smiGetFirstMacro(SmiModule *" smiModulePtr );
|
|
Packit Service |
9ccfef |
.RE
|
|
Packit Service |
9ccfef |
.sp
|
|
Packit Service |
9ccfef |
.BI "SmiMacro *smiGetNextMacro(SmiMacro *" smiMacroPtr );
|
|
Packit Service |
9ccfef |
.RE
|
|
Packit Service |
9ccfef |
.sp
|
|
Packit Service |
9ccfef |
.BI "SmiModule *smiGetMacroModule(SmiMacro *" smiMacroPtr );
|
|
Packit Service |
9ccfef |
.RE
|
|
Packit Service |
9ccfef |
|
|
Packit Service |
9ccfef |
typedef struct SmiMacro {
|
|
Packit Service |
9ccfef |
SmiIdentifier name;
|
|
Packit Service |
9ccfef |
SmiDecl decl;
|
|
Packit Service |
9ccfef |
SmiStatus status;
|
|
Packit Service |
9ccfef |
char *description;
|
|
Packit Service |
9ccfef |
char *reference;
|
|
Packit Service |
9ccfef |
} SmiMacro;
|
|
Packit Service |
9ccfef |
|
|
Packit Service |
9ccfef |
.fi
|
|
Packit Service |
9ccfef |
.SH DESCRIPTION
|
|
Packit Service |
9ccfef |
These functions retrieve information on an extension statement
|
|
Packit Service |
9ccfef |
definition (SMIng) or a macro (SMIv1/v2).
|
|
Packit Service |
9ccfef |
.PP
|
|
Packit Service |
9ccfef |
The \fBsmiGetMacro()\fP function retrieves a \fBstruct SmiMacro\fP that
|
|
Packit Service |
9ccfef |
represents an extension or macro definition. \fIMacro\fP may be either a
|
|
Packit Service |
9ccfef |
fully qualified descriptor or a simple macro or extension name.
|
|
Packit Service |
9ccfef |
If \fIsmiModulePtr\fP is not NULL it used to limit the search to the
|
|
Packit Service |
9ccfef |
given module. If the macro is not found, \fBsmiGetMacro()\fP returns NULL.
|
|
Packit Service |
9ccfef |
.PP
|
|
Packit Service |
9ccfef |
The \fBsmiGetFirstMacro()\fP and \fBsmiGetNextMacro()\fP functions are
|
|
Packit Service |
9ccfef |
used to iteratively retrieve \fBstruct SmiMacro\fPs.
|
|
Packit Service |
9ccfef |
\fBsmiGetFirstMacro()\fP returns the first one defined in the module
|
|
Packit Service |
9ccfef |
specified by \fIsmiModulePtr\fP.
|
|
Packit Service |
9ccfef |
Subsequent calls to \fBsmiGetNextMacro()\fP return the following ones.
|
|
Packit Service |
9ccfef |
If there are no
|
|
Packit Service |
9ccfef |
more extension or macro definitions in the module, NULL is returned.
|
|
Packit Service |
9ccfef |
.PP
|
|
Packit Service |
9ccfef |
The \fBsmiGetMacroModule()\fP function returns the module that defines
|
|
Packit Service |
9ccfef |
the macro or extension given by \fIstruct SmiMacroPtr\fP.
|
|
Packit Service |
9ccfef |
.SH "FILES"
|
|
Packit Service |
9ccfef |
.nf
|
|
Packit Service |
9ccfef |
@includedir@/smi.h SMI library header file
|
|
Packit Service |
9ccfef |
.fi
|
|
Packit Service |
9ccfef |
.SH "SEE ALSO"
|
|
Packit Service |
9ccfef |
.BR libsmi "(3), "
|
|
Packit Service |
9ccfef |
.BR smi_module "(3), "
|
|
Packit Service |
9ccfef |
.BR smi.h
|
|
Packit Service |
9ccfef |
.SH "AUTHOR"
|
|
Packit Service |
9ccfef |
(C) 1999-2001 Frank Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>
|
|
Packit Service |
9ccfef |
.br
|