00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
#ifndef DEBIAN_INSTALLER__LIST_H
00024
#define DEBIAN_INSTALLER__LIST_H
00025
00026
#include <debian-installer/mem_chunk.h>
00027
00028
typedef struct di_list di_list;
00029
typedef struct di_list_node di_list_node;
00030
00039 struct di_list
00040 {
00041 di_list_node *
head;
00042 di_list_node *
bottom;
00043 };
00044
00048 struct di_list_node
00049 {
00050 di_list_node *
next;
00051 di_list_node *
prev;
00052 void *
data;
00053 };
00054
00060 di_list *
di_list_alloc (
void);
00061
00069
void di_list_destroy (di_list *list, di_destroy_notify destroy_func) __attribute__ ((nonnull(1)));
00070
00076
void di_list_free (di_list *list);
00077
00086
void di_list_append (di_list *list,
void *data) __attribute__ ((nonnull(1)));
00087
00096
void di_list_append_chunk (di_list *list,
void *data,
di_mem_chunk *mem_chunk) __attribute__ ((nonnull(1,3)));
00097
00106
void di_list_prepend (di_list *list,
void *data) __attribute__ ((nonnull(1)));
00107
00119
void di_list_prepend_chunk (di_list *list,
void *data,
di_mem_chunk *mem_chunk) __attribute__ ((nonnull(1,3)));
00120
00122
#endif