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 |
|
---|
14 | typedef void * CF_Queue_Ctx;
|
---|
15 |
|
---|
16 | #ifdef __cplusplus
|
---|
17 | extern "C" {
|
---|
18 | #endif
|
---|
19 |
|
---|
20 | CF_EXPORT int
|
---|
21 | CF_Queue_CreateCtx (CF_Queue_Ctx * ctx);
|
---|
22 |
|
---|
23 | CF_EXPORT int
|
---|
24 | CF_Queue_DestroyCtx (CF_Queue_Ctx ctx);
|
---|
25 |
|
---|
26 | CF_EXPORT int
|
---|
27 | CF_Queue_Put (CF_Queue_Ctx ctx,
|
---|
28 | const void * element);
|
---|
29 |
|
---|
30 | CF_EXPORT int
|
---|
31 | CF_Queue_Get (CF_Queue_Ctx ctx,
|
---|
32 | void ** element);
|
---|
33 |
|
---|
34 | CF_EXPORT int
|
---|
35 | CF_Queue_Front (CF_Queue_Ctx ctx,
|
---|
36 | void ** element);
|
---|
37 |
|
---|
38 | CF_EXPORT int
|
---|
39 | CF_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.