smi_render
NAMESYNOPSIS
DESCRIPTION
FORMATS
RETURN VALUE
SEE ALSO
AUTHOR
NAME
smiRenderOID, smiRenderValue, smiRenderNode, smiRenderType − SMI data and MIB data rendering routines
SYNOPSIS
#include <smi.h>
char *smiRenderOID(unsigned int oidlen, SmiSubid *oid, int flags);
char *smiRenderValue(SmiValue *smiValuePtr, SmiType *smiTypePtr, int flags);
char *smiRenderNode(SmiNode *smiNodePtr, int flags);
char *smiRenderType(SmiType *smiTypePtr, int flags);
DESCRIPTION
These functions provide can be used to render OIDs, values of MIB data, or names of MIB nodes or types.
The smiRenderOID() function renders an OID given by its length oidlen and its array of sub-identifiers oid*. The flags can be used to control the resulting format, see FORMATS below.
The smiRenderValue() function renders a MIB data value given by smiValuePtr. An underlying type smiTypePtr may be supplied to support a more human friendly rendering. The flags can be used to control the resulting format, see FORMATS below.
The smiRenderNode() function renders the name of a node given by smiNodePtr. The flags can be used to control the resulting format, see FORMATS below.
The smiRenderType() function renders the name of a type given by smiTypePtr. The flags can be used to control the resulting format, see FORMATS below.
FORMATS
Each of these
functions gets a last argument named flags. This is a
logcially or-ed set of flags that can be used to control the
format of the rendered items:
SMI_RENDER_NUMERIC
Allow numeric representation (default).
SMI_RENDER_NAME
Allow a representation by name(s) if possible.
SMI_RENDER_QUALIFIED
In case of a name representation, force a module prefix, e.g. IF-MIB::ifIndex instead of just ifIndex.
SMI_RENDER_FORMAT
In case of smiRenderValue(), force the application of a format specification (e.g. an SMIv2 DISPLAY-HINT) of an underlying type if the smiTypePtr argument is not NULL and this type contains such a format specification.
SMI_RENDER_PRINTABLE
In case of octet string value rendering, force a printable representation if all octets of the octet string are printable.
SMI_RENDER_UNKNOWN
Force the return of a string containing SMI_LABEL_UNKNOWN ("<unknown>"), if the rendering would fail. This way, the only condition where NULL can be returned is the lack of memory.
SMI_RENDER_ALL
Apply a combination of all these flags. This supports the (hopefully) most human friendly representations.
RETURN VALUE
All of these functions return a string, if successful, or NULL in case of a rendering failure. See also the SMI_RENDER_UNKNOWN flag above.
SEE ALSO
libsmi(3), smi.h
AUTHOR
(C) 2002 Frank Strauss, TU Braunschweig, Germany <strauss@ibr.cs.tu-bs.de>
More Linux Commands
manpages/fegetexcept.3.html
fegetexcept(3) - floating-point rounding and exception handl
These eleven functions were defined in C99, and describe the handling of floating-point rounding and exceptions (overflow, zero-divide, etc.). Exceptions The di
manpages/Tcl_GetByteArrayFromObj.3.html
Tcl_GetByteArrayFromObj(3) - manipulate Tcl objects as a arr
These procedures are used to create, modify, and read Tcl byte-array objects from C code. Byte-array objects are typically used to hold the results of binary IO
manpages/endmntent.3.html
endmntent(3) - get file system descriptor file entry........
These routines are used to access the filesystem description file /etc/fstab and the mounted filesystem description file /etc/mtab. The setmntent() function ope
manpages/objdump.1.html
objdump(1) - display information from object files..........
objdump displays information about one or more object files. The options control what particular information to display. This information is mostly useful to pr
manpages/ttk_combobox.n.html
ttk_combobox(n) text field with popdown selection list......
A ttk::combobox combines a text field with a pop-down list of values; the user may select the value of the text field from among the values in the list. STANDAR
manpages/Tcl_LimitGetGranularity.3.html
Tcl_LimitGetGranularity(3) - manage and check resource limit
Tcls interpreter resource limit subsystem allows for close control over how much computation time a script may use, and is useful for cases where a program is d
manpages/Tcl_NewWideIntObj.3.html
Tcl_NewWideIntObj(3) - manipulate Tcl objects as integer val
These procedures are used to create, modify, and read Tcl objects that &#9474; hold integral values. &#9474; The different routines exist to accommodate differe
manpages/dprofpp.1.html
dprofpp(1) - display perl profile data - Linux manual page
The dprofpp command interprets profile data produced by a profiler, such as the Devel::DProf profiler. Dprofpp will read the file tmon.out and display the 15 su
manpages/mvwchgat.3ncurses.html
mvwchgat(3ncurses) - curses character and window attribute c
These routines manipulate the current attributes of the named window. The current attributes of a window apply to all characters that are written into the windo
manpages/mq_open.2.html
mq_open(3) - open a message queue - Linux manual page.......
mq_open() creates a new POSIX message queue or opens an existing queue. The queue is identified by name. For details of the construction of name, see mq_overvie
manpages/text2pcap.1.html
text2pcap(1) - Generate a capture file from an ASCII hexdump
Text2pcap is a program that reads in an ASCII hex dump and writes the data described into a pcap capture file. text2pcap can read hexdumps with multiple packets
manpages/Tcl_DeleteExitHandler.3.html
Tcl_DeleteExitHandler(3) - end the application or thread (an
The procedures described here provide a graceful mechanism to end the execution of a Tcl application. Exit handlers are invoked to cleanup the applications stat
