Home
last modified time | relevance | path

Searched refs:jobj (Results 1 – 2 of 2) sorted by relevance

/openbmc/openbmc/poky/meta-selftest/recipes-test/cpp/files/
H A Dcpp-example-lib.cpp24 struct json_object *jobj; in print_json() local
27 jobj = json_object_new_object(); in print_json()
28 json_object_object_add(jobj, "test_string", json_object_new_string(test_string.c_str())); in print_json()
30 std::cout << json_object_to_json_string_ext(jobj, flag) << std::endl; in print_json()
32 json_object_put(jobj); // Delete the json object in print_json()
/openbmc/libcper/
H A Dcper-parse.c88 json_object *jobj = cper_to_ir(cper_file); in cper_to_str_ir() local
89 char *str = jobj ? strdup(json_object_to_json_string(jobj)) : NULL; in cper_to_str_ir()
91 json_object_put(jobj); in cper_to_str_ir()
409 json_object *jobj = cper_single_section_to_ir(cper_section_file); in cper_single_section_to_str_ir() local
410 char *str = jobj ? strdup(json_object_to_json_string(jobj)) : NULL; in cper_single_section_to_str_ir()
412 json_object_put(jobj); in cper_single_section_to_str_ir()