X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=www%2Fapi%2Flightmediascanner__utils_8c.html;fp=www%2Fapi%2Flightmediascanner__utils_8c.html;h=0000000000000000000000000000000000000000;hb=f7c0a9f05a01670296b047374493ed29805508e2;hp=5235f6b834124137630f5427ee719ce863fc4c63;hpb=0ce80a035a729cf05134e89fad6235e8b18ea0da;p=lms diff --git a/www/api/lightmediascanner__utils_8c.html b/www/api/lightmediascanner__utils_8c.html deleted file mode 100644 index 5235f6b..0000000 --- a/www/api/lightmediascanner__utils_8c.html +++ /dev/null @@ -1,241 +0,0 @@ - - -Light Media Scanner: src/lib/lightmediascanner_utils.c File Reference - - - - - -
-

src/lib/lightmediascanner_utils.c File Reference

#include <lightmediascanner_utils.h>
-#include <ctype.h>
-#include <stdlib.h>
-#include <alloca.h>
- -

-

-Include dependency graph for lightmediascanner_utils.c:
-
-

- - -
- -

-Go to the source code of this file. - - - - - - - - - - -

Functions

void lms_strstrip (char *str, unsigned int *p_len)
void lms_strstrip_and_free (char **p_str, unsigned int *p_len)
void lms_string_size_strip_and_free (struct lms_string_size *p)
int lms_which_extension (const char *name, unsigned int name_len, const struct lms_string_size *exts, unsigned int exts_len)
-


Function Documentation

- -
-
- - - - - - - - - -
void lms_string_size_strip_and_free (struct lms_string_size p  ) 
-
-
- -

-lms_string_size version of lms_strstrip_and_free().

-

Parameters:
- - -
*p pointer to lms_string_size to be stripped.
-
-
Note:
this will call free() on lms_string_size->str if it becomes empty.
- -

Definition at line 114 of file lightmediascanner_utils.c.

- -

References lms_string_size::len, lms_strstrip(), and lms_string_size::str.

- -

-

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

- - -
- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
void lms_strstrip (char *  str,
unsigned int *  p_len 
)
-
-
- -

-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> Strips string, in place.
-
Parameters:
- - - -
str string to be stripped.
p_len string length to analyse, also the place where the final size is stored.
-
- -

Definition at line 34 of file lightmediascanner_utils.c.

- -

Referenced by lms_string_size_strip_and_free(), and lms_strstrip_and_free().

- -
-

- -

-
- - - - - - - - - - - - - - - - - - -
void lms_strstrip_and_free (char **  p_str,
unsigned int *  p_len 
)
-
-
- -

-If string exists, strips it, in place, free if *p_len = 0

-

Parameters:
- - - -
p_str pointer to string to be stripped.
p_len string length to analyse, also the place where the final size is stored.
-
-
Note:
this will call free() on *p_str if it becomes empty.
- -

Definition at line 94 of file lightmediascanner_utils.c.

- -

References lms_strstrip().

- -

-

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

- - -
- -
-

- -

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
int lms_which_extension (const char *  name,
unsigned int  name_len,
const struct lms_string_size exts,
unsigned int  exts_len 
)
-
-
- -

-Find out which of the given extensions matches the given name.

-

Parameters:
- - - - - -
name string to analyse.
name_len string length.
exts array of extensions to be checked.
exts_len number of items in array exts
-
-
Returns:
index in exts or -1 if it doesn't match none.
- -

Definition at line 138 of file lightmediascanner_utils.c.

- -

References lms_string_size::str.

- -
-

-

-
Generated on Sun Oct 5 12:24:57 2008 for Light Media Scanner by  - -doxygen 1.5.6
- -