extern int nl_object_shared(struct nl_object *);
extern void nl_object_dump(struct nl_object *,
struct nl_dump_params *);
+extern void nl_object_dump_buf(struct nl_object *, char *, size_t);
extern int nl_object_identical(struct nl_object *,
struct nl_object *);
extern uint32_t nl_object_diff(struct nl_object *,
dump_from_ops(obj, params);
}
+void nl_object_dump_buf(struct nl_object *obj, char *buf, size_t len)
+{
+ struct nl_dump_params dp = {
+ .dp_buf = buf,
+ .dp_buflen = len,
+ };
+
+ return nl_object_dump(obj, &dp);
+}
+
/**
* Check if the identifiers of two objects are identical
* @arg a an object