X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=www%2Fapi%2Flightmediascanner__check_8c.html;fp=www%2Fapi%2Flightmediascanner__check_8c.html;h=3ca2cad5d3f2e79d859e26dffaed9c8b38a4a9cc;hb=5d28172f584aef7fc9fc711f180b0c65fad258c3;hp=0000000000000000000000000000000000000000;hpb=f7c0a9f05a01670296b047374493ed29805508e2;p=lms diff --git a/www/api/lightmediascanner__check_8c.html b/www/api/lightmediascanner__check_8c.html new file mode 100644 index 0000000..3ca2cad --- /dev/null +++ b/www/api/lightmediascanner__check_8c.html @@ -0,0 +1,194 @@ + + +Light Media Scanner: src/lib/lightmediascanner_check.c File Reference + + + + + +
+

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)
int lms_check_single_process (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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 75 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 900 of file lightmediascanner_check.c.

+ +

References pinfo::common, lms::is_processing, cinfo::lms, lms_close_pipes(), lms_create_pipes(), PATH_SIZE, and lms::stop_processing.

+ +

+

+Here is the call graph for this function:
+
+
+ +
+

+ +

+
+ + + + + + + + + + + + + + + + + + +
int lms_check_single_process (lms_t lms,
const char *  top_path 
)
+
+
+ +

+Check consistency of given directory *without fork()-ing* into child process.

+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). Note that if a parser hangs in the check process, this call will also hang.

+

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

Definition at line 949 of file lightmediascanner_check.c.

+ +

References sinfo::commit_counter, sinfo::common, lms::is_processing, cinfo::lms, PATH_SIZE, and lms::stop_processing.

+ +
+

+

+
Generated on Wed Apr 22 23:56:01 2009 for Light Media Scanner by  + +doxygen 1.5.8
+ +