00001 #ifndef __db_creation_h__ 00002 #define __db_creation_h__ 00003 00004 #include <glib.h> 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00010 gboolean create_database(const char* dir, 00011 const char* file, 00012 const char* sql, 00013 GError** error); 00014 00015 gboolean ensure_database_created(const char* dir, 00016 const char* file, 00017 const char* sql, 00018 GError** error); 00019 00020 #ifdef __cplusplus 00021 } /* extern "C" */ 00022 #endif 00023 00024 #endif /* __db_creation_h__ */ 00025 00026 /** 00027 00028 db_creation.h 00029 00030 Copyright 2009 Helsinki Institute for Information Technology (HIIT) 00031 and the authors. All rights reserved. 00032 00033 Authors: Tero Hasu <tero.hasu@hut.fi> 00034 00035 Permission is hereby granted, free of charge, to any person 00036 obtaining a copy of this software and associated documentation files 00037 (the "Software"), to deal in the Software without restriction, 00038 including without limitation the rights to use, copy, modify, merge, 00039 publish, distribute, sublicense, and/or sell copies of the Software, 00040 and to permit persons to whom the Software is furnished to do so, 00041 subject to the following conditions: 00042 00043 The above copyright notice and this permission notice shall be 00044 included in all copies or substantial portions of the Software. 00045 00046 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00047 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00048 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00049 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00050 BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00051 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00052 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00053 SOFTWARE. 00054 00055 **/
ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:52 2011 by Doxygen 1.6.1