snmdb_enumerate_views manual page
Table of Contents

NAME

snmdb_enumerate_views - enumerates the views in which the element exists.

SYNOPSIS

#include <netmgt/netmgt_db.h>

char **
snmdb_enumerate_views(buffer)
snmdb_buffer *buffer;

DESCRIPTION

The view in which the element exists is described in the element's membership record. snmdb_enumerate_views enumerates the membership records in the element buffer, and returns a pointer pointing to the list of all the view names in which the element exists. After using the list, you may 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 view names in which the element exists. Returns NULL if error, and the external variable snm_error(3n) is set to the error reason.

SEE ALSO

snmdb_free_list(3n)


Table of Contents