1 #ifndef HEADER_CURL_TOOL_URLGLOB_H
2 #define HEADER_CURL_TOOL_URLGLOB_H
3 /***************************************************************************
5 * Project ___| | | | _ \| |
7 * | (__| |_| | _ <| |___
8 * \___|\___/|_| \_\_____|
10 * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
12 * This software is licensed as described in the file COPYING, which
13 * you should have received as part of this distribution. The terms
14 * are also available at https://curl.haxx.se/docs/copyright.html.
16 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17 * copies of the Software, and permit persons to whom the Software is
18 * furnished to do so, under the terms of the COPYING file.
20 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21 * KIND, either express or implied.
23 ***************************************************************************/
24 #include "tool_setup.h"
34 int globindex; /* the number of this particular glob or -1 if not used
58 /* the total number of globs supported */
59 #define GLOB_PATTERN_NUM 100
62 URLPattern pattern[GLOB_PATTERN_NUM];
67 const char *error; /* error message */
68 size_t pos; /* column position of error or 0 */
71 CURLcode glob_url(URLGlob**, char*, unsigned long *, FILE *);
72 CURLcode glob_next_url(char **, URLGlob *);
73 CURLcode glob_match_url(char **, char*, URLGlob *);
74 void glob_cleanup(URLGlob* glob);
76 #endif /* HEADER_CURL_TOOL_URLGLOB_H */