X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-autoipd%2Fiface.h;h=e3f913ed3b670707263b1819d882c27157a01992;hb=02cbbe29639f604c31c7b15a98ccc5bc20e42ce7;hp=4480c97554ff0ae6d41b54c233480e12603139a0;hpb=12874f5d761b4b80ac27c1fc758a93b69d92c34c;p=catta diff --git a/avahi-autoipd/iface.h b/avahi-autoipd/iface.h index 4480c97..e3f913e 100644 --- a/avahi-autoipd/iface.h +++ b/avahi-autoipd/iface.h @@ -26,10 +26,22 @@ #include "main.h" +/* Subscribe to network configuration changes. The only events we are + * interested in are when routable addresses are removed/added to the + * monitored interface and when our monitored interface disappears. */ + + +/* Return a valid fd that we listen on for events */ int iface_init(int ifindex); + +/* Process events */ int iface_process(Event *event); void iface_done(void); +/* Deduce the initial state of our state machine. If a routable + * address is configured for the interface, *state should be set to + * STATE_SLEEPING, otherwise STATE_START */ + int iface_get_initial_state(State *state); #endif