Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (49 sloc) 2.193 kB
0a1d171 @tagoh another try to clean up glib dependencies
authored
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * lt-list.h
4 * Copyright (C) 2011-2012 Akira TAGOH
5 *
6 * Authors:
7 * Akira TAGOH <akira@tagoh.org>
8 *
9 * You may distribute under the terms of either the GNU
10 * Lesser General Public License or the Mozilla Public
11 * License, as specified in the README file.
12 */
ade8cca @tagoh another try to clean up glib dependencies
authored
13 #if !defined (__LANGTAG_H__INSIDE) && !defined (__LANGTAG_COMPILATION)
14 #error "Only <liblangtag/langtag.h> can be included directly."
15 #endif
16
0a1d171 @tagoh another try to clean up glib dependencies
authored
17 #ifndef __LT_LIST_H__
18 #define __LT_LIST_H__
19
20 #include "lt-macros.h"
21
22 LT_BEGIN_DECLS
23
24 typedef struct _lt_list_t lt_list_t;
25
26 lt_list_t *lt_list_new (void);
27 lt_list_t *lt_list_ref (lt_list_t *list);
28 void lt_list_unref (lt_list_t *list);
29 void lt_list_free (lt_pointer_t data);
30 lt_list_t *lt_list_first (lt_list_t *list);
31 lt_list_t *lt_list_last (lt_list_t *list);
32 lt_list_t *lt_list_previous (const lt_list_t *list);
33 lt_list_t *lt_list_next (const lt_list_t *list);
34 lt_pointer_t lt_list_value (const lt_list_t *list);
35 size_t lt_list_length (const lt_list_t *list);
36 lt_list_t *lt_list_append (lt_list_t *list,
37 lt_pointer_t data,
38 lt_destroy_func_t func);
39 lt_list_t *lt_list_remove (lt_list_t *list,
40 lt_pointer_t value);
41 lt_list_t *lt_list_delete (lt_list_t *list,
42 lt_pointer_t value);
43 lt_list_t *lt_list_delete_link(lt_list_t *list,
44 lt_list_t *link_);
45 lt_list_t *lt_list_copy (lt_list_t *list);
46 lt_list_t *lt_list_find (lt_list_t *list,
47 const lt_pointer_t value);
48 lt_list_t *lt_list_find_custom(lt_list_t *list,
49 const lt_pointer_t data,
50 lt_compare_func_t func);
51 lt_list_t *lt_list_sort (lt_list_t *list,
52 lt_compare_func_t func);
53
54 LT_END_DECLS
55
56 #endif /* __LT_LIST_H__ */
Something went wrong with that request. Please try again.