diff options
author | Thomas Haller <thaller@redhat.com> | 2023-08-02 16:40:41 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-08-02 20:20:13 (GMT) |
commit | 298c5dc6df6d47b1488b0025619f1932b3064477 (patch) | |
tree | f881456bfe735d2ba9d4b6e517b0981a124d25e9 /lib/utils.c | |
parent | 862eed54e3882c64a5017789229b6dc9337ace17 (diff) | |
download | libnl-298c5dc6df6d47b1488b0025619f1932b3064477.zip libnl-298c5dc6df6d47b1488b0025619f1932b3064477.tar.gz libnl-298c5dc6df6d47b1488b0025619f1932b3064477.tar.bz2 |
include: drop "netlink-private/netlink.h" and move declarations
Diffstat (limited to 'lib/utils.c')
-rw-r--r-- | lib/utils.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/utils.c b/lib/utils.c index 7ed8b91..f407294 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -24,13 +24,15 @@ #include <locale.h> #include <linux/socket.h> +#include <linux/if_arp.h> #include <netlink/netlink.h> #include <netlink/utils.h> -#include <netlink-private/netlink.h> - +#include "nl-core.h" #include "nl-priv-dynamic-core/object-api.h" +#include "nl-priv-dynamic-core/nl-core.h" +#include "nl-aux-core/nl-core.h" /** * Global variable indicating the desired level of debugging output. @@ -121,6 +123,12 @@ int __nl_read_num_str_file(const char *path, int (*cb)(long, const char *)) return 0; } +struct trans_list { + int i; + char *a; + struct nl_list_head list; +}; + const char *nl_strerror_l(int err) { const char *buf; |