snmdb_delete_connection manual page
Table of Contents

NAME

snmdb_delete_connection - deletes a connection record for the element

SYNOPSIS

#include <netmgt/netmgt_db.h>

snmdb_delete_connection(buffer, connectedto) snmdb_buffer *buffer;
char *connectedto;

DESCRIPTION

Connections are described in the connect record in the element buffer. snmdb_delete_connection looks through all the connect records in the buffer, and finds and removes the one that describes the connection between the element and con_nectedto.

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_add_connection(3n), snmdb_enumerate_connections(3n)


Table of Contents