source: libcf/trunk/include/cf_stack.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: 638 bytes
RevLine 
[109]1/**
[128]2 * \file cf_stack.h
[109]3 *
[128]4 * \author myusgun <myusgun@gmail.com>
5 *
[119]6 * \brief 스택
[109]7 *
[119]8 * \example stack.c
[109]9 */
10#ifndef __CF_STACK_H__
11#define __CF_STACK_H__
12
13#include "cf_base.h"
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19CF_EXPORT int
[151]20CF_Stack_Create (cf_ctx * ctx);
[109]21
22CF_EXPORT int
[151]23CF_Stack_Destroy (cf_ctx ctx);
[109]24
25CF_EXPORT int
[151]26CF_Stack_Push (cf_ctx ctx,
27 const void * element);
[109]28
29CF_EXPORT int
[151]30CF_Stack_Pop (cf_ctx ctx,
31 void ** element);
[109]32
33CF_EXPORT int
[151]34CF_Stack_Top (cf_ctx ctx,
35 void ** element);
[109]36
37CF_EXPORT int
[151]38CF_Stack_GetSize (cf_ctx ctx);
[109]39
40#ifdef __cplusplus
41}
42#endif
43
44#endif // #ifndef __CF_STACK_H__
Note: See TracBrowser for help on using the repository browser.