#include <sys/wait.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <signal.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lightmediascanner.h"
#include "lightmediascanner_private.h"
#include "lightmediascanner_db_private.h"
Include dependency graph for lightmediascanner_check.c:
Go to the source code of this file.
Defines | |
#define | _GNU_SOURCE |
#define | COMM_FINFO_FLAG_OUTDATED 1 |
Functions | |
int | lms_check (lms_t *lms, const char *top_path) |
#define _GNU_SOURCE |
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 25 of file lightmediascanner_check.c.
#define COMM_FINFO_FLAG_OUTDATED 1 |
Definition at line 67 of file lightmediascanner_check.c.
int lms_check | ( | lms_t * | lms, | |
const char * | top_path | |||
) |
Check consistency of given directory.
This will update media in the given directory or its children. If files are missing, they'll be marked as deleted (dtime is set), if they were marked as deleted and are now present, they are unmarked (dtime is unset).
lms | previously allocated Light Media Scanner instance. | |
top_path | top directory to scan. |
Definition at line 618 of file lightmediascanner_check.c.
References lms::is_processing, pinfo::lms, lms_close_pipes(), lms_create_pipes(), lms::parsers, and PATH_SIZE.
Here is the call graph for this function: