summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChristian Spielberger <christian.spielberger@gmail.com>2018-05-15 12:35:24 +0200
committerDaniel Wagner <wagi@monom.org>2018-05-24 22:17:38 +0200
commit239fa8d0795a6fbc6522161611fc05623b970cce (patch)
treef51271e1ade29423a2cabb8bad9951d6d8ec89f0 /include
parent14c4e32ec9d6c0fcb2403ddcd3854b2158f05b7f (diff)
downloadconnman-239fa8d0795a6fbc6522161611fc05623b970cce.tar.gz
acd: Add callback registration
Adds function acd_host_register_event for registration of higher level address conflict callback functions.
Diffstat (limited to 'include')
-rw-r--r--include/acd.h12
1 files changed, 12 insertions, 0 deletions
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