MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / main

Function main

BaseTools/Source/C/VolInfo/VolInfo.c:204–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204int
205main (
206 int argc,
207 char *argv[]
208 )
209/*++
210
211Routine Description:
212
213 GC_TODO: Add function description
214
215Arguments:
216
217 argc - GC_TODO: add argument description
218 ] - GC_TODO: add argument description
219
220Returns:
221
222 GC_TODO: add return values
223
224--*/
225{
226 FILE *InputFile;
227 int BytesRead;
228 EFI_FIRMWARE_VOLUME_HEADER *FvImage;
229 UINT32 FvSize;
230 EFI_STATUS Status;
231 int Offset;
232 BOOLEAN ErasePolarity;
233 UINT64 LogLevel;
234 CHAR8 *OpenSslEnv;
235 CHAR8 *OpenSslCommand;
236
237 SetUtilityName (UTILITY_NAME);
238 //
239 // Print utility header
240 //
241 printf ("%s Version %d.%d Build %s\n",
242 UTILITY_NAME,
243 UTILITY_MAJOR_VERSION,
244 UTILITY_MINOR_VERSION,
245 __BUILD_VERSION
246 );
247
248 if (argc == 1) {
249 Usage ();
250 return -1;
251 }
252
253 argc--;
254 argv++;
255 LogLevel = 0;
256 Offset = 0;
257
258 //
259 // Look for help options
260 //
261 if ((strcmp(argv[0], "-h") == 0) || (strcmp(argv[0], "--help") == 0) ||

Callers

nothing calls this directly

Calls 15

SetUtilityNameFunction · 0.85
printfFunction · 0.85
ParseGuidBaseNameFileFunction · 0.85
sscanfFunction · 0.85
GetUtilityStatusFunction · 0.85
getenvFunction · 0.85
CombinePathFunction · 0.85
SetPrintLevelFunction · 0.85
AsciiStringToUint64Function · 0.85
DebugMsgFunction · 0.85
fopenFunction · 0.85
ReadHeaderFunction · 0.85

Tested by

no test coverage detected