libnl
3.2.3
|
00001 /* 00002 * netlink/genl/ctrl.h Generic Netlink Controller 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation version 2.1 00007 * of the License. 00008 * 00009 * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch> 00010 */ 00011 00012 #ifndef NETLINK_GENL_CTRL_H_ 00013 #define NETLINK_GENL_CTRL_H_ 00014 00015 #include <netlink/netlink.h> 00016 #include <netlink/cache.h> 00017 #include <netlink/addr.h> 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 struct genl_family; 00024 00025 extern int genl_ctrl_alloc_cache(struct nl_sock *, 00026 struct nl_cache **); 00027 extern struct genl_family * genl_ctrl_search(struct nl_cache *, int); 00028 extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *, 00029 const char *); 00030 extern int genl_ctrl_resolve(struct nl_sock *, 00031 const char *); 00032 extern int genl_ctrl_resolve_grp(struct nl_sock *sk, 00033 const char *family, 00034 const char *grp); 00035 00036 #ifdef __cplusplus 00037 } 00038 #endif 00039 00040 #endif