diff options
author | Christian Spielberger <christian.spielberger@gmail.com> | 2018-05-15 12:35:24 +0200 |
---|---|---|
committer | Daniel Wagner <wagi@monom.org> | 2018-05-24 22:17:38 +0200 |
commit | 239fa8d0795a6fbc6522161611fc05623b970cce (patch) | |
tree | f51271e1ade29423a2cabb8bad9951d6d8ec89f0 /include | |
parent | 14c4e32ec9d6c0fcb2403ddcd3854b2158f05b7f (diff) | |
download | connman-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.h | 12 |
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 |