[patch libnl] fix includes after removing some headers

Jiri Pirko jiri at resnulli.us
Wed Jan 23 07:17:43 EST 2013


commit f20bbe1f07fcff1509425884f5ed72ca8d5fb6ab
Author: Thomas Graf <tgraf at suug.ch>
Date:   Tue Jan 22 19:10:38 2013 +0100

    No longer install module API headers

This commit causes a regression so no app using libnl can be compiled
against it. This patch fixes it by removing includes of no-longe
existing headers.

Signed-off-by: Jiri Pirko <jiri at resnulli.us>
---
 include/netlink/cache-api.h    | 3 +--
 include/netlink/cache.h        | 2 +-
 include/netlink/cli/tc.h       | 4 +++-
 include/netlink/netlink.h      | 3 ++-
 include/netlink/route/tc-api.h | 7 -------
 include/netlink/route/tc.h     | 7 +++++++
 6 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/include/netlink/cache-api.h b/include/netlink/cache-api.h
index b332415..493a551 100644
--- a/include/netlink/cache-api.h
+++ b/include/netlink/cache-api.h
@@ -13,13 +13,12 @@
 #define NETLINK_CACHE_API_H_
 
 #include <netlink/netlink.h>
+#include <netlink/cache.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-typedef void (*change_func_t)(struct nl_cache *, struct nl_object *, int, void *);
-
 /**
  * @ingroup cache
  * @defgroup cache_api Cache Implementation
diff --git a/include/netlink/cache.h b/include/netlink/cache.h
index ac03842..0da1377 100644
--- a/include/netlink/cache.h
+++ b/include/netlink/cache.h
@@ -16,13 +16,13 @@
 #include <netlink/msg.h>
 #include <netlink/utils.h>
 #include <netlink/object.h>
-#include <netlink/cache-api.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 struct nl_cache;
+typedef void (*change_func_t)(struct nl_cache *, struct nl_object *, int, void *);
 
 /**
  * @ingroup cache
diff --git a/include/netlink/cli/tc.h b/include/netlink/cli/tc.h
index 85d2e30..77042c7 100644
--- a/include/netlink/cli/tc.h
+++ b/include/netlink/cli/tc.h
@@ -12,7 +12,9 @@
 #ifndef __NETLINK_CLI_TC_H_
 #define __NETLINK_CLI_TC_H_
 
-#include <netlink/route/tc-api.h>
+#include <netlink/route/tc.h>
+
+struct rtnl_tc_ops;
 
 extern void nl_cli_tc_parse_dev(struct rtnl_tc *, struct nl_cache *, char *);
 extern void nl_cli_tc_parse_parent(struct rtnl_tc *, char *);
diff --git a/include/netlink/netlink.h b/include/netlink/netlink.h
index a501eaa..5f68548 100644
--- a/include/netlink/netlink.h
+++ b/include/netlink/netlink.h
@@ -32,13 +32,14 @@
 #include <netlink/handlers.h>
 #include <netlink/socket.h>
 #include <netlink/object.h>
-#include <netlink/cache-api.h>
 
 #ifdef __cplusplus
 extern "C" {
 #endif
 
 struct ucred;
+struct nl_cache_ops;
+struct nl_parser_param;
 
 extern int nl_debug;
 extern struct nl_dump_params nl_debug_dp;
diff --git a/include/netlink/route/tc-api.h b/include/netlink/route/tc-api.h
index d89408f..601a8df 100644
--- a/include/netlink/route/tc-api.h
+++ b/include/netlink/route/tc-api.h
@@ -20,13 +20,6 @@
 extern "C" {
 #endif
 
-enum rtnl_tc_type {
-	RTNL_TC_TYPE_QDISC,
-	RTNL_TC_TYPE_CLASS,
-	RTNL_TC_TYPE_CLS,
-	__RTNL_TC_TYPE_MAX,
-};
-
 #define RTNL_TC_TYPE_MAX (__RTNL_TC_TYPE_MAX - 1)
 
 /**
diff --git a/include/netlink/route/tc.h b/include/netlink/route/tc.h
index 50ca6de..caee60c 100644
--- a/include/netlink/route/tc.h
+++ b/include/netlink/route/tc.h
@@ -23,6 +23,13 @@
 extern "C" {
 #endif
 
+enum rtnl_tc_type {
+	RTNL_TC_TYPE_QDISC,
+	RTNL_TC_TYPE_CLASS,
+	RTNL_TC_TYPE_CLS,
+	__RTNL_TC_TYPE_MAX,
+};
+
 /**
  * Compute tc handle based on major and minor parts
  * @ingroup tc
-- 
1.7.11.7




More information about the libnl mailing list