Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gvaluearray.h
Go to the documentation of this file.
1/* GObject - GLib Type, Object, Parameter and Signal Library
2 * Copyright (C) 2001 Red Hat, Inc.
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General
17 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
18 *
19 * gvaluearray.h: GLib array type holding GValues
20 */
21#ifndef __G_VALUE_ARRAY_H__
22#define __G_VALUE_ARRAY_H__
23
24#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
25#error "Only <glib-object.h> can be included directly."
26#endif
27
28#include <gobject/gvalue.h>
29
31
32/**
33 * G_TYPE_VALUE_ARRAY:
34 *
35 * The type ID of the "GValueArray" type which is a boxed type,
36 * used to pass around pointers to GValueArrays.
37 *
38 * Deprecated: 2.32: Use #GArray instead of #GValueArray
39 */
40#define G_TYPE_VALUE_ARRAY (g_value_array_get_type ()) GOBJECT_DEPRECATED_MACRO_IN_2_32_FOR(G_TYPE_ARRAY)
41
42/* --- typedefs & structs --- */
45{
48
49 /*< private >*/
51};
52
53/* --- prototypes --- */
56
59 guint index_);
60
63
65void g_value_array_free (GValueArray *value_array);
66
69
72 const GValue *value);
73
76 const GValue *value);
77
80 guint index_,
81 const GValue *value);
82
85 guint index_);
86
89 GCompareFunc compare_func);
90
93 GCompareDataFunc compare_func,
94 gpointer user_data);
95
96
98
99#endif /* __G_VALUE_ARRAY_H__ */
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define GOBJECT_DEPRECATED_IN_2_32_FOR(f)
gsize GType
Definition gtype.h:427
void * gpointer
Definition gtypes.h:109
gint(* GCompareFunc)(gconstpointer a, gconstpointer b)
Definition gtypes.h:112
unsigned int guint
Definition gtypes.h:61
gint(* GCompareDataFunc)(gconstpointer a, gconstpointer b, gpointer user_data)
Definition gtypes.h:114
GValueArray * g_value_array_prepend(GValueArray *value_array, const GValue *value)
GValueArray * g_value_array_sort_with_data(GValueArray *value_array, GCompareDataFunc compare_func, gpointer user_data)
GValueArray * g_value_array_copy(const GValueArray *value_array)
GValueArray * g_value_array_remove(GValueArray *value_array, guint index_)
GValueArray * g_value_array_sort(GValueArray *value_array, GCompareFunc compare_func)
GType g_value_array_get_type(void) G_GNUC_CONST
void g_value_array_free(GValueArray *value_array)
GValueArray * g_value_array_append(GValueArray *value_array, const GValue *value)
GValueArray * g_value_array_insert(GValueArray *value_array, guint index_, const GValue *value)
GValue * g_value_array_get_nth(GValueArray *value_array, guint index_)
GValueArray * g_value_array_new(guint n_prealloced)
int value
Definition lsqlite3.c:2155
guint n_prealloced
Definition gvaluearray.h:50
GValue * values
Definition gvaluearray.h:47