snmdb_enumerate_elements manual page
Table of Contents

NAME

snmdb_enumerate_elements - enumerates all the elements in a view

SYNOPSIS

#include <netmgt/netmgt_db.h>

snmdb_handle *
snmdb_enumerate_elements(viewname, type)
char *viewname;
char *type;

DESCRIPTION

snmdb_enumerate_elements enumerates all the elements in a particular view named viewname. If viewname is NULL, it enumerates all the elements in all views. type is used to specify that only the elements of that type should be enumerated in the view. If it is NULL, it means that elements of all types should be enumerated. snmdb_enumerate_elements returns a pointer pointing to the list of all the elements found. You should call snmdb_get_next_element(3n) to retrieve the name of the elements in the list. After using the list, you should call snmdb_free_enumeration_handle(3n) to free the space used.

INPUT ARGUMENTS

viewname
name of the view to enumerate.

type name of the type of element to enumerate.

RETURN VALUE

Returns NULL if there is no element matching the view and type. Otherwise, it returns the pointer pointing to the list of elements that matched.

SEE ALSO

snmdb_get_next_element(3n),
snmdb_free_enumeration_handle(3n)


Table of Contents