libnl 3.5.0

ctrl.h
1 /*
2 * netlink/genl/ctrl.h Generic Netlink Controller
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation version 2.1
7 * of the License.
8 *
9 * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
10 */
11
12 #ifndef NETLINK_GENL_CTRL_H_
13 #define NETLINK_GENL_CTRL_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
17 #include <netlink/addr.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 struct genl_family;
24
25 extern int genl_ctrl_alloc_cache(struct nl_sock *,
26 struct nl_cache **);
27 extern struct genl_family * genl_ctrl_search(struct nl_cache *, int);
28 extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *,
29 const char *);
30 extern int genl_ctrl_resolve(struct nl_sock *,
31 const char *);
32 extern int genl_ctrl_resolve_grp(struct nl_sock *sk,
33 const char *family,
34 const char *grp);
35
36 #ifdef __cplusplus
37 }
38 #endif
39
40 #endif
genl_ctrl_alloc_cache
int genl_ctrl_alloc_cache(struct nl_sock *, struct nl_cache **)
Allocate a new controller cache.
Definition: ctrl.c:334
genl_ctrl_resolve_grp
int genl_ctrl_resolve_grp(struct nl_sock *sk, const char *family, const char *grp)
Resolve Generic Netlink family group name.
Definition: ctrl.c:472
genl_ctrl_search
struct genl_family * genl_ctrl_search(struct nl_cache *, int)
Search controller cache for a numeric address match.
Definition: ctrl.c:355
genl_ctrl_resolve
int genl_ctrl_resolve(struct nl_sock *, const char *)
Resolve Generic Netlink family name to numeric identifier.
Definition: ctrl.c:430
genl_ctrl_search_by_name
struct genl_family * genl_ctrl_search_by_name(struct nl_cache *, const char *)
Search controller cache for a family name match.
Definition: ctrl.c:388