]> granicus.if.org Git - libnl/commitdiff
Provide compat headers for removed private API
authorThomas Graf <tgraf@suug.ch>
Thu, 24 Jan 2013 13:03:52 +0000 (14:03 +0100)
committerThomas Graf <tgraf@suug.ch>
Thu, 24 Jan 2013 13:03:52 +0000 (14:03 +0100)
Some projects seem to have mistakenly included the private
API headers without actually needing them.

Provide dummy headers referring to the real headers to
provide backwards compatibility.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
include/Makefile.am
include/netlink/cache-api.h [new file with mode: 0644]
include/netlink/object-api.h [new file with mode: 0644]
include/netlink/route/link/api.h [new file with mode: 0644]
include/netlink/route/link/info-api.h [new file with mode: 0644]
include/netlink/route/tc-api.h [new file with mode: 0644]

index 50f96b7ce8ae0ad54fd405e701e47e22044be6a2..1e07fdb15d74269f0e89e62d21a06d68ba52b16a 100644 (file)
@@ -71,7 +71,13 @@ nobase_libnlinclude_HEADERS = \
        netlink/socket.h \
        netlink/types.h \
        netlink/utils.h \
-       netlink/version.h
+       netlink/version.h \
+       netlink/cache-api.h \
+       netlink/object-api.h \
+       netlink/route/link/api.h \
+       netlink/route/link/info-api.h \
+       netlink/route/tc-api.h
+
 
 if ENABLE_CLI
 nobase_libnlinclude_HEADERS += \
diff --git a/include/netlink/cache-api.h b/include/netlink/cache-api.h
new file mode 100644 (file)
index 0000000..e43c7ca
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * netlink/cache-api.h         Caching API
+ *
+ *     This library is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU Lesser General Public
+ *     License as published by the Free Software Foundation version 2.1
+ *     of the License.
+ *
+ * Copyright (c) 2013 Thomas Graf <tgraf@suug.ch>
+ */
+
+#ifndef NETLINK_DUMMY_CACHE_API_H_
+#define NETLINK_DUMMY_CACHE_API_H_
+
+#include <netlink/netlink.h>
+#include <netlink/cache.h>
+
+#warning "You are including a deprecated header file, include <netlink/cache.h>."
+
+#endif
diff --git a/include/netlink/object-api.h b/include/netlink/object-api.h
new file mode 100644 (file)
index 0000000..6f8f010
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * netlink/object-api.h                Object API
+ *
+ *     This library is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU Lesser General Public
+ *     License as published by the Free Software Foundation version 2.1
+ *     of the License.
+ *
+ * Copyright (c) 2013 Thomas Graf <tgraf@suug.ch>
+ */
+
+#ifndef NETLINK_DUMMY_OBJECT_API_H_
+#define NETLINK_DUMMY_OBJECT_API_H_
+
+#include <netlink/netlink.h>
+#include <netlink/utils.h>
+#include <netlink/object.h>
+
+#warning "You are including a deprecated header file, include <netlink/object.h>."
+
+#endif
diff --git a/include/netlink/route/link/api.h b/include/netlink/route/link/api.h
new file mode 100644 (file)
index 0000000..03b1e5e
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * netlink/route/link/api.h    Link Modules API
+ *
+ *     This library is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU Lesser General Public
+ *     License as published by the Free Software Foundation version 2.1
+ *     of the License.
+ *
+ * Copyright (c) 2013 Thomas Graf <tgraf@suug.ch>
+ */
+
+#ifndef NETLINK_DUMMY_LINK_API_H_
+#define NETLINK_DUMMY_LINK_API_H_
+
+#include <netlink/netlink.h>
+#include <netlink/route/link.h>
+
+#warning "You are including a deprecated header file, include <netlink/route/link.h>."
+
+#endif
diff --git a/include/netlink/route/link/info-api.h b/include/netlink/route/link/info-api.h
new file mode 100644 (file)
index 0000000..1087ad4
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * netlink/route/link/info-api.h       Link Modules API
+ *
+ *     This library is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU Lesser General Public
+ *     License as published by the Free Software Foundation version 2.1
+ *     of the License.
+ *
+ * Copyright (c) 2013 Thomas Graf <tgraf@suug.ch>
+ */
+
+#ifndef NETLINK_DUMMY_LINK_INFO_API_H_
+#define NETLINK_DUMMY_LINK_INFO_API_H_
+
+#include <netlink/netlink.h>
+#include <netlink/route/link.h>
+
+#warning "You are including a deprecated header file, include <netlink/route/link.h>."
+
+#endif
diff --git a/include/netlink/route/tc-api.h b/include/netlink/route/tc-api.h
new file mode 100644 (file)
index 0000000..b7771b5
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ * netlink/route/tc-api.h      Traffic Control API
+ *
+ *     This library is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU Lesser General Public
+ *     License as published by the Free Software Foundation version 2.1
+ *     of the License.
+ *
+ * Copyright (c) 2013 Thomas Graf <tgraf@suug.ch>
+ */
+
+#ifndef NETLINK_DUMMY_TC_API_H_
+#define NETLINK_DUMMY_TC_API_H_
+
+#include <netlink/netlink.h>
+#include <netlink/msg.h>
+#include <netlink/route/tc.h>
+
+#warning "You are including a deprecated header file, include <netlink/route/tc.h>."
+
+#endif