summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-08-30 21:18:14 +0000
committerLennart Poettering <lennart@poettering.net>2006-08-30 21:18:14 +0000
commit834cc833bb7bb608f778c32a1f3b5bee2f09f7c0 (patch)
tree8c9cdfe7997d82127a806e036f2de1ba676e3b85
parent12874f5d761b4b80ac27c1fc758a93b69d92c34c (diff)
document iface.h to ease porting
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1288 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-autoipd/iface.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/avahi-autoipd/iface.h b/avahi-autoipd/iface.h
index 4480c97..017c90d 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., otherwide STATE_START */
+
int iface_get_initial_state(State *state);
#endif