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