Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-01-10 10:14:08

0001 /* json-gvariant.h - JSON GVariant integration
0002  *
0003  * This file is part of JSON-GLib
0004  *
0005  * SPDX-FileCopyrightText: 2007  OpenedHand Ltd.
0006  * SPDX-FileCopyrightText: 2009  Intel Corp.
0007  * SPDX-License-Identifier: LGPL-2.1-or-later
0008  *
0009  * This library is free software; you can redistribute it and/or
0010  * modify it under the terms of the GNU Lesser General Public
0011  * License as published by the Free Software Foundation; either
0012  * version 2.1 of the License, or (at your option) any later version.
0013  *
0014  * This library is distributed in the hope that it will be useful,
0015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0017  * Lesser General Public License for more details.
0018  *
0019  * You should have received a copy of the GNU Lesser General Public
0020  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
0021  *
0022  * Author:
0023  *   Eduardo Lima Mitev  <elima@igalia.com>
0024  */
0025 
0026 #pragma once
0027 
0028 #if !defined(__JSON_GLIB_INSIDE__) && !defined(JSON_COMPILATION)
0029 #error "Only <json-glib/json-glib.h> can be included directly."
0030 #endif
0031 
0032 #include <json-glib/json-types.h>
0033 
0034 G_BEGIN_DECLS
0035 
0036 JSON_AVAILABLE_IN_1_0
0037 JsonNode * json_gvariant_serialize        (GVariant *variant);
0038 JSON_AVAILABLE_IN_1_0
0039 gchar *    json_gvariant_serialize_data   (GVariant *variant,
0040                                            gsize    *length);
0041 
0042 JSON_AVAILABLE_IN_1_0
0043 GVariant * json_gvariant_deserialize      (JsonNode     *json_node,
0044                                            const gchar  *signature,
0045                                            GError      **error);
0046 JSON_AVAILABLE_IN_1_0
0047 GVariant * json_gvariant_deserialize_data (const gchar  *json,
0048                                            gssize        length,
0049                                            const gchar  *signature,
0050                                            GError      **error);
0051 
0052 G_END_DECLS