From 239fa8d0795a6fbc6522161611fc05623b970cce Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Tue, 15 May 2018 12:35:24 +0200 Subject: acd: Add callback registration Adds function acd_host_register_event for registration of higher level address conflict callback functions. --- include/acd.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include') diff --git a/include/acd.h b/include/acd.h index ce7bc9fd..34e25394 100644 --- a/include/acd.h +++ b/include/acd.h @@ -41,6 +41,18 @@ void acd_host_stop(struct acd_host *acd); typedef void (*acd_host_cb_t) (struct acd_host *acd, gpointer user_data); +enum acd_host_event { + ACD_HOST_EVENT_IPV4_AVAILABLE, + ACD_HOST_EVENT_IPV4_LOST, + ACD_HOST_EVENT_IPV4_CONFLICT, + ACD_HOST_EVENT_IPV4_MAXCONFLICT, +}; + +void acd_host_register_event(struct acd_host *acd, + enum acd_host_event event, + acd_host_cb_t func, + gpointer user_data); + #ifdef __cplusplus } #endif -- cgit v1.2.1