summaryrefslogtreecommitdiffstats
path: root/PCbuild/sqlite3.vcxproj
diff options
context:
space:
mode:
Diffstat (limited to 'PCbuild/sqlite3.vcxproj')
0 files changed, 0 insertions, 0 deletions
/th>b2d4e35429fa3147d3c345beb5388a3948acf4de /include parent0ba7e663ce3f6bd624c0b8f4dc27a33cfcb0f5d1 (diff)downloadlibnl-e5d9b828f6ec64fd77854578fbf1c33f214f3ac4.zip
libnl-e5d9b828f6ec64fd77854578fbf1c33f214f3ac4.tar.gz
libnl-e5d9b828f6ec64fd77854578fbf1c33f214f3ac4.tar.bz2
act: grab a reference when adding an action to a filter
When we add an action to a filter, its lifetime becomes same with the filter. So in case user frees it before us, we could just grab a reference here. Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/netlink/route/action.h1
-rw-r--r--include/netlink/utils.h7
2 files changed, 8 insertions, 0 deletions
diff --git a/include/netlink/route/action.h b/include/netlink/route/action.h
index e904432..054bdd8 100644
--- a/include/netlink/route/action.h
+++ b/include/netlink/route/action.h
@@ -22,6 +22,7 @@ extern "C" {
#endif
extern struct rtnl_act *rtnl_act_alloc(void);
+extern void rtnl_act_get(struct rtnl_act *);
extern void rtnl_act_put(struct rtnl_act *);
extern int rtnl_act_build_add_request(struct rtnl_act *, int,
struct nl_msg **);
diff --git a/include/netlink/utils.h b/include/netlink/utils.h