| 1 |
/* |
| 2 |
* deque.h -- double ended queue |
| 3 |
* Copyright (C) 2003-2004 Ushodaya Enterprises Limited |
| 4 |
* Author: Charles Yates <[email protected]> |
| 5 |
* Copied from mlt: http://www.sf.net/projects/mlt |
| 6 |
* |
| 7 |
* This library is free software; you can redistribute it and/or |
| 8 |
* modify it under the terms of the GNU Lesser General Public |
| 9 |
* License as published by the Free Software Foundation; either |
| 10 |
* version 2.1 of the License, or (at your option) any later version. |
| 11 |
* |
| 12 |
* This library is distributed in the hope that it will be useful, |
| 13 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 |
* Lesser General Public License for more details. |
| 16 |
* |
| 17 |
* You should have received a copy of the GNU Lesser General Public |
| 18 |
* License along with this library; if not, write to the Free Software |
| 19 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 |
*/ |
| 21 |
|
| 22 |
|
| 23 |
#ifndef _IEC61883_DEQUE_H |
| 24 |
#define _IEC61883_DEQUE_H |
| 25 |
|
| 26 |
typedef struct iec61883_deque* iec61883_deque_t; |
| 27 |
|
| 28 |
#ifdef __cplusplus |
| 29 |
extern "C" { |
| 30 |
#endif |
| 31 |
|
| 32 |
iec61883_deque_t iec61883_deque_init( ); |
| 33 |
int iec61883_deque_size( iec61883_deque_t self ); |
| 34 |
int iec61883_deque_push_back( iec61883_deque_t self, void *item ); |
| 35 |
void *iec61883_deque_pop_back( iec61883_deque_t self ); |
| 36 |
int iec61883_deque_push_front( iec61883_deque_t self, void *item ); |
| 37 |
void *iec61883_deque_pop_front( iec61883_deque_t self ); |
| 38 |
void *iec61883_deque_back( iec61883_deque_t self ); |
| 39 |
void *iec61883_deque_front( iec61883_deque_t self ); |
| 40 |
void iec61883_deque_close( iec61883_deque_t self ); |
| 41 |
|
| 42 |
#ifdef __cplusplus |
| 43 |
} |
| 44 |
#endif |
| 45 |
|
| 46 |
#endif /* _IEC61883_DEQUE_H */ |