From c5a4f3d7738f8172de40112cf4a02fbd4b0a9902 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 22 Mar 2010 12:18:23 +0100 Subject: finish API documentation This patch may contain errors but we can review them and fix them later, better to have it in the tree (to allow others to contribute) to keep it in my local tree. --- src/msg.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/msg.c') diff --git a/src/msg.c b/src/msg.c index 02f812b..0824eb3 100644 --- a/src/msg.c +++ b/src/msg.c @@ -164,6 +164,13 @@ struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, int *len) return (struct nlmsghdr *)((void *)nlh + mnl_align(nlh->nlmsg_len)); } +/** + * mnl_nlmsg_get_tail - get the ending of the netlink message + * @nlh: pointer to netlink message + * + * This function returns a pointer to the netlink message tail. This is useful + * to build a message since we continue adding attribute at the end of it. + */ void *mnl_nlmsg_get_tail(const struct nlmsghdr *nlh) { return (struct nlmsghdr *)((void *)nlh + mnl_align(nlh->nlmsg_len)); -- cgit v1.2.3