]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Sample/Tools/Source/GuidChk/FileSearch.h
clean up the un-suitable ';' location when declaring the functions. The regular is...
[mirror_edk2.git] / EdkCompatibilityPkg / Sample / Tools / Source / GuidChk / FileSearch.h
CommitLineData
3eb9473e 1/*++\r
2\r
3Copyright (c) 2004, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name: \r
13\r
14 FileSearch.h\r
15 \r
16Abstract:\r
17\r
18 Header file to support file searching.\r
19 \r
20--*/\r
21\r
22#ifndef _FILE_SEARCH_H_\r
23#define _FILE_SEARCH_H_\r
24\r
25//\r
26// Since the file searching routines are OS dependent, put the\r
27// necessary include paths in this header file so that the non-OS-dependent\r
28// files don't need to include these windows-specific header files.\r
29//\r
30#include <stdio.h>\r
31#include <string.h>\r
32#include <ctype.h>\r
33#include <direct.h>\r
34#include <windows.h>\r
35\r
36//\r
37// Return codes of some of the file search routines\r
38//\r
39#define STATUS_NOT_FOUND 0x1000\r
40\r
41//\r
42// Flags for what to search for. Also used in the FileFlags return field.\r
43//\r
44#define FILE_SEARCH_DIR 0x0001\r
45#define FILE_SEARCH_FILE 0x0002\r
46\r
47//\r
48// Here's our class definition\r
49//\r
50typedef struct {\r
51 HANDLE Handle;\r
52 WIN32_FIND_DATA FindData;\r
53 UINT32 FileSearchFlags; // DIRS, FILES, etc\r
54 UINT32 FileFlags;\r
55 INT8 FileName[MAX_PATH]; // for portability\r
56 STRING_LIST *ExcludeDirs;\r
57 STRING_LIST *ExcludeFiles;\r
58 STRING_LIST *ExcludeExtensions;\r
59} FILE_SEARCH_DATA;\r
60\r
61//\r
62// Here's our member functions\r
63//\r
64STATUS\r
65FileSearchInit (\r
66 FILE_SEARCH_DATA *FSData\r
e00e1d46 67 );\r
3eb9473e 68\r
69STATUS\r
70FileSearchDestroy (\r
71 FILE_SEARCH_DATA *FSData\r
e00e1d46 72 );\r
3eb9473e 73\r
74STATUS\r
75FileSearchStart (\r
76 FILE_SEARCH_DATA *FSData,\r
77 char *FileMask,\r
78 UINT32 SearchFlags\r
e00e1d46 79 );\r
3eb9473e 80\r
81STATUS\r
82FileSearchFindNext (\r
83 FILE_SEARCH_DATA *FSData\r
e00e1d46 84 );\r
3eb9473e 85\r
86STATUS\r
87FileSearchExcludeDirs (\r
88 FILE_SEARCH_DATA *FSData,\r
89 STRING_LIST *StrList\r
e00e1d46 90 );\r
3eb9473e 91STATUS\r
92FileSearchExcludeExtensions (\r
93 FILE_SEARCH_DATA *FSData,\r
94 STRING_LIST *StrList\r
e00e1d46 95 );\r
3eb9473e 96STATUS\r
97FileSearchExcludeFiles (\r
98 FILE_SEARCH_DATA *FSData,\r
99 STRING_LIST *StrList\r
e00e1d46 100 );\r
3eb9473e 101#endif\r