[yellowstone] Use denali client to parse GPT

This commit is contained in:
Drew Galbraith 2023-06-19 22:58:00 -07:00
parent 45cf2115da
commit 36a83b142b
4 changed files with 56 additions and 83 deletions

View file

@ -1,10 +1,15 @@
#pragma once
#include <denali/denali_client.h>
#include <stdint.h>
#include <ztypes.h>
z_err_t CheckMbrIsGpt(uint64_t mem_cap);
class GptReader {
public:
GptReader(const DenaliClient&);
z_err_t ReadPartitionHeader(uint64_t mem_cap);
z_err_t ParsePartitionTables();
z_err_t ReadPartitionEntries(uint64_t mem_cap);
private:
DenaliClient denali_;
};