libHartwer - Documentation

bcs_queue.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) 2008-2011 Marius Zwicker / Elefant Racing Bayreuth. 
00003 * All rights reserved.
00004 *
00005 * @ERB_OPEN_LICENSE_HEADER_START@
00006 *
00007 * Licensed under the Apache License, Version 2.0 (the "License");
00008 * you may not use this file except in compliance with the License.
00009 * You may obtain a copy of the License at
00010 * 
00011 *     http://www.apache.org/licenses/LICENSE-2.0
00012 * 
00013 * Unless required by applicable law or agreed to in writing, software
00014 * distributed under the License is distributed on an "AS IS" BASIS,
00015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016 * See the License for the specific language governing permissions and
00017 * limitations under the License.
00018 *
00019 *      http://www.elefantracing.de
00020 *
00021 * @ERB_OPEN_LICENSE_HEADER_END@
00022 */
00023 
00038 #ifndef BCS_QUEUE_H_
00039 #define BCS_QUEUE_H_
00040 
00041 #ifdef __cplusplus
00042 extern "C" {
00043 #endif
00044 
00045 #include <pthread.h>
00046 #include "bcs_errorcodes.h"
00047 #include "bcs_general.h"
00048 
00049 #ifndef BCS_Q_FLAG_ENUM
00050 #define BCS_Q_FLAG_ENUM
00051 
00054 typedef enum {
00055        BCS_Q_NONE, 
00056        BCS_Q_NOWAIT 
00057 } BCS_Q_Flag;
00058 #endif
00059 
00067 void BCS_FF_getQueue( BCS_FF_queue* q );
00068 
00075 void BCS_FF_deleteQueue( BCS_FF_queue* q );
00076 
00084 BCS_ERROR BCS_FF_getItem(BCS_FF_queue* q, void** data, BCS_Q_Flag f);
00085 
00092 BCS_ERROR BCS_FF_addItem(BCS_FF_queue* q, void* data);
00093 
00094 #ifdef __cplusplus
00095        }
00096 #endif
00097 
00098 #endif /* BCS_QUEUE_H_ */

Generated on Fri Feb 11 2011 18:25:46 for libHartwer by Doxygen 1.7.3
Content © 2009-2011 Elefant Racing Bayreuth & MLBA (About) – Design © 2010 Emzeat. All Rights reserved.