int sqlite3_initialize(void); int sqlite3_shutdown(void); /* Members are set to 1 when libraries ** are initialized, 0 if they are not. */ static struct { int sqlite3 ; } bindings_init_info = { 0 } ; /* Initialization functions should return ** 1 when successfull, 0 otherwise */ int bindings_init_sqlite3 () { bindings_init_info.sqlite3 = 1 ; return (sqlite3_initialize()==0)?1:0 ; } void bindings_shutdown () { if (bindings_init_info.sqlite3) { bindings_init_info.sqlite3 = 0 ; sqlite3_shutdown () ; } }