1 /* SPDX-License-Identifier: LGPL-2.1-only */ 2 /* 3 * Copyright (c) 2003-2012 Thomas Graf <[email protected]> 4 */ 5 6 #ifndef NETLINK_GENL_CTRL_H_ 7 #define NETLINK_GENL_CTRL_H_ 8 9 #include <netlink/netlink.h> 10 #include <netlink/cache.h> 11 #include <netlink/addr.h> 12 13 #ifdef __cplusplus 14 extern "C" { 15 #endif 16 17 struct genl_family; 18 19 extern int genl_ctrl_alloc_cache(struct nl_sock *, 20 struct nl_cache **); 21 extern struct genl_family * genl_ctrl_search(struct nl_cache *, int); 22 extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *, 23 const char *); 24 extern int genl_ctrl_resolve(struct nl_sock *, 25 const char *); 26 extern int genl_ctrl_resolve_grp(struct nl_sock *sk, 27 const char *family, 28 const char *grp); 29 30 #ifdef __cplusplus 31 } 32 #endif 33 34 #endif 35