IoTivity-Lite
oc_network_monitor.h File Reference
#include "oc_export.h"
#include "oc_network_events.h"

Functions

int oc_add_network_interface_event_callback (interface_event_handler_t cb)
 Add the callback to receive change notifications for Network interface event. More...
 
int oc_remove_network_interface_event_callback (interface_event_handler_t cb)
 Remove the callback to receive change notifications for Network interface event. More...
 

Function Documentation

◆ oc_add_network_interface_event_callback()

int oc_add_network_interface_event_callback ( interface_event_handler_t  cb)

Add the callback to receive change notifications for Network interface event.

Parameters
cbThe callback to be added. Must not be NULL.
Returns
0 on success
-1 on error

◆ oc_remove_network_interface_event_callback()

int oc_remove_network_interface_event_callback ( interface_event_handler_t  cb)

Remove the callback to receive change notifications for Network interface event.

Parameters
cbThe callback to be removed. Must not be NULL.
Returns
0 on success
-1 on error