snmdb_enumerate_aliases manual page
Table of Contents

NAME

snmdb_enumerate_aliases - enumerates all the alias records of the element

SYNOPSIS

#include <netmgt/netmgt_db.h>

char **
snmdb_enumerate_aliases(buffer)
snmdb_buffer *buffer;

DESCRIPTION

An element may be identified by its secondary names specified in the alias records in the element buffer. snmdb_enumerate_aliases enumerates all the alias records in the buffer and returns a pointer pointing to the list of all the names which the element is also known as. After using the list, you should call snmdb_free_list(3n) to free the space.

INPUT ARGUMENTS

buffer
pointer to a structure of type snmdb_buffer.

RETURN VALUE

Returns a NULL terminated list of all the secondary names of the element. Returns NULL if an error occurs, and the external variable snm_error(3n) is set to the error reason.

SEE ALSO

snmdb_free_list(3n)


Table of Contents