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

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

#1 fix interface and add util module

File size: 636 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#ifdef __cplusplus
16extern "C" {
17#endif
18
19CF_EXPORT int
20CF_Queue_Create (cf_ctx * ctx);
21
22CF_EXPORT int
23CF_Queue_Destroy (cf_ctx ctx);
24
25CF_EXPORT int
26CF_Queue_Put (cf_ctx ctx,
27 const void * element);
28
29CF_EXPORT int
30CF_Queue_Get (cf_ctx ctx,
31 void ** element);
32
33CF_EXPORT int
34CF_Queue_Front (cf_ctx ctx,
35 void ** element);
36
37CF_EXPORT int
38CF_Queue_GetSize (cf_ctx ctx);
39
40#ifdef __cplusplus
41}
42#endif
43
44#endif // #ifndef __CF_QUEUE_H__
Note: See TracBrowser for help on using the repository browser.