snmdb_add manual page
Table of Contents

NAME

snmdb_add - adds a new element into the database.

SYNOPSIS

include <netmgt/netmgt_db.h>

snmdb_add(buffer)
snmdb_buffer *buffer;

DESCRIPTION

Before adding a new element into the database, you should call snmdb_init_buffer(3n) to initialize the internal buffer. Then, use snmdb_set_property(3n) to set the properties of the element. Routines like snmdb_add_to_view(3n), snmdb_add_connection(3n), snmdb_set_color(3n), or snmdb_add_agent(3n) may be called to add more records in the buffer describing the element.

INPUT ARGUMENTS

buffer
pointer to a structure of type snmdb_buffer.

RETURN VALUE

Returns 1 if element has been added successfully. Otherwise, it returns 0, and the external variable snm_error(3n) is set to the error reason.

SEE ALSO

snmdb_init_buffer(3n),
snmdb_set_property(3n),
snmdb_add_to_view(3n),
snmdb_add_connection(3n), snmdb_set_color(3n), snmdb_add_agent(3n)


Table of Contents