|
Packit |
022b05 |
.\"
|
|
Packit |
022b05 |
.\" $Id: smi_render.3.in 1432 2002-07-24 11:54:18Z strauss $
|
|
Packit |
022b05 |
.\"
|
|
Packit |
022b05 |
.TH smi_render 3 "July 24, 2002" "IBR" "SMI Management Information Library"
|
|
Packit |
022b05 |
.SH NAME
|
|
Packit |
022b05 |
.\" START OF MAN PAGE COPIES
|
|
Packit |
022b05 |
smiRenderOID,
|
|
Packit |
022b05 |
smiRenderValue,
|
|
Packit |
022b05 |
smiRenderNode,
|
|
Packit |
022b05 |
smiRenderType
|
|
Packit |
022b05 |
.\" END OF MAN PAGE COPIES
|
|
Packit |
022b05 |
\- SMI data and MIB data rendering routines
|
|
Packit |
022b05 |
.SH SYNOPSIS
|
|
Packit |
022b05 |
.nf
|
|
Packit |
022b05 |
.B #include <smi.h>
|
|
Packit |
022b05 |
.RS
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "char *smiRenderOID(unsigned int " oidlen ", SmiSubid *" oid ", int " flags );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "char *smiRenderValue(SmiValue *" smiValuePtr ", SmiType *" smiTypePtr ", int " flags );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "char *smiRenderNode(SmiNode *" smiNodePtr ", int " flags );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.sp
|
|
Packit |
022b05 |
.BI "char *smiRenderType(SmiType *" smiTypePtr ", int " flags );
|
|
Packit |
022b05 |
.RE
|
|
Packit |
022b05 |
.SH DESCRIPTION
|
|
Packit |
022b05 |
These functions provide can be used to render OIDs, values of MIB data,
|
|
Packit |
022b05 |
or names of MIB nodes or types.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
The \fBsmiRenderOID()\fP function renders an OID given by its
|
|
Packit |
022b05 |
length \fIoidlen\fP and its array of sub-identifiers \fIoid*\fP.
|
|
Packit |
022b05 |
The \fIflags\fP can be used to control the resulting format, see FORMATS below.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
The \fBsmiRenderValue()\fP function renders a MIB data value given by
|
|
Packit |
022b05 |
\fIsmiValuePtr\fP. An underlying type \fIsmiTypePtr\fP may be supplied
|
|
Packit |
022b05 |
to support a more human friendly rendering.
|
|
Packit |
022b05 |
The \fIflags\fP can be used to control the resulting format, see FORMATS below.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
The \fBsmiRenderNode()\fP function renders the name of a node given
|
|
Packit |
022b05 |
by \fIsmiNodePtr\fP.
|
|
Packit |
022b05 |
The \fIflags\fP can be used to control the resulting format, see FORMATS below.
|
|
Packit |
022b05 |
.PP
|
|
Packit |
022b05 |
The \fBsmiRenderType()\fP function renders the name of a type given
|
|
Packit |
022b05 |
by \fIsmiTypePtr\fP.
|
|
Packit |
022b05 |
The \fIflags\fP can be used to control the resulting format, see FORMATS below.
|
|
Packit |
022b05 |
.SH "FORMATS"
|
|
Packit |
022b05 |
Each of these functions gets a last argument named \fIflags\fP. This is
|
|
Packit |
022b05 |
a logcially or-ed set of flags that can be used to control the format
|
|
Packit |
022b05 |
of the rendered items:
|
|
Packit |
022b05 |
.TP
|
|
Packit |
022b05 |
\fBSMI_RENDER_NUMERIC
|
|
Packit |
022b05 |
Allow numeric representation (default).
|
|
Packit |
022b05 |
.TP
|
|
Packit |
022b05 |
\fBSMI_RENDER_NAME
|
|
Packit |
022b05 |
Allow a representation by name(s) if possible.
|
|
Packit |
022b05 |
.TP
|
|
Packit |
022b05 |
\fBSMI_RENDER_QUALIFIED
|
|
Packit |
022b05 |
In case of a name representation, force a module prefix, e.g. IF-MIB::ifIndex
|
|
Packit |
022b05 |
instead of just ifIndex.
|
|
Packit |
022b05 |
.TP
|
|
Packit |
022b05 |
\fBSMI_RENDER_FORMAT
|
|
Packit |
022b05 |
In case of \fIsmiRenderValue()\fP, force the application of a format
|
|
Packit |
022b05 |
specification (e.g. an SMIv2 DISPLAY-HINT) of an underlying type if
|
|
Packit |
022b05 |
the \fIsmiTypePtr\fP argument is not NULL and this type contains such a
|
|
Packit |
022b05 |
format specification.
|
|
Packit |
022b05 |
.TP
|
|
Packit |
022b05 |
\fBSMI_RENDER_PRINTABLE
|
|
Packit |
022b05 |
In case of octet string value rendering, force a printable representation
|
|
Packit |
022b05 |
if all octets of the octet string are printable.
|
|
Packit |
022b05 |
.TP
|
|
Packit |
022b05 |
\fBSMI_RENDER_UNKNOWN
|
|
Packit |
022b05 |
Force the return of a string containing SMI_LABEL_UNKNOWN ("<unknown>"),
|
|
Packit |
022b05 |
if the rendering would fail. This way, the only condition where NULL can
|
|
Packit |
022b05 |
be returned is the lack of memory.
|
|
Packit |
022b05 |
.TP
|
|
Packit |
022b05 |
\fBSMI_RENDER_ALL
|
|
Packit |
022b05 |
Apply a combination of all these flags. This supports the (hopefully) most
|
|
Packit |
022b05 |
human friendly representations.
|
|
Packit |
022b05 |
.SH "RETURN VALUE"
|
|
Packit |
022b05 |
All of these functions return a string, if successful, or NULL in case
|
|
Packit |
022b05 |
of a rendering failure. See also the \fBSMI_RENDER_UNKNOWN\fP flag above.
|
|
Packit |
022b05 |
.SH "SEE ALSO"
|
|
Packit |
022b05 |
.BR libsmi "(3), "
|
|
Packit |
022b05 |
.BR smi.h
|
|
Packit |
022b05 |
.SH "AUTHOR"
|
|
Packit |
022b05 |
(C) 2002 Frank Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>
|
|
Packit |
022b05 |
.br
|