1 /* libSoX minimal glob for MS-Windows: (c) 2009 SoX contributors
2  *
3  * This library is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU Lesser General Public License as published by
5  * the Free Software Foundation; either version 2.1 of the License, or (at
6  * your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation,
15  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
16  */
17 
18 #ifndef GLOB_H
19 #define GLOB_H 1
20 
21 #define GLOB_NOCHECK (16)
22 #define GLOB_FLAGS (GLOB_NOCHECK)
23 
24 typedef struct glob_t
25 {
26     unsigned gl_pathc;
27     char **gl_pathv;
28 } glob_t;
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 int
35 glob(
36     const char *pattern,
37     int flags,
38     void *unused,
39     glob_t *pglob);
40 
41 void
42 globfree(
43     glob_t* pglob);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif /* ifndef GLOB_H */
50