1 /**********
2 *
3 * Copyright (c) 2003, Division of Imaging Science and Biomedical Engineering,
4 * University of Manchester, UK. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without modification,
7 * are permitted provided that the following conditions are met:
8 *
9 * . Redistributions of source code must retain the above copyright notice,
10 * this list of conditions and the following disclaimer.
11 *
12 * . Redistributions in binary form must reproduce the above copyright notice,
13 * this list of conditions and the following disclaimer in the documentation
14 * and/or other materials provided with the distribution.
15 *
16 * . Neither the name of the University of Manchester nor the names of its
17 * contributors may be used to endorse or promote products derived from this
18 * software without specific prior written permission.
19 *
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
25 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 *
33 **********
34 *
35 * Program : TINA
36 * File : $Source: /home/tina/cvs/tina-libs/tina/sys/sysLst_dd.h,v $
37 * Date : $Date: 2008/10/02 11:53:05 $
38 * Version : $Revision: 1.4 $
39 * CVS Id : $Id: sysLst_dd.h,v 1.4 2008/10/02 11:53:05 neil Exp $
40 *
41 * Notes :
42 *
43 *********
44 */
45
46 #ifndef TINA_SYS_LST_DD_HDR
47 #define TINA_SYS_LST_DD_HDR
48
49 #if HAVE_CONFIG_H
50 #include <config.h>
51 #endif
52
53 #include <tina/sys/sys_GenDef.h>
54 #include <tina/sys/sys_LstDef.h>
55
56 #ifdef __cplusplus
57 extern "C" {
58 #endif /* __cplusplus */
59
60 #if HAVE_STDARG_H
61 List *dd_list_of(int type, ...);
62 #else
63 List *dd_list_of();
64 #endif /* HAVE_STDARG_H */
65
66 void *dd_list_query(List * list, void *(*match_func) (), void *key);
67 List *dd_nth_el(List * list, int n);
68 List *dd_list_add_sorted(List * list, List * el, double (*sortfunc) ());
69 List *dd_get_min(List * list, Bool(*func) (), void *data);
70 void dd_apply_func(List * list, void (*func) (), void *data);
71 List *dd_list_reversecopy(List * list, void *(*cpfunc) (), void *data);
72 List *dd_list_reverse(List * list);
73 List *dd_list_copy(List * list, void *(*cpfunc) (), void *data);
74 List *dd_link_copy(List * el, void *(*cpfunc) (), void *data);
75 void dd_list_rm(List * list, void (*freefunc) ());
76 void dd_list_free_refs(List * list, void (*freefunc) ());
77 List *dd_list_rm_links_on_func(List * list, Bool(*func) (), void *data);
78 List *dd_list_rm_links_on_type(List * list, int type);
79 void dd_list_rm_links(List * list);
80 List *dd_list_rm_ref(List * list, void *ptr, void (*freefunc) ());
81 List *dd_link_get_by_type(List * list, int type);
82 List *dd_link_get_by_ref(List * list, void *ptr);
83 List *dd_list_rm_el(List * list, List * el, void (*freefunc) ());
84 List *dd_link_rm(List * at, void (*freefunc) ());
85 void dd_link_rm_next(List * at, void (*freefunc) ());
86 void dd_ref_free(List * at, void (*freefunc) ());
87 List *dd_link_rm_el(List * at);
88 void dd_link_rm_next_el(List * at);
89 void dd_link_addafter(List * at, List * el);
90 List *dd_list_addtoend(List * list, List * el);
91 List *dd_ref_addtoend(List * end, void *ptr, int type);
92 List *dd_link_addtoend(List * end, List * el);
93 List *dd_link_addtostart(List * list, List * el);
94 List *dd_append(List * l1, List * l2);
95 List *dd_get_start(List * list);
96 List *dd_get_end(List * list);
97 List *dd_ref_addtostart(List * list, void *ptr, int type);
98 List *dd_list_make(int n, int type);
99 void dd_ref_set(List * el, void *ptr, int type);
100 List *dd_link_alloc(void *ptr, int type);
101
102 #ifdef __cplusplus
103 }
104 #endif /* __cplusplus */
105
106
107 #endif /* TINA_SYS_LST_DD_HDR */
108
109
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.