X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-autoipd%2Fiface.h;h=95c97fde96dab3c6e8aa5b0949be70fd0665618a;hb=0e8a4f32e3182d5a2337ca679f7a144cbe341f17;hp=4480c97554ff0ae6d41b54c233480e12603139a0;hpb=12874f5d761b4b80ac27c1fc758a93b69d92c34c;p=catta diff --git a/avahi-autoipd/iface.h b/avahi-autoipd/iface.h index 4480c97..95c97fd 100644 --- a/avahi-autoipd/iface.h +++ b/avahi-autoipd/iface.h @@ -1,21 +1,19 @@ #ifndef fooavahiifacehfoo #define fooavahiifacehfoo -/* $Id$ */ - /*** This file is part of avahi. - + avahi is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. - + avahi is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. - + You should have received a copy of the GNU Lesser General Public License along with avahi; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 @@ -26,10 +24,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