]> git.karo-electronics.de Git - mdnsd.git/blob - netwatch.h
Add futher files to .gitignore
[mdnsd.git] / netwatch.h
1 #ifndef __NETWATCH_H__
2 #define __NETWATCH_H__
3
4 typedef void (* NW_IpChangeCallback)   (int    link_index,
5                                         char  *label,
6                                         char  *ipaddr,
7                                         int    add,
8                                         void  *user_data);
9
10 typedef void (* NW_LinkChangeCallback) (int   link_index,
11                                         int   running,
12                                         void *user_data);
13
14 int   netwatch_open               (void);
15 int   netwatch_queue_inforequest  (int fd);
16 int   netwatch_dispatch           (int fd);
17
18 void  netwatch_register_callbacks (NW_IpChangeCallback    ip_cb,
19                                    NW_LinkChangeCallback  link_cb,
20                                    void                  *userdata);
21
22 #endif /* __NETWATCH_H__ */