Skip to content

Commit

Permalink
c-list: hook up "c-list.h" for internal usage
Browse files Browse the repository at this point in the history
  • Loading branch information
thom311 committed Nov 18, 2024
1 parent 9ce2675 commit b54bab7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ noinst_HEADERS = \
include/nl-priv-dynamic-core/object-api.h \
include/nl-priv-dynamic-route/nl-priv-dynamic-route.h \
include/nl-priv-static-route/nl-priv-static-route.h \
\
third_party/c-list/src/c-list.h \
\
$(NULL)

###############################################################################
Expand Down Expand Up @@ -395,6 +398,7 @@ default_includes = \
-I$(srcdir)/include/linux-private \
-I$(srcdir)/include \
-I$(builddir)/include \
-I$(srcdir)/third_party/c-list/src \
$(NULL)

default_cppflags = \
Expand Down
3 changes: 3 additions & 0 deletions include/netlink/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
#ifndef NETLINK_LIST_H_
#define NETLINK_LIST_H_

/* For internal uses consider using "third_party/c-list/src/c-list.h" instead.
*/

#include <stddef.h>

#ifdef __cplusplus
Expand Down
2 changes: 2 additions & 0 deletions tests/check-direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#include <netlink/route/link.h>
#include <netlink/route/link/bridge.h>

#include "c-list.h"

#include "nl-priv-static-route/nl-priv-static-route.h"
#include "nl-aux-core/nl-core.h"

Expand Down

0 comments on commit b54bab7

Please sign in to comment.