aboutsummaryrefslogtreecommitdiff
path: root/src/urlglob.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-10 22:11:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-10 22:11:01 +0000
commitbd8baed13879d30614065379cca6e2b559b4b0fa (patch)
tree17d868ef3c0bf6ee0093e185b26a42f4c5524856 /src/urlglob.h
parent00a7dda273af92f0e58d2d7f0f6e56209919de18 (diff)
Introducing range stepping to the curl globbing support. Now you can specify
step counter by adding :[num] within the brackets when specifying a range.
Diffstat (limited to 'src/urlglob.h')
-rw-r--r--src/urlglob.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/urlglob.h b/src/urlglob.h
index fdda41eef..d0818407f 100644
--- a/src/urlglob.h
+++ b/src/urlglob.h
@@ -1,18 +1,18 @@
#ifndef __URLGLOB_H
#define __URLGLOB_H
/***************************************************************************
- * _ _ ____ _
- * Project ___| | | | _ \| |
- * / __| | | | |_) | |
- * | (__| |_| | _ <| |___
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
* are also available at http://curl.haxx.se/docs/copyright.html.
- *
+ *
* You may opt to use, copy, modify, merge, publish, distribute and/or sell
* copies of the Software, and permit persons to whom the Software is
* furnished to do so, under the terms of the COPYING file.
@@ -39,11 +39,13 @@ typedef struct {
struct {
char min_c, max_c;
char ptr_c;
+ int step;
} CharRange;
struct {
int min_n, max_n;
short padlength;
int ptr_n;
+ int step;
} NumRange ;
} content;
} URLPattern;
@@ -60,7 +62,7 @@ typedef struct {
int glob_url(URLGlob**, char*, int *, FILE *);
char* glob_next_url(URLGlob*);
-char* glob_match_url(char*, URLGlob *);
+char* glob_match_url(char*, URLGlob *);
void glob_cleanup(URLGlob* glob);
#endif