mirror of
https://github.com/json-c/json-c.git
synced 2026-03-30 02:19:06 +08:00
Introduce json_object_from_fd
Also refactor json_object_from_file to use json_object_from_fd internally. Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
@@ -31,6 +31,7 @@ extern "C" {
|
||||
|
||||
/* utility functions */
|
||||
extern struct json_object* json_object_from_file(const char *filename);
|
||||
extern struct json_object* json_object_from_fd(int fd);
|
||||
extern int json_object_to_file(const char *filename, struct json_object *obj);
|
||||
extern int json_object_to_file_ext(const char *filename, struct json_object *obj, int flags);
|
||||
extern int json_parse_int64(const char *buf, int64_t *retval);
|
||||
|
||||
Reference in New Issue
Block a user