GnuCash 2.4.99
test-dbi-stuff.h
00001 /***************************************************************************
00002  *            test-dbi-stuff.h
00003  *
00004  *  Tests saving and loading to a dbi/sqlite3 db
00005  *
00006  *  Copyright (C) 2009  Phil Longstaff <plongstaff@rogers.com>
00007  ****************************************************************************/
00008 
00009 /*
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00023  *  02110-1301, USA.
00024  */
00025 
00026 #ifndef _TEST_DBI_STUFF_H_
00027 #define _TEST_DBI_STUFF_H_
00028 
00029 #include "qof.h"
00030 
00031 typedef struct
00032 {
00033     QofBook* book_1;
00034     QofBook* book_2;
00035     gboolean result;
00036 } CompareInfoStruct;
00037 
00038 void do_compare( QofBook* book_1, QofBook* book_2, const gchar* id, QofInstanceForeachCB cb, const gchar* msg );
00047 void test_dbi_store_and_reload( const gchar* driver, QofSession* session_1, const gchar* url );
00048 
00056 void test_dbi_safe_save( const gchar* driver, const gchar* url );
00057 
00060 void test_dbi_version_control( const gchar* driver,  const gchar* url );
00061 
00062 #endif
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines