Add missing file
* include/mailutils/glob.h: File was missing in df608ed0 * include/mailutils/Makefile.am: Add glob.h
Showing
2 changed files
with
36 additions
and
0 deletions
include/mailutils/glob.h
0 → 100644
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | ||
2 | Copyright (C) 2016 Free Software Foundation, Inc. | ||
3 | |||
4 | GNU Mailutils is free software; you can redistribute it and/or modify | ||
5 | it under the terms of the GNU General Public License as published by | ||
6 | the Free Software Foundation; either version 3, or (at your option) | ||
7 | any later version. | ||
8 | |||
9 | GNU Mailutils is distributed in the hope that it will be useful, | ||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
12 | GNU General Public License for more details. | ||
13 | |||
14 | You should have received a copy of the GNU General Public License | ||
15 | along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. */ | ||
16 | |||
17 | #ifndef _MAILUTILS_GLOB_H | ||
18 | #define _MAILUTILS_GLOB_H | ||
19 | |||
20 | #include <mailutils/types.h> | ||
21 | #include <regex.h> | ||
22 | |||
23 | /* Produce case-insensitive regex */ | ||
24 | #define MU_GLOBF_ICASE 0x01 | ||
25 | /* Treat each wildcard as regexp parenthesized group */ | ||
26 | #define MU_GLOBF_SUB 0x02 | ||
27 | /* When used with MU_GLOBF_SUB - collapse contiguous runs of * to single | ||
28 | asterisk */ | ||
29 | #define MU_GLOBF_COLLAPSE 0x04 | ||
30 | |||
31 | int mu_glob_to_regex_opool (char const *pattern, mu_opool_t pool, int flags); | ||
32 | int mu_glob_to_regex (char **rxstr, char const *pattern, int flags); | ||
33 | int mu_glob_compile (regex_t *rx, char const *pattern, int flags); | ||
34 | |||
35 | #endif |
-
Please register or sign in to post a comment