diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-12-19 23:50:20 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-12-21 07:05:34 -0500 |
| commit | b221836d5d245f3dbda73163f8f477bcce79739f (patch) | |
| tree | 231239717b1035634a2d6ec5d09622fd7a5c6f4b /src/core/file_sys/program_metadata.h | |
| parent | d7e7faa0de0f3e6ef51fc300ea60be78196f47ba (diff) | |
kernel/process: Hook up the process capability parser to the process itself
While we're at it, we can also toss out the leftover capability parsing
from Citra.
Diffstat (limited to 'src/core/file_sys/program_metadata.h')
| -rw-r--r-- | src/core/file_sys/program_metadata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/file_sys/program_metadata.h b/src/core/file_sys/program_metadata.h index e4470d6f08..0033ba3475 100644 --- a/src/core/file_sys/program_metadata.h +++ b/src/core/file_sys/program_metadata.h @@ -5,6 +5,7 @@ #pragma once #include <array> +#include <vector> #include "common/bit_field.h" #include "common/common_types.h" #include "common/swap.h" @@ -38,6 +39,8 @@ enum class ProgramFilePermission : u64 { */ class ProgramMetadata { public: + using KernelCapabilityDescriptors = std::vector<u32>; + ProgramMetadata(); ~ProgramMetadata(); @@ -50,6 +53,7 @@ public: u32 GetMainThreadStackSize() const; u64 GetTitleID() const; u64 GetFilesystemPermissions() const; + const KernelCapabilityDescriptors& GetKernelCapabilities() const; void Print() const; @@ -154,6 +158,8 @@ private: FileAccessControl acid_file_access; FileAccessHeader aci_file_access; + + KernelCapabilityDescriptors aci_kernel_capabilities; }; } // namespace FileSys |
