main.h
00001 /* 00002 00003 This source file is part of Scol 00004 For the latest info, see http://www.scolring.org 00005 00006 Copyright (c) 2010 Stephane Bisaro, aka Iri <iri@irizone.net> 00007 00008 This source is under the terms of the Scol License. See the COPYING included file 00009 for more informations. 00010 00011 This program is distributed in the hope that it will be useful, but WITHOUT 00012 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00013 FOR A PARTICULAR PURPOSE. 00014 00015 For others informations, please contact us from http://www.scolring.org/ 00016 00017 */ 00018 00019 #ifndef __MAIN_H__ 00020 #define __MAIN_H__ 00021 00022 #include <stdio.h> 00023 #include <stdlib.h> 00024 #include <string.h> 00025 #if ((defined __WIN32__) || (defined WIN32)) 00026 #include <windows.h> 00027 #include "scol_plugin_win.h" 00028 #else 00029 #include "scol_plugin_lin.h" 00030 #endif 00031 #include "macros.h" 00032 #include "rsc/sqlite3.h" 00033 00034 00035 #define SQLITE_PKG_NB 33 00036 #define SQLITE_RFL_NB 2 00037 int ObjSqliteType; 00038 00039 #define SCOL_SQLITE_CB 0 00040 00041 #define SCOL_SQLITE_CBPROGRESS 1 00042 00043 00044 00045 #define SCOL_SQLITE_VERSION "0.1a5" 00046 00047 #ifndef __bool_true_false_are_defined 00048 # define bool int 00049 # define true 1 00050 # define false 0 00051 # define __bool_true_false_are_defined 00052 #endif 00053 00054 00055 #define SizeHeader 3 00056 #define SizeWord 4 00057 00058 #define OBJDD_BUFFER 0 /* widget C pointer etc*/ 00059 #define OBJDD_HANDLE 1 /* system handler*/ 00060 #define OBJDD_CHANNEL 2 /* channel*/ 00061 #define OBJDD_FLAGS 0 /* object flags*/ 00062 #define OBJDD_SIZE 4 /* size for MMmalloc*/ 00063 00064 /*#define OBJSQLITE_SIZE 3 00065 #define OBJSQLITE_HANDLE 0 00066 #define OBJSQLITE_NAME 1 00067 #define OBJSQLITE_KILLED 2*/ 00068 #define OBJSQLITE_SIZE 3 00069 #define OBJSQLITE_HANDLE 4 00070 #define OBJSQLITE_NAME 1 00071 #define OBJSQLITE_KILLED 2 00072 00073 /* Api Scol flags*/ 00074 #define SCOL_SQLITE_ONLYREAD 1 00075 #define SCOL_SQLITE_READWRITE 2 00076 #define SCOL_SQLITE_OPEN_NOMUTEX 4 00077 #define SCOL_SQLITE_OPEN_FULLMUTEX 8 00078 #define SCOL_SQLITE_OPEN_SHAREDCACHE 16 00079 #define SCOL_SQLITE_OPEN_PRIVATE_CACHE 32 00080 00081 #define SCOL_SQLITE_LENGTH_LIMIT 1 00082 #define SCOL_SQLITE_SQL_LENGTH_LIMIT 2 00083 #define SCOL_SQLITE_COLUMN_LIMIT 3 00084 #define SCOL_SQLITE_EXPR_DEPTH_LIMIT 4 00085 #define SCOL_SQLITE_COMPOUND_SELECT_LIMIT 5 00086 #define SCOL_SQLITE_VDBE_OP_LIMIT 6 00087 #define SCOL_SQLITE_FUNCTION_ARG_LIMIT 7 00088 #define SCOL_SQLITE_ATTACHED_LIMIT 8 00089 #define SCOL_SQLITE_LIKE_PATTERN_LENGTH_LIMIT 9 00090 #define SCOL_SQLITE_VARIABLE_NUMBER_LIMIT 10 00091 #define SCOL_SQLITE_TRIGGER_DEPTH_LIMIT 11 00092 00093 00094 struct ObjVoid { 00095 00096 int Type; /* le type d'objet , voir plus bas */ 00097 int Father; /* le pointeur magma sur le pere */ 00098 int Buffer ; /* donnee de type TYPEBUF */ 00099 int Tab; /* donnee de type TYPETAB */ 00100 } ; 00101 typedef struct ObjVoid *PtrObjVoid ; 00102 00103 00104 /* int callobjsqlitecallbackProgress (int *mm);*/ 00105 int callobjsqlitecallbackProgress (mmachine m); 00106 00107 #endif /* __MAIN_H__ */
Generated on Tue Mar 15 13:59:36 2011 for sqlite3 by 1.6.3