libHartwer - Documentation

bcs_errorcodes.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 
00034 #ifndef BCS_ERRORCODES_H_
00035 #define BCS_ERRORCODES_H_
00036 
00037 #include <errno.h>
00038 
00042 typedef enum {
00043        BCS_ERR_OK = 0, 
00044        BCS_ERR_CONNECTIONCLOSED = 2, 
00045        BCS_ERR_GENERAL = -1, 
00046        BCS_ERR_OUTOFMEM = 3, 
00047        BCS_ERR_NOTALLOWED = 4, 
00048        BCS_ERR_KEY_FAILURE = 5, 
00049        BCS_ERR_SIZE = 6, 
00050        BCS_ERR_WRONGARGS = 7, 
00051        BCS_ERR_NOTSENT = 8, 
00052        BCS_ERR_EMPTY = 9, 
00053        BCS_ERR_TIMEOUT = 10 
00054 } BCS_ERROR;
00055 
00062 const char* bcs_strerror(BCS_ERROR e);
00063 
00064 #endif /* BCS_ERRORCODES_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.