[HQ](Debian) Package version up
[external/glib2.0.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, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __G_VARIANT_CORE_H__
22 #define __G_VARIANT_CORE_H__
23
24 #include <glib/gvarianttypeinfo.h>
25 #include <glib/gvariant.h>
26 #include <glib/gbuffer.h>
27
28 /* gvariant-core.c */
29 G_GNUC_INTERNAL
30 GVariant *              g_variant_new_from_buffer                       (const GVariantType *type,
31                                                                          GBuffer            *buffer,
32                                                                          gboolean            trusted);
33
34 G_GNUC_INTERNAL
35 GVariant *              g_variant_new_from_children                     (const GVariantType  *type,
36                                                                          GVariant           **children,
37                                                                          gsize                n_children,
38                                                                          gboolean             trusted);
39
40 G_GNUC_INTERNAL
41 gboolean                g_variant_is_trusted                            (GVariant            *value);
42
43 G_GNUC_INTERNAL
44 GVariantTypeInfo *      g_variant_get_type_info                         (GVariant            *value);
45
46 #endif /* __G_VARIANT_CORE_H__ */