Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gliststore.h
Go to the documentation of this file.
1/*
2 * Copyright 2015 Lars Uebernickel
3 * Copyright 2015 Ryan Lortie
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
18 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 *
20 * Authors:
21 * Lars Uebernickel <lars@uebernic.de>
22 * Ryan Lortie <desrt@desrt.ca>
23 */
24
25#ifndef __G_LIST_STORE_H__
26#define __G_LIST_STORE_H__
27
28#if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
29#error "Only <gio/gio.h> can be included directly."
30#endif
31
32#include <gio/giotypes.h>
33
35
36#define G_TYPE_LIST_STORE (g_list_store_get_type ())
38G_DECLARE_FINAL_TYPE(GListStore, g_list_store, G, LIST_STORE, GObject)
39
41GListStore * g_list_store_new (GType item_type);
42
44void g_list_store_insert (GListStore *store,
45 guint position,
46 gpointer item);
47
50 gpointer item,
51 GCompareDataFunc compare_func,
52 gpointer user_data);
53
55void g_list_store_sort (GListStore *store,
56 GCompareDataFunc compare_func,
57 gpointer user_data);
58
60void g_list_store_append (GListStore *store,
61 gpointer item);
62
64void g_list_store_remove (GListStore *store,
65 guint position);
66
68void g_list_store_remove_all (GListStore *store);
69
71void g_list_store_splice (GListStore *store,
72 guint position,
73 guint n_removals,
74 gpointer *additions,
75 guint n_additions);
76
78gboolean g_list_store_find (GListStore *store,
79 gpointer item,
80 guint *position);
81
84 gpointer item,
85 GEqualFunc equal_func,
86 guint *position);
87
90 gpointer item,
91 GEqualFuncFull equal_func,
92 gpointer user_data,
93 guint *position);
94
96
97#endif /* __G_LIST_STORE_H__ */
#define GIO_AVAILABLE_IN_2_74
#define GIO_AVAILABLE_IN_2_46
#define GIO_AVAILABLE_IN_2_44
#define GIO_AVAILABLE_IN_2_64
GIO_AVAILABLE_IN_2_44 void g_list_store_splice(GListStore *store, guint position, guint n_removals, gpointer *additions, guint n_additions)
GIO_AVAILABLE_IN_2_64 gboolean g_list_store_find(GListStore *store, gpointer item, guint *position)
GIO_AVAILABLE_IN_2_44 void g_list_store_insert(GListStore *store, guint position, gpointer item)
GIO_AVAILABLE_IN_2_44 GIO_AVAILABLE_IN_2_44 GListStore * g_list_store_new(GType item_type)
GIO_AVAILABLE_IN_2_44 guint g_list_store_insert_sorted(GListStore *store, gpointer item, GCompareDataFunc compare_func, gpointer user_data)
GIO_AVAILABLE_IN_2_44 void g_list_store_remove_all(GListStore *store)
GIO_AVAILABLE_IN_2_44 void g_list_store_remove(GListStore *store, guint position)
GIO_AVAILABLE_IN_2_64 gboolean g_list_store_find_with_equal_func(GListStore *store, gpointer item, GEqualFunc equal_func, guint *position)
GIO_AVAILABLE_IN_2_46 void g_list_store_sort(GListStore *store, GCompareDataFunc compare_func, gpointer user_data)
GIO_AVAILABLE_IN_2_44 void g_list_store_append(GListStore *store, gpointer item)
GIO_AVAILABLE_IN_2_74 gboolean g_list_store_find_with_equal_func_full(GListStore *store, gpointer item, GEqualFuncFull equal_func, gpointer user_data, guint *position)
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_DECLARE_FINAL_TYPE(ModuleObjName, module_obj_name, MODULE, OBJ_NAME, ParentName)
Definition gtype.h:1602
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
void * gpointer
Definition gtypes.h:109
gboolean(* GEqualFunc)(gconstpointer a, gconstpointer b)
Definition gtypes.h:117
unsigned int guint
Definition gtypes.h:61
gboolean(* GEqualFuncFull)(gconstpointer a, gconstpointer b, gpointer user_data)
Definition gtypes.h:136
gint(* GCompareDataFunc)(gconstpointer a, gconstpointer b, gpointer user_data)
Definition gtypes.h:114
#define G(L)