PageRenderTime 32ms CodeModel.GetById 17ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/strigi-0.7.7/libstreamanalyzer/lib/strigi_fnmatch.h

#
C Header | 43 lines | 15 code | 7 blank | 21 comment | 0 complexity | 7e98c7244667535fa61ea348656b8189 MD5 | raw file
Possible License(s): LGPL-2.0
 1/* This file is part of Strigi Desktop Search
 2 *
 3 * Copyright (C) 2006 Ben van Klinken <bvklinken@gmail.com>
 4 *
 5 * This library is free software; you can redistribute it and/or
 6 * modify it under the terms of the GNU Library General Public
 7 * License as published by the Free Software Foundation; either
 8 * version 2 of the License, or (at your option) any later version.
 9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB.  If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef STRIGI_FNMATCH_H
22#define STRIGI_FNMATCH_H
23
24#if defined(HAVE_FNMATCH_H)
25
26#elif !defined(STRIGI_FNMATCH_H_)
27#include <strigi/strigiconfig.h>
28    #define STRIGI_FNMATCH_H
29
30
31    #define FNM_NOMATCH     1     /**< Match failed. */
32    #define FNM_NOESCAPE    0x01  /**< Disable backslash escaping. */
33    #define FNM_PATHNAME    0x02  /**< Slash must be matched by slash. */
34    #define FNM_PERIOD      0x04  /**< Period must be matched by period. */
35    #define FNM_CASE_BLIND  0x08  /**< Compare characters case-insensitively.
36                                       * @remark This flag is an Apache addition
37                                       */
38    #define SUCCESS 0
39
40    int fnmatch(const char *pattern, const char *string, int flags);
41#endif
42
43#endif