platform_error.h

Go to the documentation of this file.
00001 #ifndef __platform_error_h__
00002 #define __platform_error_h__
00003 
00004 #include "common/utilities.h"
00005 #include <glib.h>
00006 
00007 #ifdef __EPOC32__
00008 EXTERN_C const char* symbian_error_strerror(int err);
00009 
00010 #define plat_error_strerror(err) symbian_error_strerror(err)
00011 #define NO_MEMORY_ERROR (-4) // KErrNoMem
00012 #else
00013 #define plat_error_strerror(err) strerror(err)
00014 #define NO_MEMORY_ERROR ENOMEM
00015 #endif
00016 
00017 // Converts a platform-specific error code 'errCode' to a GError. If 'errCode' means "no error", just returns FALSE.
00018 EXTERN_C gboolean code_means_no_error(int errCode, const char* desc, GError** error);
00019 
00020 #endif /* __platform_error_h__ */
00021 
00022 /**
00023 
00024 platform_error.h
00025 
00026 Copyright 2009 Helsinki Institute for Information Technology (HIIT)
00027 and the authors. All rights reserved.
00028 
00029 Authors: Tero Hasu <tero.hasu@hut.fi>
00030 
00031 Permission is hereby granted, free of charge, to any person
00032 obtaining a copy of this software and associated documentation files
00033 (the "Software"), to deal in the Software without restriction,
00034 including without limitation the rights to use, copy, modify, merge,
00035 publish, distribute, sublicense, and/or sell copies of the Software,
00036 and to permit persons to whom the Software is furnished to do so,
00037 subject to the following conditions:
00038 
00039 The above copyright notice and this permission notice shall be
00040 included in all copies or substantial portions of the Software.
00041 
00042 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00043 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00044 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00045 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
00046 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00047 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00048 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
00049 SOFTWARE.
00050 
00051  **/

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:55 2011 by Doxygen 1.6.1