ctrl.h 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifndef NETLINK_GENL_CTRL_H_
  12. #define NETLINK_GENL_CTRL_H_
  13. #include <netlink/netlink.h>
  14. #include <netlink/cache.h>
  15. #include <netlink/addr.h>
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. struct genl_family;
  20. extern int genl_ctrl_alloc_cache(struct nl_sock *,
  21. struct nl_cache **);
  22. extern struct genl_family * genl_ctrl_search(struct nl_cache *, int);
  23. extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *,
  24. const char *);
  25. extern int genl_ctrl_resolve(struct nl_sock *,
  26. const char *);
  27. extern int genl_ctrl_resolve_grp(struct nl_sock *sk,
  28. const char *family,
  29. const char *grp);
  30. #ifdef __cplusplus
  31. }
  32. #endif
  33. #endif