X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=www%2Fapi%2Flightmediascanner__db__image_8c-source.html;fp=www%2Fapi%2Flightmediascanner__db__image_8c-source.html;h=405ec50d2a4f7764fbfcb325d4f6eb93a6a0ba91;hb=7436eda8879f146fa50e342a134db80a9e6db58d;hp=b168c02fcda0615ffabc79a24e7da2ae207bff06;hpb=ac03e6ebd87457463f0d6facf3a810c24f3c8226;p=lms diff --git a/www/api/lightmediascanner__db__image_8c-source.html b/www/api/lightmediascanner__db__image_8c-source.html index b168c02..405ec50 100644 --- a/www/api/lightmediascanner__db__image_8c-source.html +++ b/www/api/lightmediascanner__db__image_8c-source.html @@ -4,257 +4,254 @@ - -
- -
-
- -
-

src/lib/lightmediascanner_db_image.c

Go to the documentation of this file.
00001 #include <lightmediascanner_db.h>
-00002 #include "lightmediascanner_db_private.h"
-00003 #include <stdlib.h>
-00004 #include <stdio.h>
-00005 
-00006 struct lms_db_image {
-00007     sqlite3 *db;
-00008     sqlite3_stmt *insert;
-00009     unsigned int _references;
-00010     unsigned int _is_started:1;
-00011 };
-00012 
-00013 static struct lms_db_cache _cache = {0, NULL};
-00014 
-00015 static int
-00016 _db_table_updater_images_0(sqlite3 *db, const char *table, unsigned int current_version, int is_last_run) {
-00017     char *errmsg;
-00018     int r, ret;
-00019 
-00020     errmsg = NULL;
-00021     r = sqlite3_exec(db,
-00022                      "CREATE TABLE IF NOT EXISTS images ("
-00023                      "id INTEGER PRIMARY KEY, "
-00024                      "title TEXT, "
-00025                      "artist TEXT, "
-00026                      "date INTEGER NOT NULL, "
-00027                      "width INTEGER NOT NULL, "
-00028                      "height INTEGER NOT NULL, "
-00029                      "orientation INTEGER NOT NULL, "
-00030                      "gps_lat REAL DEFAULT 0.0, "
-00031                      "gps_long REAL DEFAULT 0.0, "
-00032                      "gps_alt REAL DEFAULT 0.0"
-00033                      ")",
-00034                      NULL, NULL, &errmsg);
-00035     if (r != SQLITE_OK) {
-00036         fprintf(stderr, "ERROR: could not create 'images' table: %s\n", errmsg);
-00037         sqlite3_free(errmsg);
-00038         return -1;
-00039     }
-00040 
+
+
+
Generated on Sun Oct 5 12:24:53 2008 for Light Media Scanner by  -doxygen 1.5.2
+doxygen 1.5.6