summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/caps/caps.h
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2020-04-01 01:16:36 +0200
committerGitHub <noreply@github.com>2020-04-01 01:16:36 +0200
commit224a75d83958eda9c563fb4a9c656db285438f9d (patch)
treea82c3c98f37e94e20865bc5351b19f0df4f9dbde /src/core/hle/service/caps/caps.h
parentMerge pull request #3561 from ReinUsesLisp/f2f-conversion (diff)
downloadyuzu-224a75d83958eda9c563fb4a9c656db285438f9d.tar
yuzu-224a75d83958eda9c563fb4a9c656db285438f9d.tar.gz
yuzu-224a75d83958eda9c563fb4a9c656db285438f9d.tar.bz2
yuzu-224a75d83958eda9c563fb4a9c656db285438f9d.tar.lz
yuzu-224a75d83958eda9c563fb4a9c656db285438f9d.tar.xz
yuzu-224a75d83958eda9c563fb4a9c656db285438f9d.tar.zst
yuzu-224a75d83958eda9c563fb4a9c656db285438f9d.zip
Diffstat (limited to 'src/core/hle/service/caps/caps.h')
-rw-r--r--src/core/hle/service/caps/caps.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/core/hle/service/caps/caps.h b/src/core/hle/service/caps/caps.h
index 471185dfa..fc70a4c27 100644
--- a/src/core/hle/service/caps/caps.h
+++ b/src/core/hle/service/caps/caps.h
@@ -4,12 +4,83 @@
#pragma once
+#include "core/hle/service/service.h"
+
namespace Service::SM {
class ServiceManager;
}
namespace Service::Capture {
+enum AlbumImageOrientation {
+ Orientation0 = 0,
+ Orientation1 = 1,
+ Orientation2 = 2,
+ Orientation3 = 3,
+};
+
+enum AlbumReportOption {
+ Disable = 0,
+ Enable = 1,
+};
+
+enum ContentType : u8 {
+ Screenshot = 0,
+ Movie = 1,
+ ExtraMovie = 3,
+};
+
+enum AlbumStorage : u8 {
+ NAND = 0,
+ SD = 1,
+};
+
+struct AlbumFileDateTime {
+ u16 year;
+ u8 month;
+ u8 day;
+ u8 hour;
+ u8 minute;
+ u8 second;
+ u8 uid;
+};
+
+struct AlbumEntry {
+ u64 size;
+ u64 application_id;
+ AlbumFileDateTime datetime;
+ AlbumStorage storage;
+ ContentType content;
+ u8 padding[6];
+};
+
+struct AlbumFileEntry {
+ u64 size;
+ u64 hash;
+ AlbumFileDateTime datetime;
+ AlbumStorage storage;
+ ContentType content;
+ u8 padding[5];
+ u8 unknown;
+};
+
+struct ApplicationAlbumEntry {
+ u64 size;
+ u64 hash;
+ AlbumFileDateTime datetime;
+ AlbumStorage storage;
+ ContentType content;
+ u8 padding[5];
+ u8 unknown;
+};
+
+struct ApplicationAlbumFileEntry {
+ ApplicationAlbumEntry entry;
+ AlbumFileDateTime datetime;
+ u64 unknown;
+};
+
+/// Registers all Capture services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& sm);
} // namespace Service::Capture