#include <sqlite3.h>
#include <sys/types.h>
#include "lightmediascanner_plugin.h"
Include dependency graph for lightmediascanner_db_private.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | lms_db_cache_entry |
struct | lms_db_cache |
Defines | |
#define | _LIGHTMEDIASCANNER_DB_PRIVATE_H_ 1 |
#define | GNUC_NON_NULL(...) |
Functions | |
sqlite3_stmt * | lms_db_compile_stmt (sqlite3 *db, const char *sql) GNUC_NON_NULL(1 |
sqlite3_stmt *int | lms_db_finalize_stmt (sqlite3_stmt *stmt, const char *name) GNUC_NON_NULL(1 |
sqlite3_stmt *int int | lms_db_reset_stmt (sqlite3_stmt *stmt) GNUC_NON_NULL(1) |
int | lms_db_bind_text (sqlite3_stmt *stmt, int col, const char *text, int len) GNUC_NON_NULL(1) |
int | lms_db_bind_blob (sqlite3_stmt *stmt, int col, const void *blob, int len) GNUC_NON_NULL(1) |
int | lms_db_bind_int64 (sqlite3_stmt *stmt, int col, int64_t value) GNUC_NON_NULL(1) |
int | lms_db_bind_int64_or_null (sqlite3_stmt *stmt, int col, int64_t *p_value) GNUC_NON_NULL(1) |
int | lms_db_bind_int (sqlite3_stmt *stmt, int col, int value) GNUC_NON_NULL(1) |
int | lms_db_bind_double (sqlite3_stmt *stmt, int col, double value) GNUC_NON_NULL(1) |
int | lms_db_create_trigger_if_not_exists (sqlite3 *db, const char *sql) GNUC_NON_NULL(1 |
int int | lms_db_table_version_get (sqlite3 *db, const char *table) GNUC_NON_NULL(1 |
int int int | lms_db_table_version_set (sqlite3 *db, const char *table, unsigned int version) GNUC_NON_NULL(1 |
int | lms_db_table_update (sqlite3 *db, const char *table, unsigned int current_version, unsigned int last_version, const lms_db_table_updater_t *updaters) GNUC_NON_NULL(1 |
int int | lms_db_table_update_if_required (sqlite3 *db, const char *table, unsigned int last_version, lms_db_table_updater_t *updaters) GNUC_NON_NULL(1 |
int | lms_db_cache_add (struct lms_db_cache *cache, const sqlite3 *db, void *data) GNUC_NON_NULL(1 |
int int | lms_db_cache_del (struct lms_db_cache *cache, const sqlite3 *db, void *data) GNUC_NON_NULL(1 |
int int int | lms_db_cache_get (struct lms_db_cache *cache, const sqlite3 *db, void **pdata) GNUC_NON_NULL(1 |
int int int int | lms_db_create_core_tables_if_required (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_begin_transaction (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_end_transaction (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_get_file_info (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_insert_file_info (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_update_file_info (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_delete_file_info (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_set_file_dtime (sqlite3 *db) GNUC_NON_NULL(1) |
sqlite3_stmt * | lms_db_compile_stmt_get_files (sqlite3 *db) GNUC_NON_NULL(1) |
int | lms_db_begin_transaction (sqlite3_stmt *stmt) GNUC_NON_NULL(1) |
int | lms_db_end_transaction (sqlite3_stmt *stmt) GNUC_NON_NULL(1) |
int | lms_db_update_file_info (sqlite3_stmt *stmt, const struct lms_file_info *finfo) GNUC_NON_NULL(1 |
int int | lms_db_get_file_info (sqlite3_stmt *stmt, struct lms_file_info *finfo) GNUC_NON_NULL(1 |
int int int | lms_db_insert_file_info (sqlite3_stmt *stmt, struct lms_file_info *finfo) GNUC_NON_NULL(1 |
int int int int | lms_db_delete_file_info (sqlite3_stmt *stmt, const struct lms_file_info *finfo) GNUC_NON_NULL(1 |
int int int int int | lms_db_set_file_dtime (sqlite3_stmt *stmt, const struct lms_file_info *finfo) GNUC_NON_NULL(1 |
int int int int int int | lms_db_get_files (sqlite3_stmt *stmt, const char *path, int len) GNUC_NON_NULL(1 |
Variables | |
int int int typedef int(*) | lms_db_table_updater_t (sqlite3 *db, const char *table, unsigned int current_version, int is_last_run) |
#define _LIGHTMEDIASCANNER_DB_PRIVATE_H_ 1 |
Copyright (C) 2007 by INdT
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition at line 22 of file lightmediascanner_db_private.h.
#define GNUC_NON_NULL | ( | ... | ) |
Definition at line 31 of file lightmediascanner_db_private.h.
int lms_db_begin_transaction | ( | sqlite3_stmt * | stmt | ) |
Definition at line 512 of file lightmediascanner_db_common.c.
int lms_db_bind_blob | ( | sqlite3_stmt * | stmt, | |
int | col, | |||
const void * | blob, | |||
int | len | |||
) |
Definition at line 148 of file lightmediascanner_db_common.c.
Referenced by lms_db_get_file_info(), lms_db_get_files(), and lms_db_insert_file_info().
int lms_db_bind_double | ( | sqlite3_stmt * | stmt, | |
int | col, | |||
double | value | |||
) |
Definition at line 231 of file lightmediascanner_db_common.c.
int lms_db_bind_int | ( | sqlite3_stmt * | stmt, | |
int | col, | |||
int | value | |||
) |
Definition at line 212 of file lightmediascanner_db_common.c.
Referenced by lms_db_insert_file_info(), lms_db_set_file_dtime(), lms_db_table_version_set(), and lms_db_update_file_info().
int lms_db_bind_int64 | ( | sqlite3_stmt * | stmt, | |
int | col, | |||
int64_t | value | |||
) |
Definition at line 171 of file lightmediascanner_db_common.c.
Referenced by lms_db_delete_file_info(), and lms_db_set_file_dtime().
int lms_db_bind_int64_or_null | ( | sqlite3_stmt * | stmt, | |
int | col, | |||
int64_t * | p_value | |||
) |
Definition at line 190 of file lightmediascanner_db_common.c.
int lms_db_bind_text | ( | sqlite3_stmt * | stmt, | |
int | col, | |||
const char * | text, | |||
int | len | |||
) |
Definition at line 125 of file lightmediascanner_db_common.c.
Referenced by lms_db_table_version_get(), and lms_db_table_version_set().
int lms_db_cache_add | ( | struct lms_db_cache * | cache, | |
const sqlite3 * | db, | |||
void * | data | |||
) |
int int lms_db_cache_del | ( | struct lms_db_cache * | cache, | |
const sqlite3 * | db, | |||
void * | data | |||
) |
int int int lms_db_cache_get | ( | struct lms_db_cache * | cache, | |
const sqlite3 * | db, | |||
void ** | pdata | |||
) |
sqlite3_stmt* lms_db_compile_stmt | ( | sqlite3 * | db, | |
const char * | sql | |||
) |
sqlite3_stmt* lms_db_compile_stmt_begin_transaction | ( | sqlite3 * | db | ) |
Definition at line 506 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
sqlite3_stmt* lms_db_compile_stmt_delete_file_info | ( | sqlite3 * | db | ) |
Definition at line 691 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
sqlite3_stmt* lms_db_compile_stmt_end_transaction | ( | sqlite3 * | db | ) |
Definition at line 533 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
sqlite3_stmt* lms_db_compile_stmt_get_file_info | ( | sqlite3 * | db | ) |
Definition at line 560 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
sqlite3_stmt* lms_db_compile_stmt_get_files | ( | sqlite3 * | db | ) |
Definition at line 756 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
sqlite3_stmt* lms_db_compile_stmt_insert_file_info | ( | sqlite3 * | db | ) |
Definition at line 646 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
sqlite3_stmt* lms_db_compile_stmt_set_file_dtime | ( | sqlite3 * | db | ) |
Definition at line 721 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
sqlite3_stmt* lms_db_compile_stmt_update_file_info | ( | sqlite3 * | db | ) |
Definition at line 602 of file lightmediascanner_db_common.c.
References lms_db_compile_stmt().
Here is the call graph for this function:
int int int int lms_db_create_core_tables_if_required | ( | sqlite3 * | db | ) |
Definition at line 455 of file lightmediascanner_db_common.c.
int lms_db_create_trigger_if_not_exists | ( | sqlite3 * | db, | |
const char * | sql | |||
) |
int int int int lms_db_delete_file_info | ( | sqlite3_stmt * | stmt, | |
const struct lms_file_info * | finfo | |||
) |
int lms_db_end_transaction | ( | sqlite3_stmt * | stmt | ) |
Definition at line 539 of file lightmediascanner_db_common.c.
sqlite3_stmt* int lms_db_finalize_stmt | ( | sqlite3_stmt * | stmt, | |
const char * | name | |||
) |
int int lms_db_get_file_info | ( | sqlite3_stmt * | stmt, | |
struct lms_file_info * | finfo | |||
) |
int int int int int int lms_db_get_files | ( | sqlite3_stmt * | stmt, | |
const char * | path, | |||
int | len | |||
) |
int int int lms_db_insert_file_info | ( | sqlite3_stmt * | stmt, | |
struct lms_file_info * | finfo | |||
) |
sqlite3_stmt* int int lms_db_reset_stmt | ( | sqlite3_stmt * | stmt | ) |
Definition at line 108 of file lightmediascanner_db_common.c.
References sqlite3_clear_bindings().
Referenced by lms_db_delete_file_info(), lms_db_get_file_info(), lms_db_insert_file_info(), lms_db_set_file_dtime(), lms_db_table_version_get(), lms_db_table_version_set(), and lms_db_update_file_info().
Here is the call graph for this function:
int int int int int lms_db_set_file_dtime | ( | sqlite3_stmt * | stmt, | |
const struct lms_file_info * | finfo | |||
) |
int lms_db_table_update | ( | sqlite3 * | db, | |
const char * | table, | |||
unsigned int | current_version, | |||
unsigned int | last_version, | |||
const lms_db_table_updater_t * | updaters | |||
) |
int int lms_db_table_update_if_required | ( | sqlite3 * | db, | |
const char * | table, | |||
unsigned int | last_version, | |||
lms_db_table_updater_t * | updaters | |||
) |
int int lms_db_table_version_get | ( | sqlite3 * | db, | |
const char * | table | |||
) |
int int int lms_db_table_version_set | ( | sqlite3 * | db, | |
const char * | table, | |||
unsigned int | version | |||
) |
int lms_db_update_file_info | ( | sqlite3_stmt * | stmt, | |
const struct lms_file_info * | finfo | |||
) |
int int int typedef int(*) lms_db_table_updater_t(sqlite3 *db, const char *table, unsigned int current_version, int is_last_run) |
Definition at line 52 of file lightmediascanner_db_private.h.