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 <tgraf@suug.ch>
This commit is contained in:
Thomas Graf 2013-01-24 14:03:52 +01:00
parent 9680f910f4
commit 1b9de9a49d
6 changed files with 109 additions and 1 deletions

View 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 += \

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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