libcortex
Event loop library following a "batteries included" approach
Loading...
Searching...
No Matches
libnl.h
1#ifndef _CRTX_LIBNL_H
2#define _CRTX_LIBNL_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8/*
9 * Mario Kicherer (dev@kicherer.org) 2016
10 *
11 */
12
13#include <netlink/netlink.h>
14
16 enum nl_cb_type type;
17 enum nl_cb_kind kind;
18 nl_recvmsg_msg_cb_t func;
19 void * arg;
20};
21
23 struct crtx_listener_base base;
24
25 struct nl_sock *sock;
26
27 struct crtx_libnl_callback *callbacks;
28};
29
30struct crtx_listener_base *crtx_setup_libnl_listener(void *options);
31CRTX_DECLARE_ALLOC_FUNCTION(libnl)
32
33void crtx_libnl_init();
34void crtx_libnl_finish();
35
36#ifdef __cplusplus
37}
38#endif
39
40#endif
Definition libnl.h:15
Definition libnl.h:22
base structure of a listener
Definition core.h:186