Lines Matching refs:JsonVariant

33 int json_variant_new(JsonVariant **ret, JsonVariantType type) {
34 JsonVariant *v;
36 v = new0(JsonVariant, 1);
44 static int json_variant_deep_copy(JsonVariant *ret, JsonVariant *variant) {
60 ret->objects = new0(JsonVariant, variant->size);
75 static JsonVariant *json_object_unref(JsonVariant *variant);
77 static JsonVariant *json_variant_unref_inner(JsonVariant *variant) {
89 static JsonVariant *json_raw_unref(JsonVariant *variant, size_t size) {
100 static JsonVariant *json_object_unref(JsonVariant *variant) {
115 static JsonVariant **json_variant_array_unref(JsonVariant **variant) {
117 JsonVariant *p = NULL;
133 DEFINE_TRIVIAL_CLEANUP_FUNC(JsonVariant **, json_variant_array_unref);
135 JsonVariant *json_variant_unref(JsonVariant *variant) {
149 char *json_variant_string(JsonVariant *variant){
156 bool json_variant_bool(JsonVariant *variant) {
163 intmax_t json_variant_integer(JsonVariant *variant) {
170 double json_variant_real(JsonVariant *variant) {
177 JsonVariant *json_variant_element(JsonVariant *variant, unsigned index) {
186 JsonVariant *json_variant_value(JsonVariant *variant, const char *key) {
194 JsonVariant *p = &variant->objects[i];
616 static bool json_is_value(JsonVariant *var) {
622 static int json_scoped_parse(JsonVariant **tokens, size_t *i, size_t n, JsonVariant *scope) {
626 JsonVariant *key = NULL, *value = NULL, *var = NULL, *items = NULL;
672 _cleanup_json_variant_unref_ JsonVariant *v = NULL;
736 static int json_parse_tokens(JsonVariant **tokens, size_t ntokens, JsonVariant **rv) {
739 JsonVariant *e;
740 _cleanup_json_variant_unref_ JsonVariant *p = NULL;
763 static int json_tokens(const char *string, size_t size, JsonVariant ***tokens, size_t *n) {
765 _cleanup_(json_variant_array_unrefp) JsonVariant **items = NULL;
784 _cleanup_json_variant_unref_ JsonVariant *var = NULL;
852 int json_parse(const char *string, JsonVariant **rv) {
853 _cleanup_(json_variant_array_unrefp) JsonVariant **s = NULL;
854 JsonVariant *v = NULL;