00001 /* ndk - [ expandingQueue.h ] 00002 * 00003 * Basic abstract expanding queue class 00004 * 00005 * (c)2004 dcipher / neuraldk 00006 * www.neuraldk.org 00007 */ 00008 00017 #include <errorCodes.h> 00018 #include <types.h> 00019 00020 typedef struct _ExpandingQueue *ExpandingQueue; 00021 00022 ErrorCode expandingQueueCreate(ExpandingQueue *q, uint32 size); 00023 ErrorCode expandingQueueAdd(ExpandingQueue q, Pointer item); 00024 ErrorCode expandingQueueGet(ExpandingQueue q, Pointer *item); 00025 ErrorCode expandingQueuePeek(ExpandingQueue q, Pointer *item); 00026 00027 //ErrorCode expandingQueueGetSize(ExpandingQueue q, uint32 *size); 00028 //ErrorCode expandingQueueGetRemaining(ExpandingQueue q, uint32 *rem); 00029 ErrorCode expandingQueueDestroy(ExpandingQueue *q); 00030