doc: add Meson coding style to contributors guide
[dpdk.git] / lib / librte_eal / windows / include / fnmatch.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2019 Intel Corporation
3  */
4
5 #ifndef _FNMATCH_H_
6 #define _FNMATCH_H_
7
8 /**
9  * This file is required to support the common code in eal_common_log.c
10  * as Microsoft libc does not contain fnmatch.h. This may be removed in
11  * future releases.
12  */
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16
17 #include <rte_common.h>
18
19 #define FNM_NOMATCH 1
20
21 #define FNM_NOESCAPE 0x01
22 #define FNM_PATHNAME 0x02
23 #define FNM_PERIOD 0x04
24 #define FNM_LEADING_DIR 0x08
25 #define FNM_CASEFOLD 0x10
26 #define FNM_PREFIX_DIRS 0x20
27
28 /**
29  * This function is used for searhing a given string source
30  * with the given regular expression pattern.
31  *
32  * @param pattern
33  *      regular expression notation decribing the pattern to match
34  *
35  * @param string
36  *      source string to searcg for the pattern
37  *
38  * @param flag
39  *      containing information about the pattern
40  *
41  * @return
42  *      if the pattern is found then return 0 or else FNM_NOMATCH
43  */
44 int fnmatch(const char *pattern, const char *string, int flags);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif /* _FNMATCH_H_ */