2 * Copyright 2015 Lars Uebernickel
3 * Copyright 2015 Ryan Lortie
5 * SPDX-License-Identifier: LGPL-2.1-or-later
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.
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.
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/>.
21 * Lars Uebernickel <lars@uebernic.de>
22 * Ryan Lortie <desrt@desrt.ca>
25 #ifndef __G_LIST_STORE_H__
26 #define __G_LIST_STORE_H__
28 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
29 #error "Only <gio/gio.h> can be included directly."
32 #include <gio/giotypes.h>
36 #define G_TYPE_LIST_STORE (g_list_store_get_type ())
38 G_DECLARE_FINAL_TYPE(GListStore, g_list_store, G, LIST_STORE, GObject)
41 GListStore * g_list_store_new (GType item_type);
44 void g_list_store_insert (GListStore *store,
49 guint g_list_store_insert_sorted (GListStore *store,
51 GCompareDataFunc compare_func,
55 void g_list_store_sort (GListStore *store,
56 GCompareDataFunc compare_func,
60 void g_list_store_append (GListStore *store,
64 void g_list_store_remove (GListStore *store,
68 void g_list_store_remove_all (GListStore *store);
71 void g_list_store_splice (GListStore *store,
78 gboolean g_list_store_find (GListStore *store,
83 gboolean g_list_store_find_with_equal_func (GListStore *store,
85 GEqualFunc equal_func,
89 gboolean g_list_store_find_with_equal_func_full (GListStore *store,
91 GEqualFuncFull equal_func,
97 #endif /* __G_LIST_STORE_H__ */