New PHP5 APC - version 3.0.19, using PHP5 5.2.0-8+etch11,
[php5-apc.git] / apc_stack.h
1 /*
2   +----------------------------------------------------------------------+
3   | APC                                                                  |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 2008 The PHP Group                                     |
6   +----------------------------------------------------------------------+
7   | This source file is subject to version 3.01 of the PHP license,      |
8   | that is bundled with this package in the file LICENSE, and is        |
9   | available through the world-wide-web at the following url:           |
10   | http://www.php.net/license/3_01.txt                                  |
11   | If you did not receive a copy of the PHP license and are unable to   |
12   | obtain it through the world-wide-web, please send a note to          |
13   | license@php.net so we can mail you a copy immediately.               |
14   +----------------------------------------------------------------------+
15   | Authors: Daniel Cowgill <dcowgill@communityconnect.com>              |
16   |          George Schlossnagle <george@omniti.com>                     |
17   +----------------------------------------------------------------------+
18
19    This software was contributed to PHP by Community Connect Inc. in 2002
20    and revised in 2005 by Yahoo! Inc. to add support for PHP 5.1.
21    Future revisions and derivatives of this source code must acknowledge
22    Community Connect Inc. as the original contributor of this module by
23    leaving this note intact in the source code.
24
25    All other licensing and usage conditions are those of the PHP Group.
26
27  */
28
29 /* $Id: apc_stack.h,v 3.4.2.1 2008/05/11 18:57:00 rasmus Exp $ */
30
31 #ifndef APC_STACK_H
32 #define APC_STACK_H
33
34 /* Basic stack datatype */
35
36 #define T apc_stack_t*
37 typedef struct apc_stack_t apc_stack_t; /* opaque stack type */
38
39 extern T apc_stack_create(int size_hint);
40 extern void apc_stack_destroy(T stack);
41 extern void apc_stack_clear(T stack);
42 extern void apc_stack_push(T stack, void* item);
43 extern void* apc_stack_pop(T stack);
44 extern void* apc_stack_top(T stack);
45 extern void* apc_stack_get(T stack, int n);
46 extern int apc_stack_size(T stack);
47
48 #undef T
49 #endif
50
51 /*
52  * Local variables:
53  * tab-width: 4
54  * c-basic-offset: 4
55  * End:
56  * vim600: expandtab sw=4 ts=4 sts=4 fdm=marker
57  * vim<600: expandtab sw=4 ts=4 sts=4
58  */