libdebian-installer
Main Page
Related Pages
Modules
Data Structures
Files
File List
include
debian-installer
list.h
1
/*
2
* list.h
3
*
4
* Copyright (C) 2003 Bastian Blank <waldi@debian.org>
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
10
*
11
* This program 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
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef DEBIAN_INSTALLER__LIST_H
21
#define DEBIAN_INSTALLER__LIST_H
22
23
#include <debian-installer/mem_chunk.h>
24
25
typedef
struct
di_list
di_list
;
26
typedef
struct
di_list_node
di_list_node
;
27
36
struct
di_list
37
{
38
di_list_node
*
head
;
39
di_list_node
*
bottom
;
40
};
41
45
struct
di_list_node
46
{
47
di_list_node
*
next
;
48
di_list_node
*
prev
;
49
void
*
data
;
50
};
51
57
di_list
*
di_list_alloc
(
void
);
58
66
void
di_list_destroy
(
di_list
*list,
di_destroy_notify
destroy_func) __attribute__ ((nonnull(1)));
67
73
void
di_list_free
(
di_list
*list);
74
83
void
di_list_append
(
di_list
*list,
void
*data) __attribute__ ((nonnull(1)));
84
93
void
di_list_append_chunk
(
di_list
*list,
void
*data,
di_mem_chunk
*mem_chunk) __attribute__ ((nonnull(1,3)));
94
103
void
di_list_prepend
(
di_list
*list,
void
*data) __attribute__ ((nonnull(1)));
104
116
void
di_list_prepend_chunk
(
di_list
*list,
void
*data,
di_mem_chunk
*mem_chunk) __attribute__ ((nonnull(1,3)));
117
119
#endif
Generated on Tue Oct 8 2013 09:46:11 for libdebian-installer by
1.8.4