2 * << Haru Free PDF Library >> -- hpdf_list.h
4 * URL: http://libharu.org
6 * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7 * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
9 * Permission to use, copy, modify, distribute and sell this software
10 * and its documentation for any purpose is hereby granted without fee,
11 * provided that the above copyright notice appear in all copies and
12 * that both that copyright notice and this permission notice appear
13 * in supporting documentation.
14 * It is provided "as is" without express or implied warranty.
21 #include "hpdf_error.h"
22 #include "hpdf_mmgr.h"
28 typedef struct _HPDF_List_Rec *HPDF_List;
30 typedef struct _HPDF_List_Rec {
34 HPDF_UINT items_per_block;
41 HPDF_List_New (HPDF_MMgr mmgr,
42 HPDF_UINT items_per_block);
46 HPDF_List_Free (HPDF_List list);
50 HPDF_List_Add (HPDF_List list,
55 HPDF_List_Insert (HPDF_List list,
61 HPDF_List_Remove (HPDF_List list,
66 HPDF_List_RemoveByIndex (HPDF_List list,
71 HPDF_List_ItemAt (HPDF_List list,
76 HPDF_List_Find (HPDF_List list,
81 HPDF_List_Clear (HPDF_List list);
85 #endif /* __cplusplus */
87 #endif /* _HPDF_LIST_H */