00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
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
00059 #define OBJDD_HANDLE 1
00060 #define OBJDD_CHANNEL 2
00061 #define OBJDD_FLAGS 0
00062 #define OBJDD_SIZE 4
00063
00064
00065
00066
00067
00068 #define OBJSQLITE_SIZE 3
00069 #define OBJSQLITE_HANDLE 4
00070 #define OBJSQLITE_NAME 1
00071 #define OBJSQLITE_KILLED 2
00072
00073
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;
00097 int Father;
00098 int Buffer ;
00099 int Tab;
00100 } ;
00101 typedef struct ObjVoid *PtrObjVoid ;
00102
00103
00104
00105 int callobjsqlitecallbackProgress (mmachine m);
00106
00107 #endif