8e7d6cc3ea6a42e950406bdae08c5ddb550dfa96
[platform/upstream/glib.git] / glib / gvariant-core.h
1 /*
2  * Copyright © 2007, 2008 Ryan Lortie
3  * Copyright © 2010 Codethink Limited
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __G_VARIANT_CORE_H__
20 #define __G_VARIANT_CORE_H__
21
22 #include <glib/gvarianttypeinfo.h>
23 #include <glib/gvariant.h>
24 #include <glib/gbytes.h>
25
26 /* gvariant-core.c */
27
28 GVariant *              g_variant_new_from_children                     (const GVariantType  *type,
29                                                                          GVariant           **children,
30                                                                          gsize                n_children,
31                                                                          gboolean             trusted);
32
33 GVariant *              g_variant_new_serialised                        (const GVariantType  *type,
34                                                                          GBytes              *bytes,
35                                                                          gconstpointer        data,
36                                                                          gsize                size,
37                                                                          gboolean             trusted);
38
39 gboolean                g_variant_is_trusted                            (GVariant            *value);
40
41 GVariantTypeInfo *      g_variant_get_type_info                         (GVariant            *value);
42
43 gconstpointer           g_variant_get_serialised                        (GVariant            *value,
44                                                                          GBytes             **bytes,
45                                                                          gsize               *size);
46
47 #endif /* __G_VARIANT_CORE_H__ */