Home
last modified time | relevance | path

Searched refs:json_build (Results 1 – 25 of 34) sorted by relevance

12

/systemd-251/src/network/
Dnetworkd-json.c42 r = json_build(&v, JSON_BUILD_OBJECT( in address_build_json()
89 …r = json_build(ret, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("Addresses", JSON_BUILD_VARIANT_ARRAY(elemen… in addresses_build_json()
109 r = json_build(&v, JSON_BUILD_OBJECT( in neighbor_build_json()
146 …r = json_build(ret, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("Neighbors", JSON_BUILD_VARIANT_ARRAY(elemen… in neighbors_build_json()
173 r = json_build(elements + n, JSON_BUILD_OBJECT( in nexthop_group_build_json()
214 r = json_build(&v, JSON_BUILD_OBJECT( in nexthop_build_json()
256 …r = json_build(ret, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("NextHops", JSON_BUILD_VARIANT_ARRAY(element… in nexthops_build_json()
297 r = json_build(&v, JSON_BUILD_OBJECT( in route_build_json()
354 …r = json_build(ret, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("Routes", JSON_BUILD_VARIANT_ARRAY(elements,… in routes_build_json()
383 r = json_build(&v, JSON_BUILD_OBJECT( in routing_policy_rule_build_json()
[all …]
/systemd-251/src/test/
Dtest-json.c269 assert_se(json_build(&a, JSON_BUILD_STRING("hallo")) >= 0); in TEST()
270 assert_se(json_build(&b, JSON_BUILD_LITERAL(" \"hallo\" ")) >= 0); in TEST()
275 assert_se(json_build(&b, JSON_BUILD_VARIANT(a)) >= 0); in TEST()
279 assert_se(json_build(&b, JSON_BUILD_STRING("pief")) >= 0); in TEST()
285 assert_se(json_build(&a, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("one", JSON_BUILD_INTEGER(7)), in TEST()
289 assert_se(json_build(&b, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("two", JSON_BUILD_INTEGER(2)), in TEST()
299 …assert_se(json_build(&a, JSON_BUILD_ARRAY(JSON_BUILD_OBJECT(JSON_BUILD_PAIR("x", JSON_BUILD_BOOLEA… in TEST()
318 assert_se(json_build(&a, JSON_BUILD_REAL(M_PI)) >= 0); in TEST()
332 assert_se(json_build(&a, JSON_BUILD_OBJECT( in TEST()
338 assert_se(json_build(&b, JSON_BUILD_OBJECT( in TEST()
[all …]
Dtest-varlink.c44 r = json_build(&ret, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("sum", JSON_BUILD_INTEGER(x + y)))); in method_something()
149 assert_se(json_build(&i, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("a", JSON_BUILD_INTEGER(88)), in thread()
225 assert_se(json_build(&v, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("a", JSON_BUILD_INTEGER(7)), in main()
Dtest-format-table.c381 assert_se(json_build(&w, in TEST()
/systemd-251/src/core/
Dcore-varlink.c29 return json_build(ret, JSON_BUILD_OBJECT( in build_user_json()
82 return json_build(ret_v, JSON_BUILD_OBJECT( in build_managed_oom_json_array_element()
116 r = json_build(&arr, JSON_BUILD_EMPTY_ARRAY); in manager_varlink_send_managed_oom_update()
132 r = json_build(&v, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("cgroups", JSON_BUILD_VARIANT(arr)))); in manager_varlink_send_managed_oom_update()
156 r = json_build(&arr, JSON_BUILD_EMPTY_ARRAY); in build_managed_oom_cgroups_json()
190 r = json_build(&v, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("cgroups", JSON_BUILD_VARIANT(arr)))); in build_managed_oom_cgroups_json()
336 return json_build(ret, JSON_BUILD_OBJECT( in build_group_json()
/systemd-251/src/shared/
Delf-util.c355 … r = json_build(&w, JSON_BUILD_OBJECT(JSON_BUILD_PAIR(name, JSON_BUILD_VARIANT(v)))); in parse_package_metadata()
408 …r = json_build(&id_json, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("buildId", JSON_BUILD_HEX(id, id_len)))… in parse_buildid()
631 …r = json_build(&package_metadata, JSON_BUILD_OBJECT(JSON_BUILD_PAIR(e, JSON_BUILD_VARIANT(id_json)… in parse_elf()
644 …r = json_build(&elf_metadata, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("elfType", JSON_BUILD_STRING(elf_t… in parse_elf()
653 r = json_build(&json_architecture, in parse_elf()
Duserdb.c628 r = json_build(&query, JSON_BUILD_OBJECT( in userdb_by_name()
681 r = json_build(&query, JSON_BUILD_OBJECT( in userdb_by_uid()
901 r = json_build(&query, JSON_BUILD_OBJECT( in groupdb_by_name()
952 r = json_build(&query, JSON_BUILD_OBJECT( in groupdb_by_gid()
1160 r = json_build(&query, JSON_BUILD_OBJECT( in membershipdb_by_user()
1206 r = json_build(&query, JSON_BUILD_OBJECT( in membershipdb_by_group()
Dvarlink.c1304 r = json_build(&m, JSON_BUILD_OBJECT( in varlink_send()
1355 r = json_build(&m, JSON_BUILD_OBJECT( in varlink_invoke()
1408 r = json_build(&m, JSON_BUILD_OBJECT( in varlink_observe()
1468 r = json_build(&m, JSON_BUILD_OBJECT( in varlink_call()
1568 …r = json_build(&m, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("parameters", JSON_BUILD_VARIANT(parameters))… in varlink_reply()
1625 r = json_build(&m, JSON_BUILD_OBJECT( in varlink_error()
1679 r = json_build(&parameters_obj, in varlink_error_invalid_parameter()
1692 r = json_build(&parameters_obj, in varlink_error_invalid_parameter()
1726 r = json_build(&m, JSON_BUILD_OBJECT( in varlink_notify()
Duser-record-nss.c141 r = json_build(&hr->json, JSON_BUILD_OBJECT( in nss_passwd_to_user_record()
367 r = json_build(&g->json, JSON_BUILD_OBJECT( in nss_group_to_group_record()
Djson.h328 int json_build(JsonVariant **ret, ...);
/systemd-251/src/home/
Dhomed-varlink.c55 return json_build(ret, JSON_BUILD_OBJECT( in build_user_json()
171 return json_build(ret, in build_group_json()
Dhomed-bus.c23 r = json_build(&full, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("secret", JSON_BUILD_VARIANT(v)))); in bus_message_read_secret()
Dhomectl-recovery-key.c21 r = json_build(&e, JSON_BUILD_OBJECT( in add_privileged()
Duser-record-sign.c79 r = json_build(&encoded, JSON_BUILD_ARRAY( in user_record_sign()
Dhomectl-fido2.c88 r = json_build(&e, JSON_BUILD_OBJECT( in add_fido2_salt()
Dhomectl-pkcs11.c41 r = json_build(&e, JSON_BUILD_OBJECT( in add_pkcs11_encrypted_key()
Duser-record-util.c82 r = json_build(&h->json, in user_record_synthesize()
142 r = json_build(&g->json, in group_record_synthesize()
332 r = json_build(&new_binding_entry, in user_record_add_binding()
/systemd-251/src/cryptenroll/
Dcryptenroll-recovery.c77 r = json_build(&v, in enroll_recovery()
Dcryptenroll-fido2.c77 r = json_build(&v, in enroll_fido2()
Dcryptenroll-pkcs11.c84 r = json_build(&v, in enroll_pkcs11()
/systemd-251/src/nss-resolve/
Dnss-resolve.c252 r = json_build(&cparams, JSON_BUILD_OBJECT( in _nss_resolve_gethostbyname4_r()
413 r = json_build(&cparams, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("name", JSON_BUILD_STRING(name)), in _nss_resolve_gethostbyname3_r()
625 …r = json_build(&cparams, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("address", JSON_BUILD_BYTE_ARRAY(addr, … in _nss_resolve_gethostbyaddr2_r()
/systemd-251/src/machine/
Dmachined-varlink.c24 return json_build(ret, JSON_BUILD_OBJECT( in build_user_json()
196 return json_build(ret, JSON_BUILD_OBJECT( in build_group_json()
/systemd-251/src/userdb/
Duserwork.c110 return json_build(ret, JSON_BUILD_OBJECT( in build_user_json()
262 return json_build(ret, JSON_BUILD_OBJECT( in build_group_json()
/systemd-251/src/resolve/
Dresolved-varlink.c199 r = json_build(&entry, in vl_method_resolve_hostname_complete()
427 r = json_build(&entry, in vl_method_resolve_address_complete()
/systemd-251/src/busctl/
Dbusctl.c1181 r = json_build(&w, JSON_BUILD_OBJECT( in message_json()
1693 r = json_build(ret, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("type", JSON_BUILD_STRING(contents)), in json_transform_variant()
1978 r = json_build(ret, JSON_BUILD_OBJECT(JSON_BUILD_PAIR("type", JSON_BUILD_STRING(type)), in json_transform_message()

12