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-2008 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 33 #ifdef __cplusplus 34 } 35 #endif 36 37 #endif 38