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

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

#1 add bitwise util from ARIA of chevalier

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