Rev | Line | |
---|
[109] | 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 |
|
---|
[113] | 14 | /** 큐 컨텍스트 (Opaque) */
|
---|
[109] | 15 | typedef void * CF_Queue_Ctx;
|
---|
| 16 |
|
---|
| 17 | #ifdef __cplusplus
|
---|
| 18 | extern "C" {
|
---|
| 19 | #endif
|
---|
| 20 |
|
---|
| 21 | CF_EXPORT int
|
---|
| 22 | CF_Queue_CreateCtx (CF_Queue_Ctx * ctx);
|
---|
| 23 |
|
---|
| 24 | CF_EXPORT int
|
---|
| 25 | CF_Queue_DestroyCtx (CF_Queue_Ctx ctx);
|
---|
| 26 |
|
---|
| 27 | CF_EXPORT int
|
---|
| 28 | CF_Queue_Put (CF_Queue_Ctx ctx,
|
---|
| 29 | const void * element);
|
---|
| 30 |
|
---|
| 31 | CF_EXPORT int
|
---|
| 32 | CF_Queue_Get (CF_Queue_Ctx ctx,
|
---|
| 33 | void ** element);
|
---|
| 34 |
|
---|
| 35 | CF_EXPORT int
|
---|
| 36 | CF_Queue_Front (CF_Queue_Ctx ctx,
|
---|
| 37 | void ** element);
|
---|
| 38 |
|
---|
| 39 | CF_EXPORT int
|
---|
| 40 | CF_Queue_GetSize (CF_Queue_Ctx ctx);
|
---|
| 41 |
|
---|
| 42 | #ifdef __cplusplus
|
---|
| 43 | }
|
---|
| 44 | #endif
|
---|
| 45 |
|
---|
| 46 | #endif // #ifndef __CF_QUEUE_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.