aboutsummaryrefslogtreecommitdiffstats
path: root/package/libs/libnl-tiny/src/include/unl.h
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-10-07 15:01:46 +0200
committerPetr Štetiar <ynezz@true.cz>2019-10-09 09:13:44 +0200
commita92f74ba8db81b8f1dac92ed3d0756b4ba486c39 (patch)
tree6d63889f931a524bac2eefc865caa83ec2c555d0 /package/libs/libnl-tiny/src/include/unl.h
parent700e7a2eb9c515ffe4f3278857e538ea37cc5e56 (diff)
downloadupstream-a92f74ba8db81b8f1dac92ed3d0756b4ba486c39.tar.gz
upstream-a92f74ba8db81b8f1dac92ed3d0756b4ba486c39.tar.bz2
upstream-a92f74ba8db81b8f1dac92ed3d0756b4ba486c39.zip
libnl-tiny: move source code into separate Git repository
In order to make the source code usable and testable separately out of buildroot. Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Acked-by: Jo-Philipp Wich <jo@mein.io> Acked-by: Hans Dedecker <dedeckeh@gmail.com> Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'package/libs/libnl-tiny/src/include/unl.h')
-rw-r--r--package/libs/libnl-tiny/src/include/unl.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/package/libs/libnl-tiny/src/include/unl.h b/package/libs/libnl-tiny/src/include/unl.h
deleted file mode 100644
index 4fe7dc745d..0000000000
--- a/package/libs/libnl-tiny/src/include/unl.h
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef __UNL_H
-#define __UNL_H
-
-#include <netlink/netlink.h>
-#include <netlink/genl/genl.h>
-#include <netlink/genl/family.h>
-#include <stdbool.h>
-
-struct unl {
- struct nl_sock *sock;
- struct nl_cache *cache;
- struct genl_family *family;
- char *family_name;
- int hdrlen;
- bool loop_done;
-};
-
-int unl_genl_init(struct unl *unl, const char *family);
-void unl_free(struct unl *unl);
-
-typedef int (*unl_cb)(struct nl_msg *, void *);
-
-struct nl_msg *unl_genl_msg(struct unl *unl, int cmd, bool dump);
-int unl_genl_request(struct unl *unl, struct nl_msg *msg, unl_cb handler, void *arg);
-int unl_genl_request_single(struct unl *unl, struct nl_msg *msg, struct nl_msg **dest);
-void unl_genl_loop(struct unl *unl, unl_cb handler, void *arg);
-
-int unl_genl_multicast_id(struct unl *unl, const char *name);
-int unl_genl_subscribe(struct unl *unl, const char *name);
-int unl_genl_unsubscribe(struct unl *unl, const char *name);
-
-int unl_nl80211_phy_lookup(const char *name);
-int unl_nl80211_wdev_to_phy(struct unl *unl, int wdev);
-struct nl_msg *unl_nl80211_phy_msg(struct unl *unl, int phy, int cmd, bool dump);
-struct nl_msg *unl_nl80211_vif_msg(struct unl *unl, int dev, int cmd, bool dump);
-
-static inline void unl_loop_done(struct unl *unl)
-{
- unl->loop_done = true;
-}
-
-static inline struct nlattr *unl_find_attr(struct unl *unl, struct nl_msg *msg, int attr)
-{
- return nlmsg_find_attr(nlmsg_hdr(msg), unl->hdrlen, attr);
-}
-
-#endif