Files
SystemPaw3/paw/stos/head/ex/pbi.h
T
Chloe M. 1df447c91d stos: ke: Add PBI image parser
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 02:34:13 +00:00

40 lines
658 B
C

/*
* 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 <stapi/status.h>
#include <stdef.h>
/*
* Represents an BPI file
*
* @Data: Actual raw data
* @Size: Byte count
*/
typedef struct {
VOID *Data;
USIZE Size;
} EX_BPI_FILE;
/*
* Look up a file from the pre-boot image
*
* @Path: Path to file to lookup
* @Result: Result is written here
*/
ST_STATUS ExPbiLookup(CHAR *Path, EX_BPI_FILE *Result);
/*
* Initialize the pre-boot image manaer
*/
ST_STATUS ExPbiInit(VOID);
#endif /* !_EX_PBI_H_ */