NAME
snmdb_add_to_view - adds the element into a particular view
SYNOPSIS
#include <netmgt/netmgt_db.h>
snmdb_add_to_view(buffer, viewname, x, y, z, x1, y1) snmdb_buffer *buffer;
char *viewname;
int x;
int y;
int z;
int x1;
int y1;
DESCRIPTION
The view in which the element exists is described in the element's membership record. snmdb_add_to_view adds a membership record with the specified view name into the element buffer. x, y, and z values specify the position of the element in that view. If the element is of type bus.ethernet (as defined in the elements.schema file), you will also need to specify the x1, y1 values of the end point of the bus. You may also let the element be auto positioned by specifying `-1' as the value of all x, y, and z variables.
INPUT ARGUMENTS
buffer
cluster record buffer for the element.
viewname
name of the view in which the element exists.
y1 optional. This is used for element of category bus only, the Y position of second end point of the bus element.
RETURN VALUE
Returns 1 if successful. Otherwise, it returns 0, and the external variable snm_error(3n) is set to the error reason.
FILES
elements.schema