Lines Matching refs:JsonVariant
22 static int address_build_json(Address *address, JsonVariant **ret) { in address_build_json()
23 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in address_build_json()
65 static int addresses_build_json(Set *addresses, JsonVariant **ret) { in addresses_build_json()
66 JsonVariant **elements; in addresses_build_json()
78 elements = new(JsonVariant*, set_size(addresses)); in addresses_build_json()
97 static int neighbor_build_json(Neighbor *n, JsonVariant **ret) { in neighbor_build_json()
98 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in neighbor_build_json()
122 static int neighbors_build_json(Set *neighbors, JsonVariant **ret) { in neighbors_build_json()
123 JsonVariant **elements; in neighbors_build_json()
135 elements = new(JsonVariant*, set_size(neighbors)); in neighbors_build_json()
154 static int nexthop_group_build_json(NextHop *nexthop, JsonVariant **ret) { in nexthop_group_build_json()
155 JsonVariant **elements; in nexthop_group_build_json()
168 elements = new(JsonVariant*, hashmap_size(nexthop->group)); in nexthop_group_build_json()
190 static int nexthop_build_json(NextHop *n, JsonVariant **ret) { in nexthop_build_json()
191 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL, *group = NULL; in nexthop_build_json()
232 static int nexthops_build_json(Set *nexthops, JsonVariant **ret) { in nexthops_build_json()
233 JsonVariant **elements; in nexthops_build_json()
245 elements = new(JsonVariant*, set_size(nexthops)); in nexthops_build_json()
264 static int route_build_json(Route *route, JsonVariant **ret) { in route_build_json()
265 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in route_build_json()
330 static int routes_build_json(Set *routes, JsonVariant **ret) { in routes_build_json()
331 JsonVariant **elements; in routes_build_json()
343 elements = new(JsonVariant*, set_size(routes)); in routes_build_json()
362 static int routing_policy_rule_build_json(RoutingPolicyRule *rule, JsonVariant **ret) { in routing_policy_rule_build_json()
363 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in routing_policy_rule_build_json()
425 static int routing_policy_rules_build_json(Set *rules, JsonVariant **ret) { in routing_policy_rules_build_json()
426 JsonVariant **elements; in routing_policy_rules_build_json()
438 elements = new(JsonVariant*, set_size(rules)); in routing_policy_rules_build_json()
457 static int network_build_json(Network *network, JsonVariant **ret) { in network_build_json()
477 static int device_build_json(sd_device *device, JsonVariant **ret) { in device_build_json()
503 …t struct in_addr_full *a, NetworkConfigSource s, const union in_addr_union *p, JsonVariant **ret) { in dns_build_json_one()
504 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL; in dns_build_json_one()
531 static int dns_build_json(Link *link, JsonVariant **ret) { in dns_build_json()
532 JsonVariant **elements = NULL; in dns_build_json()
663 …t union in_addr_union *a, NetworkConfigSource s, const union in_addr_union *p, JsonVariant **ret) { in server_build_json_one_addr()
675 …family, const char *fqdn, NetworkConfigSource s, const union in_addr_union *p, JsonVariant **ret) { in server_build_json_one_fqdn()
686 static int server_build_json_one_string(const char *str, NetworkConfigSource s, JsonVariant **ret) { in server_build_json_one_string()
699 static int ntp_build_json(Link *link, JsonVariant **ret) { in ntp_build_json()
700 JsonVariant **elements = NULL; in ntp_build_json()
815 static int sip_build_json(Link *link, JsonVariant **ret) { in sip_build_json()
817 JsonVariant **elements; in sip_build_json()
840 elements = new(JsonVariant*, n_sip); in sip_build_json()
864 …mily, const char *domain, NetworkConfigSource s, const union in_addr_union *p, JsonVariant **ret) { in domain_build_json()
875 static int domains_build_json(Link *link, bool is_route, JsonVariant **ret) { in domains_build_json()
877 JsonVariant **elements = NULL; in domains_build_json()
1004 static int nta_build_json(const char *nta, NetworkConfigSource s, JsonVariant **ret) { in nta_build_json()
1013 static int ntas_build_json(Link *link, JsonVariant **ret) { in ntas_build_json()
1014 JsonVariant **elements = NULL; in ntas_build_json()
1056 static int dns_misc_build_json(Link *link, JsonVariant **ret) { in dns_misc_build_json()
1057 JsonVariant **elements = NULL; in dns_misc_build_json()
1153 int link_build_json(Link *link, JsonVariant **ret) { in link_build_json()
1154 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL, *w = NULL; in link_build_json()
1340 static int link_json_compare(JsonVariant * const *a, JsonVariant * const *b) { in link_json_compare()
1352 static int links_build_json(Manager *manager, JsonVariant **ret) { in links_build_json()
1353 JsonVariant **elements; in links_build_json()
1361 elements = new(JsonVariant*, hashmap_size(manager->links_by_index)); in links_build_json()
1382 int manager_build_json(Manager *manager, JsonVariant **ret) { in manager_build_json()
1383 _cleanup_(json_variant_unrefp) JsonVariant *v = NULL, *w = NULL; in manager_build_json()