Haru Free PDF Library
hpdf_list.h
Go to the documentation of this file.
1 /*
2  * << Haru Free PDF Library >> -- hpdf_list.h
3  *
4  * URL: http://libharu.org
5  *
6  * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7  * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
8  *
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.
15  *
16  */
17 
18 #ifndef _HPDF_LIST_H
19 #define _HPDF_LIST_H
20 
21 #include "hpdf_error.h"
22 #include "hpdf_mmgr.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 typedef struct _HPDF_List_Rec *HPDF_List;
29 
30 typedef struct _HPDF_List_Rec {
36  void **obj;
38 
39 
42  HPDF_UINT items_per_block);
43 
44 
45 void
47 
48 
51  void *item);
52 
53 
56  void *target,
57  void *item);
58 
59 
62  void *item);
63 
64 
65 void*
67  HPDF_UINT index);
68 
69 
70 void*
72  HPDF_UINT index);
73 
74 
77  void *item);
78 
79 
80 void
82 
83 #ifdef __cplusplus
84 }
85 #endif /* __cplusplus */
86 
87 #endif /* _HPDF_LIST_H */
88 
HPDF_List HPDF_List_New(HPDF_MMgr mmgr, HPDF_UINT items_per_block)
void * HPDF_List_RemoveByIndex(HPDF_List list, HPDF_UINT index)
HPDF_INT32 HPDF_List_Find(HPDF_List list, void *item)
struct _HPDF_List_Rec HPDF_List_Rec
void * HPDF_List_ItemAt(HPDF_List list, HPDF_UINT index)
void HPDF_List_Free(HPDF_List list)
void HPDF_List_Clear(HPDF_List list)
struct _HPDF_List_Rec * HPDF_List
Definition: hpdf_list.h:28
HPDF_STATUS HPDF_List_Remove(HPDF_List list, void *item)
HPDF_STATUS HPDF_List_Add(HPDF_List list, void *item)
HPDF_STATUS HPDF_List_Insert(HPDF_List list, void *target, void *item)
unsigned int HPDF_UINT
Definition: hpdf_types.h:45
signed int HPDF_INT32
Definition: hpdf_types.h:56
unsigned long HPDF_STATUS
Definition: hpdf_types.h:94
Definition: hpdf_error.h:180
Definition: hpdf_list.h:30
void ** obj
Definition: hpdf_list.h:36
HPDF_UINT block_siz
Definition: hpdf_list.h:33
HPDF_Error error
Definition: hpdf_list.h:32
HPDF_UINT count
Definition: hpdf_list.h:35
HPDF_UINT items_per_block
Definition: hpdf_list.h:34
HPDF_MMgr mmgr
Definition: hpdf_list.h:31
Definition: hpdf_mmgr.h:40