(root)/
glib-2.79.0/
glib/
gvariant-core.h
       1  /*
       2   * Copyright © 2007, 2008 Ryan Lortie
       3   * Copyright © 2010 Codethink Limited
       4   *
       5   * SPDX-License-Identifier: LGPL-2.1-or-later
       6   *
       7   * This library is free software; you can redistribute it and/or
       8   * modify it under the terms of the GNU Lesser General Public
       9   * License as published by the Free Software Foundation; either
      10   * version 2.1 of the License, or (at your option) any later version.
      11   *
      12   * This library is distributed in the hope that it will be useful,
      13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
      14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      15   * Lesser General Public License for more details.
      16   *
      17   * You should have received a copy of the GNU Lesser General Public
      18   * License along with this library; if not, see <http://www.gnu.org/licenses/>.
      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/gbytes.h>
      27  
      28  /* gvariant-core.c */
      29  
      30  GVariant *              g_variant_new_from_children                     (const GVariantType  *type,
      31                                                                           GVariant           **children,
      32                                                                           gsize                n_children,
      33                                                                           gboolean             trusted);
      34  
      35  gboolean                g_variant_is_trusted                            (GVariant            *value);
      36  
      37  GVariantTypeInfo *      g_variant_get_type_info                         (GVariant            *value);
      38  
      39  gsize                   g_variant_get_depth                             (GVariant            *value);
      40  
      41  GVariant *              g_variant_maybe_get_child_value                 (GVariant            *value,
      42                                                                           gsize                index_);
      43  
      44  #endif /* __G_VARIANT_CORE_H__ */