]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/CCode/Source/GuidChk/FileSearch.h
3 Copyright (c) 2004, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 Header file to support file searching.
22 #ifndef _FILE_SEARCH_H_
23 #define _FILE_SEARCH_H_
26 // Since the file searching routines are OS dependent, put the
27 // necessary include paths in this header file so that the non-OS-dependent
28 // files don't need to include these windows-specific header files.
37 // Return codes of some of the file search routines
39 #define STATUS_NOT_FOUND 0x1000
42 // Flags for what to search for. Also used in the FileFlags return field.
44 #define FILE_SEARCH_DIR 0x0001
45 #define FILE_SEARCH_FILE 0x0002
48 // Here's our class definition
52 WIN32_FIND_DATA FindData
;
53 UINT32 FileSearchFlags
; // DIRS, FILES, etc
55 INT8 FileName
[MAX_PATH
]; // for portability
56 STRING_LIST
*ExcludeDirs
;
57 STRING_LIST
*ExcludeFiles
;
58 STRING_LIST
*ExcludeExtensions
;
62 // Here's our member functions
66 FILE_SEARCH_DATA
*FSData
72 FILE_SEARCH_DATA
*FSData
78 FILE_SEARCH_DATA
*FSData
,
86 FILE_SEARCH_DATA
*FSData
91 FileSearchExcludeDirs (
92 FILE_SEARCH_DATA
*FSData
,
97 FileSearchExcludeExtensions (
98 FILE_SEARCH_DATA
*FSData
,
103 FileSearchExcludeFiles (
104 FILE_SEARCH_DATA
*FSData
,