9 #include "../sf/service.h"
10 #include "../services/caps.h"
CapsAlbumFileContents
AlbumFileContents.
Definition: caps.h:140
CapsAlbumStorage
Definition: caps.h:25
Result capsaLoadAlbumFileThumbnail(const CapsAlbumFileId *file_id, u64 *out_size, void *image, u64 image_size)
Load the Thumbnail for the specified AlbumFile.
Result capsaGetAlbumCache(CapsAlbumStorage storage, CapsAlbumCache *cache)
Gets the AlbumCache of the specified AlbumStorage.
Result capsaGetAutoSavingStorage(CapsAlbumStorage *storage)
Gets the currently set autosaving storage.
Result capsaGetAlbumCacheEx(CapsAlbumStorage storage, CapsAlbumFileContents contents, CapsAlbumCache *cache)
Gets the AlbumCache for the specified type of the specified AlbumStorage.
Result capsaLoadAlbumScreenShotThumbnailImageEx1(const CapsAlbumFileId *file_id, const CapsScreenShotDecodeOption *opts, CapsLoadAlbumScreenShotImageOutput *out, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotThumbnailImage for the specified AlbumFile.
Result capsaIsAlbumMounted(CapsAlbumStorage storage, bool *is_mounted)
Gets the mount status of the specified CapsAlbumStorage.
Result capsaOpenAlbumMovieStream(u64 *stream, const CapsAlbumFileId *file_id)
Opens an AlbumMovieStream.
Result capsaGetAlbumUsage16(CapsAlbumStorage storage, u8 flags, CapsAlbumUsage16 *out)
Returns the AlbumUsage for a specified CapsAlbumStorage.
Result capsaGetAlbumMovieReadStreamImageDataSize(u64 stream, u64 *size)
Gets the data size of an Image taken from an AlbumMovieStream.
Result capsaGetAlbumFileSize(const CapsAlbumFileId *file_id, u64 *size)
Gets the size for the specified AlbumFile.
Result capsaStorageCopyAlbumFile(const CapsAlbumFileId *file_id, CapsAlbumStorage dst_storage)
Copies an AlbumFile to the specified CapsAlbumStorage.
Result capsaGetAlbumUsage(CapsAlbumStorage storage, CapsAlbumUsage2 *out)
Returns the AlbumUsage for a specified CapsAlbumStorage.
Result capsaGetAlbumUsage3(CapsAlbumStorage storage, CapsAlbumUsage3 *out)
Returns the AlbumUsage for a specified CapsAlbumStorage.
Result capsaGetAlbumEntryFromApplicationAlbumEntryAruid(CapsAlbumEntry *entry, const CapsApplicationAlbumEntry *application_entry)
Load an CapsAlbumEntry from a CapsApplicationAlbumEntry and an AppletResourceUserId.
Result capsaResetAlbumMountStatus(CapsAlbumStorage storage)
Resets mount status for the specified AlbumStorage.
Result capsaForceAlbumUnmounted(CapsAlbumStorage storage)
Unmounts the specified AlbumStorage.
Result capsaLoadAlbumFile(const CapsAlbumFileId *file_id, u64 *out_size, void *filebuf, u64 filebuf_size)
Loads a file into the specified buffer.
Result capsaLoadAlbumScreenShotThumbnailImageEx(u64 *width, u64 *height, const CapsAlbumFileId *file_id, const CapsScreenShotDecodeOption *opts, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotThumbnailImage for the specified AlbumFile.
Service * capsaGetServiceSession(void)
Gets the Service for caps:a.
Result capsaInitialize(void)
Initialize caps:a.
Result capsaGetLastOverlayMovieThumbnail(CapsAlbumFileId *file_id, u64 *out_size, void *image, u64 image_size)
Returns the image from the last shown Movie Overlay.
Result capsaGetAlbumFileCount(CapsAlbumStorage storage, u64 *count)
Gets the amount of files at a AlbumStorage.
Result capsaReadMovieDataFromAlbumMovieReadStream(u64 stream, s64 offset, void *buffer, size_t size, u64 *actual_size)
Reads data from an AlbumMovieStream.
Result capsaRefreshAlbumCache(CapsAlbumStorage storage)
Refreshs Album Cache for the specified AlbumStorage.
Result capsaGetAlbumMountResult(CapsAlbumStorage storage)
Returns the result for a AlbumStorage mount.
Result capsaGetAlbumFileCountEx0(CapsAlbumStorage storage, u8 flags, u64 *count)
Gets the amount of files of the specified type at a AlbumStorage.
Result capsaGetAlbumFileList(CapsAlbumStorage storage, u64 *out, CapsAlbumEntry *entries, u64 count)
Gets a listing of CapsAlbumEntry, where the AlbumFile's storage matches the input one.
Result capsLoadAlbumScreenShotThumbnailImageEx0(u64 *width, u64 *height, CapsScreenShotAttribute *attr, const CapsAlbumFileId *file_id, const CapsScreenShotDecodeOption *opts, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotThumbnailImage for the specified AlbumFile.
Service * capsaGetServiceSession_Accessor(void)
Gets the Service for IAlbumAccessorSession, only initialized after capsaOpenAlbumMovieStream was used...
Result capsaReadFileAttributeFromAlbumMovieReadStream(u64 stream, CapsScreenShotAttribute *attr)
Gets the file attribute of an AlbumMovieStream.
Result capsaGetAlbumEntryFromApplicationAlbumEntry(CapsAlbumEntry *entry, const CapsApplicationAlbumEntry *application_entry, u64 application_id)
Load an CapsAlbumEntry from a CapsApplicationAlbumEntry and an ApplicationId.
Result capsaLoadAlbumScreenShotImageEx(u64 *width, u64 *height, const CapsAlbumFileId *file_id, const CapsScreenShotDecodeOption *opts, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotImage for the specified AlbumFile.
Result capsaLoadAlbumScreenShotImageEx1(const CapsAlbumFileId *file_id, const CapsScreenShotDecodeOption *opts, CapsLoadAlbumScreenShotImageOutput *out, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotImage for the specified AlbumFile.
Result capsaReadImageDataFromAlbumMovieReadStream(u64 stream, s64 offset, void *buffer, size_t size, u64 *actual_size)
Reads data of an Image taken from an AlbumMovieStream.
Result capsaLoadAlbumScreenShotThumbnailImage(u64 *width, u64 *height, const CapsAlbumFileId *file_id, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotThumbnailImage for the specified AlbumFile.
Result capsaGetLastOverlayScreenShotThumbnail(CapsAlbumFileId *file_id, u64 *out_size, void *image, u64 image_size)
Returns the image from the last shown ScreenShot Overlay.
Result capsaGetAlbumMovieStreamSize(u64 stream, u64 *size)
Gets the data size of an AlbumMovieStream.
Result capsaGetRequiredStorageSpaceSizeToCopyAll(CapsAlbumStorage dst_storage, CapsAlbumStorage src_storage, u64 *out)
Gets required size to copy all files from one Storage to another.
Result capsaGetAlbumFileListEx0(CapsAlbumStorage storage, u8 flags, u64 *out, CapsAlbumEntry *entries, u64 count)
Gets a listing of CapsAlbumEntry, where the AlbumFile's storage and type matches the input one.
Result capsaLoadAlbumScreenShotImage(u64 *width, u64 *height, const CapsAlbumFileId *file_id, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotImage for the specified AlbumFile.
Result capsaGetAlbumMovieReadStreamBrokenReason(u64 stream)
Gets the BrokenReason for an AlbumMovieStream.
void capsaExit(void)
Exit caps:a.
Result capsaDeleteAlbumFile(const CapsAlbumFileId *file_id)
Deletes an AlbumFile corresponding to the specified CapsAlbumFileId.
Result capsaLoadAlbumScreenShotImageEx0(u64 *width, u64 *height, CapsScreenShotAttribute *attr, const CapsAlbumFileId *file_id, const CapsScreenShotDecodeOption *opts, void *image, u64 image_size, void *workbuf, u64 workbuf_size)
Load the ScreenShotImage for the specified AlbumFile.
Result capsaCloseAlbumMovieStream(u64 stream)
Closes an AlbumMovieStream.
Result capsaGetMinMaxAppletId(bool *success, u64 *min, u64 *max)
Returns the start and end of the Applet Id range.
AlbumCache.
Definition: caps.h:203
AlbumEntry.
Definition: caps.h:100
AlbumEntryId.
Definition: caps.h:91
ApplicationAlbumEntry.
Definition: caps.h:106
LoadAlbumScreenShotImageOutput.
Definition: caps.h:189
ScreenShotAttribute.
Definition: caps.h:38
ScreenShotDecodeOption.
Definition: caps.h:74
Service object structure.
Definition: service.h:14
int64_t s64
64-bit signed integer.
Definition: types.h:28
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
u32 Result
Function error code result type.
Definition: types.h:44