summaryrefslogtreecommitdiffstats
path: root/lib/object.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-06-29 18:43:33 (GMT)
committerThomas Haller <thaller@redhat.com>2016-07-08 10:02:07 (GMT)
commitf01e93f1f9fd3ea3dade4e291b965abf3a928794 (patch)
tree509ff9323374e22d5a021d6beddfad55d9334f09 /lib/object.c
parentc312a2a929bbd273619790a9a601f685071a995a (diff)
downloadlibnl-f01e93f1f9fd3ea3dade4e291b965abf3a928794.zip
libnl-f01e93f1f9fd3ea3dade4e291b965abf3a928794.tar.gz
libnl-f01e93f1f9fd3ea3dade4e291b965abf3a928794.tar.bz2
Diffstat (limited to 'lib/object.c')
-rw-r--r--lib/object.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/object.c b/lib/object.c
index 4951885..7405437 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -144,6 +144,17 @@ struct nl_object *nl_object_clone(struct nl_object *obj)
return new;
}
+int _nl_object_check_objflags (struct nl_object *obj,
+ enum oo_objflags flags)
+{
+ struct nl_object_ops *ops = obj_ops(obj);
+
+ if (ops->oo_check_objflags)
+ return ops->oo_check_objflags(obj, flags);
+
+ return -NLE_OPNOTSUPP;
+}
+
int _nl_object_update(struct nl_object *dst,
struct nl_object *src,
enum oo_update_flags flags)