kea-custom-hooks
FeM custom hooks libraries for Kea DHCP
Namespaces | Functions
init.cpp File Reference

Starting and stopping point for admindb-arpwatch-exporter. More...

#include <hooks/hooks.h>
#include <log/logger.h>
#include <log/macros.h>
#include "Exporter.hpp"
#include "common.hpp"
#include "exceptions.hpp"
#include "util/ArpwatchRPC.hpp"
#include "util/HiredisAdapter.hpp"
#include "util/HiredisMultiAdapter.hpp"
#include "log_admindb_arpwatch_exporter.h"

Go to the source code of this file.

Namespaces

namespace  arpwatch
 

Functions

int load (isc::hooks::LibraryHandle &handle)
 Initialization/starting point for admindb-arpwatch-exporter. More...
 
int unload ()
 Unitialization/cleanup point for admindb-arpwatch-exporter. More...
 

Detailed Description

Starting and stopping point for admindb-arpwatch-exporter.

This file provides the functions which Kea calls upon loading/unloading the module. They act as the equivalent of the main() function in an executable, but must return after initialization/cleanup are done.

Definition in file init.cpp.

Function Documentation

◆ load()

int load ( isc::hooks::LibraryHandle &  handle)

Initialization/starting point for admindb-arpwatch-exporter.

Definition at line 48 of file init.cpp.

◆ unload()

int unload ( )

Unitialization/cleanup point for admindb-arpwatch-exporter.

Definition at line 69 of file init.cpp.