more info about network events
@@ -27,9 +27,13 @@ extern "C"
{
#endif
+/**
+ * @brief network events
+ *
+ */
typedef enum {
- NETWORK_INTERFACE_DOWN,
- NETWORK_INTERFACE_UP
+ NETWORK_INTERFACE_DOWN, ///< network interface down
+ NETWORK_INTERFACE_UP ///< network interface up
} oc_interface_event_t;
/**
@@ -48,12 +52,25 @@ typedef struct oc_network_interface_cb
interface_event_handler_t handler;
} oc_network_interface_cb_t;
+/**
+ * @brief process network events
+ */
OC_PROCESS_NAME(oc_network_events);
typedef struct oc_message_s oc_message_t;
+/**
+ * @brief receive network event
+ *
+ * @param message the network message
+ */
void oc_network_event(oc_message_t *message);
+/**
+ * @brief initiate network event
+ *
+ * @param event the event
+ */
void oc_network_interface_event(oc_interface_event_t event);
#ifdef __cplusplus
