/*
 * 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_ */
