Make struct nla_policy and struct nlattr const
[project/libnl-tiny.git] / include / netlink / msg.h
index b3e2b0b2b9906ec5740ac7d1ec4588b8c833bb54..f0346916ef7464b8fe6eb8696f1f3a137649a04f 100644 (file)
@@ -64,9 +64,9 @@ struct ucred;
 extern int               nlmsg_ok(const struct nlmsghdr *, int);
 extern struct nlmsghdr *  nlmsg_next(struct nlmsghdr *, int *);
 extern int               nlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
-                                     int, struct nla_policy *);
-extern int               nlmsg_validate(struct nlmsghdr *, int, int,
-                                        struct nla_policy *);
+                                     int, const struct nla_policy *);
+extern int               nlmsg_validate(const struct nlmsghdr *, int, int,
+                                        const struct nla_policy *);
 
 extern struct nl_msg *   nlmsg_alloc(void);
 extern struct nl_msg *   nlmsg_alloc_size(size_t);