source: trunk/third/ifplugd/src/nlapi.h @ 20388

Revision 20388, 1.2 KB checked in by amb, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r20387, which included commits to RCS files with non-trunk default branches.
Line 
1#ifndef foonlapihfoo
2#define foonlapihfoo
3
4/* $Id: nlapi.h,v 1.1.1.1 2004-04-09 20:08:59 amb Exp $ */
5
6/*
7 * This file is part of ifplugd.
8 *
9 * ifplugd is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * ifplugd is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with ifplugd; if not, write to the Free Software Foundation,
21 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 */
23
24#include <stdint.h>
25#include <sys/socket.h>
26#include <linux/types.h>
27#include <linux/netlink.h>
28#include <linux/rtnetlink.h>
29
30typedef int (*nlapi_callback_t) (struct nlmsghdr *n, void *u);
31
32extern int nlapi_fd;
33
34int nlapi_open(uint32_t groups);
35void nlapi_close(void);
36int nlapi_work(int block);
37int nlapi_register(nlapi_callback_t cb, void *u);
38
39#endif
Note: See TracBrowser for help on using the repository browser.