src/lib/lightmediascanner_check.c File Reference

#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 Documentation

#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.

Author:
Gustavo Sverzut Barbieri <gustavo.barbieri@openbossa.org>

Definition at line 25 of file lightmediascanner_check.c.

#define COMM_FINFO_FLAG_OUTDATED   1

Definition at line 67 of file lightmediascanner_check.c.


Function Documentation

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).

Parameters:
lms previously allocated Light Media Scanner instance.
top_path top directory to scan.
Returns:
On success 0 is returned.

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:


Generated on Thu Dec 13 02:04:04 2007 for Light Media Scanner by  doxygen 1.5.2