source: libcf/trunk/include/cf_queue.h@ 109

Last change on this file since 109 was 109, checked in by cheese, 11 years ago

#1 add typical data structure algorithms (linked-list / queue / stak) and rename symbol for context of each modules

File size: 709 bytes
Line 
1/**
2 * @file cf_queue.h
3 * @author myusgun <myusgun@gmail.com>
4 *
5 * @remark 큐
6 *
7 * @example queue.c
8 */
9#ifndef __CF_STACK_H__
10#define __CF_QUEUE_H__
11
12#include "cf_base.h"
13
14typedef void * CF_Queue_Ctx;
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20CF_EXPORT int
21CF_Queue_CreateCtx (CF_Queue_Ctx * ctx);
22
23CF_EXPORT int
24CF_Queue_DestroyCtx (CF_Queue_Ctx ctx);
25
26CF_EXPORT int
27CF_Queue_Put (CF_Queue_Ctx ctx,
28 const void * element);
29
30CF_EXPORT int
31CF_Queue_Get (CF_Queue_Ctx ctx,
32 void ** element);
33
34CF_EXPORT int
35CF_Queue_Front (CF_Queue_Ctx ctx,
36 void ** element);
37
38CF_EXPORT int
39CF_Queue_GetSize (CF_Queue_Ctx ctx);
40
41#ifdef __cplusplus
42}
43#endif
44
45#endif // #ifndef __CF_QUEUE_H__
Note: See TracBrowser for help on using the repository browser.