libdebian-installer
Main Page
Related Pages
Modules
Data Structures
Files
File List
include
debian-installer
slist.h
1
/*
2
* slist.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__SLIST_H
21
#define DEBIAN_INSTALLER__SLIST_H
22
23
#include <debian-installer/mem_chunk.h>
24
25
typedef
struct
di_slist
di_slist
;
26
typedef
struct
di_slist_node
di_slist_node
;
27
36
struct
di_slist
37
{
38
di_slist_node
*
head
;
39
di_slist_node
*
bottom
;
40
};
41
45
struct
di_slist_node
46
{
47
di_slist_node
*
next
;
48
void
*
data
;
49
};
50
56
di_slist
*
di_slist_alloc
(
void
);
57
65
void
di_slist_destroy
(
di_slist
*slist,
di_destroy_notify
destroy_func) __attribute__ ((nonnull(1)));
66
72
void
di_slist_free
(
di_slist
*slist);
73
82
void
di_slist_append
(
di_slist
*slist,
void
*data) __attribute__ ((nonnull(1)));
83
95
void
di_slist_append_chunk
(
di_slist
*slist,
void
*data,
di_mem_chunk
*mem_chunk) __attribute__ ((nonnull(1,3)));
96
105
void
di_slist_prepend
(
di_slist
*slist,
void
*data) __attribute__ ((nonnull(1)));
106
118
void
di_slist_prepend_chunk
(
di_slist
*slist,
void
*data,
di_mem_chunk
*mem_chunk) __attribute__ ((nonnull(1,3)));
119
121
#endif
Generated on Fri Apr 12 2013 10:00:30 for libdebian-installer by
1.8.3.1