From 1b9de9a49d02cf311a3dcf1d06fff4dea7794282 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Thu, 24 Jan 2013 14:03:52 +0100 Subject: Provide compat headers for removed private API 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 --- include/Makefile.am | 8 +++++++- include/netlink/cache-api.h | 20 ++++++++++++++++++++ include/netlink/object-api.h | 21 +++++++++++++++++++++ include/netlink/route/link/api.h | 20 ++++++++++++++++++++ include/netlink/route/link/info-api.h | 20 ++++++++++++++++++++ include/netlink/route/tc-api.h | 21 +++++++++++++++++++++ 6 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 include/netlink/cache-api.h create mode 100644 include/netlink/object-api.h create mode 100644 include/netlink/route/link/api.h create mode 100644 include/netlink/route/link/info-api.h create mode 100644 include/netlink/route/tc-api.h diff --git a/include/Makefile.am b/include/Makefile.am index 50f96b7..1e07fdb 100644 --- a/include/Makefile.am +++ b/include/Makefile.am @@ -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 index 0000000..e43c7ca --- /dev/null +++ b/include/netlink/cache-api.h @@ -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 + */ + +#ifndef NETLINK_DUMMY_CACHE_API_H_ +#define NETLINK_DUMMY_CACHE_API_H_ + +#include +#include + +#warning "You are including a deprecated header file, include ." + +#endif diff --git a/include/netlink/object-api.h b/include/netlink/object-api.h new file mode 100644 index 0000000..6f8f010 --- /dev/null +++ b/include/netlink/object-api.h @@ -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 + */ + +#ifndef NETLINK_DUMMY_OBJECT_API_H_ +#define NETLINK_DUMMY_OBJECT_API_H_ + +#include +#include +#include + +#warning "You are including a deprecated header file, include ." + +#endif diff --git a/include/netlink/route/link/api.h b/include/netlink/route/link/api.h new file mode 100644 index 0000000..03b1e5e --- /dev/null +++ b/include/netlink/route/link/api.h @@ -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 + */ + +#ifndef NETLINK_DUMMY_LINK_API_H_ +#define NETLINK_DUMMY_LINK_API_H_ + +#include +#include + +#warning "You are including a deprecated header file, include ." + +#endif diff --git a/include/netlink/route/link/info-api.h b/include/netlink/route/link/info-api.h new file mode 100644 index 0000000..1087ad4 --- /dev/null +++ b/include/netlink/route/link/info-api.h @@ -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 + */ + +#ifndef NETLINK_DUMMY_LINK_INFO_API_H_ +#define NETLINK_DUMMY_LINK_INFO_API_H_ + +#include +#include + +#warning "You are including a deprecated header file, include ." + +#endif diff --git a/include/netlink/route/tc-api.h b/include/netlink/route/tc-api.h new file mode 100644 index 0000000..b7771b5 --- /dev/null +++ b/include/netlink/route/tc-api.h @@ -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 + */ + +#ifndef NETLINK_DUMMY_TC_API_H_ +#define NETLINK_DUMMY_TC_API_H_ + +#include +#include +#include + +#warning "You are including a deprecated header file, include ." + +#endif -- cgit v0.12