Split plugin start and setup phase.
authorGustavo Sverzut Barbieri <barbieri@gmail.com>
Wed, 21 Nov 2007 00:42:33 +0000 (21:42 -0300)
committerGustavo Sverzut Barbieri <barbieri@gmail.com>
Wed, 21 Nov 2007 00:42:33 +0000 (21:42 -0300)
commit7c508303fa19691371f2242cdd774445b9cdbdc2
treefcd66a03b3f02a492c7f04ee0ccc9a6b40925e92
parent7e6060f497738898a9674c665f1f0021e3f1b727
Split plugin start and setup phase.

Earlier SQLite3 version doesn't provide sqlite3_prepare_v2(), so if
you change the database schema (ie: create another table or trigger,
...) the previously prepared statements are invalidated and need to be
regenerated, sqlite3_prepare_v2() does that for us, but we need not to
rely on that to run on some older platforms (maemo bora).

Plugins now should create tables on setup() and prepare statements on
start().
src/lib/lightmediascanner.c
src/lib/lightmediascanner_db.h
src/lib/lightmediascanner_db_image.c
src/lib/lightmediascanner_plugin.h
src/plugins/dummy/dummy.c
src/plugins/jpeg/jpeg.c