NAME
snmdb_get_property - gets the value and data type of a particular property of an element that has been read into the internal buffer
SYNOPSIS
#include <netmgt/netmgt_db.h>
snmdb_data
snmdb_get_property(buffer, property, type)
snmdb_buffer *buffer;
char *property;
snmdb_type *type;
DESCRIPTION
snmdb_get_property returns the value of a property, which is of type snmdb_data, a union of all possible data types, as defined in netmgt_db.h. The buffer should be loaded with an element by calling snmdb_read(3n). The data type of the property will also be returned in type if type is not NULL.
INPUT ARGUMENTS
buffer
pointer to a structure of type snmdb_buffer.
property
name of the property.
type data type of the property, as defined in netmgt_db.h.
RETURN VALUE
Returns the value of the property. Check the data type before using the value. If the data type is 0 (undefined), the value may not be valid.
FILES
netmgt_db.h
SEE ALSO
snmdb_read(3n), snmdb_set_property(3n)