[yellowstone] Use denali client to parse GPT
This commit is contained in:
parent
45cf2115da
commit
36a83b142b
4 changed files with 56 additions and 83 deletions
|
|
@ -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_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue