diff options
author | rofl0r <retnyg@gmx.net> | 2014-07-11 00:03:39 +0200 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2014-07-11 00:03:39 +0200 |
commit | 1f30967e7a2c74ed7252b6c9d04c568877384ba8 (patch) | |
tree | 17b3f011ac196a9862b2364a771a0502a52a83bd /include | |
parent | 0461ceca9873d16191c3645c0ae7109beb229e28 (diff) | |
download | libnl-tiny-1f30967e7a2c74ed7252b6c9d04c568877384ba8.tar.gz |
make libnl 1.0 compat macros available when LIBNL1_COMPAT is set
Diffstat (limited to 'include')
-rw-r--r-- | include/netlink/genl/genl.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/netlink/genl/genl.h b/include/netlink/genl/genl.h index 3f3340c..a3d2b6d 100644 --- a/include/netlink/genl/genl.h +++ b/include/netlink/genl/genl.h @@ -40,6 +40,13 @@ extern int genlmsg_attrlen(const struct genlmsghdr *, int); extern char * genl_op2name(int, int, char *, size_t); +#ifdef LIBNL1_COMPAT +/* compatibility stuff for netlink 1.0 */ +#define nl_handle nl_sock +#define nl_handle_alloc_cb nl_socket_alloc_cb +#define nl_handle_destroy nl_socket_free +#endif + #ifdef __cplusplus } #endif |