Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
afb-export: Emit a warning on bad 'afb_require_api' call
[src/app-framework-binder.git]
/
src
/
wrap-json.c
diff --git
a/src/wrap-json.c
b/src/wrap-json.c
index
a1fcb22
..
6bf6f4f
100644
(file)
--- a/
src/wrap-json.c
+++ b/
src/wrap-json.c
@@
-815,7
+815,7
@@
int wrap_json_check(struct json_object *object, const char *desc, ...)
va_list args;
va_start(args, desc);
va_list args;
va_start(args, desc);
- rc =
vunpack(object, desc, args, 0
);
+ rc =
wrap_json_vcheck(object, desc, args
);
va_end(args);
return rc;
}
va_end(args);
return rc;
}
@@
-831,9
+831,9
@@
int wrap_json_match(struct json_object *object, const char *desc, ...)
va_list args;
va_start(args, desc);
va_list args;
va_start(args, desc);
- rc =
vunpack(object, desc, args, 0
);
+ rc =
wrap_json_vmatch(object, desc, args
);
va_end(args);
va_end(args);
- return
!
rc;
+ return rc;
}
int wrap_json_vunpack(struct json_object *object, const char *desc, va_list args)
}
int wrap_json_vunpack(struct json_object *object, const char *desc, va_list args)
@@
-992,9
+992,13
@@
struct json_object *wrap_json_clone_depth(struct json_object *item, int depth)
}
/**
}
/**
- * Clones the 'object': returns a copy of it. But doen't clones
+ * Clones the 'object': returns a copy of it. But doe
s
n't clones
* the content. Synonym of wrap_json_clone_depth(object, 1).
*
* the content. Synonym of wrap_json_clone_depth(object, 1).
*
+ * Be aware that this implementation doesn't clones content that is deeper
+ * than 1 but it does link these contents to the original object and
+ * increments their use count. So, everything deeper that 1 is still available.
+ *
* @param object the object to clone
*
* @return a copy of the object.
* @param object the object to clone
*
* @return a copy of the object.