NAME
snmdb_add_connection - adds a connection record for the element
SYNOPSIS
#include <netmgt/netmgt_db.h>
snmdb_add_connection(buffer, connectedto)
snmdb_buffer *buffer;
char *connectedto;
DESCRIPTION
Connections are described in the connect record in the element buffer. snmdb_add_connection adds a connect record into the buffer, specifying that the element is connected to connectedto.
INPUT ARGUMENTS
buffer
pointer to a structure of type snmdb_buffer.
connectedto
name of the target that the element is connected to.
RETURN VALUE
Returns 1 if successful. Otherwise, it returns 0, and the external variable snm_error(3n) is set to the error reason.
SEE ALSO
snmdb_delete_connection(3n), snmdb_enumerate_connections(3n)