blob: 017c90d328012c5a042ee4a2c816b26659ea6e5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#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
USA.
***/
#include <inttypes.h>
#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
|