summaryrefslogtreecommitdiffstats
path: root/include/netlink/handlers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netlink/handlers.h')
-rw-r--r--include/netlink/handlers.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/netlink/handlers.h b/include/netlink/handlers.h
index fcd3e48..f373f58 100644
--- a/include/netlink/handlers.h
+++ b/include/netlink/handlers.h
@@ -23,8 +23,9 @@ extern "C" {
#endif
struct nl_cb;
-struct nl_handle;
+struct nl_sock;
struct nl_msg;
+struct ucred;
/**
* @name Callback Typedefs
@@ -64,10 +65,6 @@ enum nl_cb_action {
NL_STOP,
};
-/* backwards compatibility */
-#define NL_PROCEED NL_OK
-#define NL_EXIT NL_STOP
-
/**
* Callback kinds
* @ingroup cb
@@ -129,15 +126,15 @@ extern int nl_cb_err(struct nl_cb *, enum nl_cb_kind, nl_recvmsg_err_cb_t,
void *);
extern void nl_cb_overwrite_recvmsgs(struct nl_cb *,
- int (*func)(struct nl_handle *,
+ int (*func)(struct nl_sock *,
struct nl_cb *));
extern void nl_cb_overwrite_recv(struct nl_cb *,
- int (*func)(struct nl_handle *,
+ int (*func)(struct nl_sock *,
struct sockaddr_nl *,
unsigned char **,
struct ucred **));
extern void nl_cb_overwrite_send(struct nl_cb *,
- int (*func)(struct nl_handle *,
+ int (*func)(struct nl_sock *,
struct nl_msg *));
#ifdef __cplusplus