ptos: ex: Add pre-boot image parser

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-14 16:45:28 -04:00
parent 94e2dbfed0
commit 5a59c308db
3 changed files with 130 additions and 1 deletions
+39
View File
@@ -0,0 +1,39 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Pre-boot image manager
* Author: Chloe M.
*/
#ifndef _EX_PBI_H_
#define _EX_PBI_H_ 1
#include <ptapi/status.h>
#include <ptdef.h>
/*
* Represents an BPI file
*
* @Data: Actual raw data
* @Size: Byte count
*/
typedef struct {
VOID *Data;
USIZE Size;
} PBI_FILE;
/*
* Look up a file from the pre-boot image
*
* @Path: Path to file to lookup
* @Result: Result is written here
*/
PT_STATUS ExPbiLookup(CHAR *Path, PBI_FILE *Result);
/*
* Initialize the pre-boot image manaer
*/
PT_STATUS ExPbiInit(VOID);
#endif /* !_EX_PBI_H_ */