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:
parent
9680f910f4
commit
1b9de9a49d
6 changed files with 109 additions and 1 deletions
|
@ -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 += \
|
||||
|
|
20
include/netlink/cache-api.h
Normal file
20
include/netlink/cache-api.h
Normal 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
|
21
include/netlink/object-api.h
Normal file
21
include/netlink/object-api.h
Normal 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
|
20
include/netlink/route/link/api.h
Normal file
20
include/netlink/route/link/api.h
Normal 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
|
20
include/netlink/route/link/info-api.h
Normal file
20
include/netlink/route/link/info-api.h
Normal 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
|
21
include/netlink/route/tc-api.h
Normal file
21
include/netlink/route/tc-api.h
Normal 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
|
Loading…
Add table
Reference in a new issue