exip
Alpha 0.5.4
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
src
common
include
dynamicArray.h
Go to the documentation of this file.
1
/*==================================================================*\
2
| EXIP - Embeddable EXI Processor in C |
3
|--------------------------------------------------------------------|
4
| This work is licensed under BSD 3-Clause License |
5
| The full license terms and conditions are located in LICENSE.txt |
6
\===================================================================*/
7
19
#ifndef DYNAMICARRAY_H_
20
#define DYNAMICARRAY_H_
21
22
#include "procTypes.h"
23
35
#define DYN_ARRAY_SIZE (sizeof(DynArray) + sizeof(void*) + sizeof(Index))
36
40
#define DEFAULT_NUMBER_CHUNK_ENTRIES 5
41
51
errorCode
createDynArray
(
DynArray
*
dynArray
,
size_t
entrySize,
uint16_t
chunkSize);
52
62
errorCode
addEmptyDynEntry
(
DynArray
*
dynArray
,
void
**
entry
,
Index
* entryID);
63
73
errorCode
addDynEntry
(
DynArray
*
dynArray
,
void
*
entry
,
Index
* entryID);
74
83
errorCode
delDynEntry
(
DynArray
*
dynArray
,
Index
entryID);
84
90
void
destroyDynArray
(
DynArray
*
dynArray
);
91
92
#endif
/* DYNAMICARRAY_H_ */
Generated on Thu Nov 27 2014 10:56:08 for exip by
1.8.4