diff options
author | Thomas Graf <tgr@lsx.localdomain> | 2008-05-15 13:26:32 +0200 |
---|---|---|
committer | Thomas Graf <tgr@lsx.localdomain> | 2008-05-15 13:26:32 +0200 |
commit | 1155370f520cb64657e25153255cf7dc1424317f (patch) | |
tree | bfa1323d2495dfe5729eb27d0536d4349f2a9d86 /include/netlink/genl | |
parent | 0cf780859cbce363a6e2cd4b8d19c5498a3530f5 (diff) | |
download | libnl-1155370f520cb64657e25153255cf7dc1424317f.tar.gz |
Rename struct nl_handle to struct nl_sock
The idea of a common handle is long revised and only misleading,
nl_handle really represents a socket with some additional
action handlers assigned to it.
Alias for nl_handle is kept for backwards compatibility.
Diffstat (limited to 'include/netlink/genl')
-rw-r--r-- | include/netlink/genl/ctrl.h | 4 | ||||
-rw-r--r-- | include/netlink/genl/genl.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/netlink/genl/ctrl.h b/include/netlink/genl/ctrl.h index f66338e1..1ae62f44 100644 --- a/include/netlink/genl/ctrl.h +++ b/include/netlink/genl/ctrl.h @@ -22,12 +22,12 @@ extern "C" { struct genl_family; -extern int genl_ctrl_alloc_cache(struct nl_handle *, +extern int genl_ctrl_alloc_cache(struct nl_sock *, struct nl_cache **); extern struct genl_family * genl_ctrl_search(struct nl_cache *, int); extern struct genl_family * genl_ctrl_search_by_name(struct nl_cache *, const char *); -extern int genl_ctrl_resolve(struct nl_handle *, +extern int genl_ctrl_resolve(struct nl_sock *, const char *); #ifdef __cplusplus diff --git a/include/netlink/genl/genl.h b/include/netlink/genl/genl.h index de142d07..3f3340cf 100644 --- a/include/netlink/genl/genl.h +++ b/include/netlink/genl/genl.h @@ -6,7 +6,7 @@ * License as published by the Free Software Foundation version 2.1 * of the License. * - * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch> + * Copyright (c) 2003-2008 Thomas Graf <tgraf@suug.ch> */ #ifndef NETLINK_GENL_H_ @@ -20,9 +20,9 @@ extern "C" { #endif -extern int genl_connect(struct nl_handle *); +extern int genl_connect(struct nl_sock *); -extern int genl_send_simple(struct nl_handle *, int, int, +extern int genl_send_simple(struct nl_sock *, int, int, int, int); extern void * genlmsg_put(struct nl_msg *, uint32_t, uint32_t, |