#include "lightmediascanner.h"
#include "lightmediascanner_plugin.h"
#include "lightmediascanner_charset_conv.h"
#include <sys/types.h>
#include <poll.h>
#include <limits.h>
#include <sqlite3.h>
Go to the source code of this file.
Data Structures | |
struct | fds |
struct | cinfo |
struct | pinfo |
struct | sinfo |
struct | parser |
struct | lms |
Defines | |
#define | _LIGHTMEDIASCANNER_PRIVATE_H_ 1 |
#define | GNUC_NON_NULL(...) |
#define | PATH_SIZE PATH_MAX |
Typedefs | |
typedef int(* | process_file_callback_t )(struct cinfo *info, int base, char *path, const char *name) |
typedef int(* | check_row_callback_t )(void *db_ptr, struct cinfo *info) |
Functions | |
int | lms_parser_del_int (lms_t *lms, int i) GNUC_NON_NULL(1) |
int | lms_create_pipes (struct pinfo *pinfo) GNUC_NON_NULL(1) |
int | lms_close_pipes (struct pinfo *pinfo) GNUC_NON_NULL(1) |
int | lms_create_slave (struct pinfo *pinfo, int(*work)(lms_t *lms, struct fds *fds)) GNUC_NON_NULL(1 |
int int | lms_restart_slave (struct pinfo *pinfo, int(*work)(lms_t *lms, struct fds *fds)) GNUC_NON_NULL(1 |
int int int | lms_finish_slave (struct pinfo *pinfo, int(*finish)(const struct fds *fds)) GNUC_NON_NULL(1 |
int int int int | lms_parsers_setup (lms_t *lms, sqlite3 *db) GNUC_NON_NULL(1 |
int int int int int | lms_parsers_start (lms_t *lms, sqlite3 *db) GNUC_NON_NULL(1 |
int int int int int int | lms_parsers_finish (lms_t *lms, sqlite3 *db) GNUC_NON_NULL(1 |
int int int int int int int | lms_parsers_check_using (lms_t *lms, void **parser_match, struct lms_file_info *finfo) GNUC_NON_NULL(1 |
int int int int int int int int | lms_parsers_run (lms_t *lms, sqlite3 *db, void **parser_match, struct lms_file_info *finfo) GNUC_NON_NULL(1 |
#define _LIGHTMEDIASCANNER_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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Definition at line 22 of file lightmediascanner_private.h.
#define GNUC_NON_NULL | ( | ... | ) |
Definition at line 31 of file lightmediascanner_private.h.
#define PATH_SIZE PATH_MAX |
Definition at line 42 of file lightmediascanner_private.h.
Referenced by lms_check(), and lms_check_single_process().
typedef int(* check_row_callback_t)(void *db_ptr, struct cinfo *info) |
Definition at line 93 of file lightmediascanner_private.h.
typedef int(* process_file_callback_t)(struct cinfo *info, int base, char *path, const char *name) |
Definition at line 92 of file lightmediascanner_private.h.
int lms_close_pipes | ( | struct pinfo * | pinfo | ) |
Definition at line 596 of file lightmediascanner_process.c.
References pinfo::master, and pinfo::slave.
Referenced by lms_check(), and lms_process().
int lms_create_pipes | ( | struct pinfo * | pinfo | ) |
Definition at line 607 of file lightmediascanner_process.c.
References pinfo::master, pinfo::poll, fds::r, pinfo::slave, and fds::w.
Referenced by lms_check(), and lms_process().
Referenced by lms_process(), and lms_restart_slave().
Referenced by lms_process().
int lms_parser_del_int | ( | lms_t * | lms, | |
int | i | |||
) |
Definition at line 278 of file lightmediascanner.c.
References lms::n_parsers, and lms::parsers.
Referenced by lms_parser_del(), lms_parsers_setup(), and lms_parsers_start().
int int int int int int int lms_parsers_check_using | ( | lms_t * | lms, | |
void ** | parser_match, | |||
struct lms_file_info * | finfo | |||
) |
int int int int int int lms_parsers_finish | ( | lms_t * | lms, | |
sqlite3 * | db | |||
) |
Referenced by lms_process_single_process().
int int int int int int int int lms_parsers_run | ( | lms_t * | lms, | |
sqlite3 * | db, | |||
void ** | parser_match, | |||
struct lms_file_info * | finfo | |||
) |
int int int int lms_parsers_setup | ( | lms_t * | lms, | |
sqlite3 * | db | |||
) |
int int int int int lms_parsers_start | ( | lms_t * | lms, | |
sqlite3 * | db | |||
) |