diff options
Diffstat (limited to '')
-rw-r--r-- | include/user/npdrm.h | 55 | ||||
-rw-r--r-- | include/user/paf.h | 30 | ||||
-rw-r--r-- | include/user/sysmodule.h | 1 | ||||
-rw-r--r-- | include/user/videoexport.h | 41 |
4 files changed, 127 insertions, 0 deletions
diff --git a/include/user/npdrm.h b/include/user/npdrm.h new file mode 100644 index 0000000..83a0c03 --- /dev/null +++ b/include/user/npdrm.h @@ -0,0 +1,55 @@ +#ifndef _PSP2_NPDRM_H_ +#define _PSP2_NPDRM_H_ + +#include <psp2/types.h> +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Get rif name + * + * @param[out] rif_name - RIF name buffer (48 bytes) + * + * @param[in] unk - Unknown, use 0 + * + * @param[in] aid - Account ID + * + * @return 0 on success, < 0 on error. +*/ +int _sceNpDrmGetRifName(char *rif_name, int unk, uint64_t aid); + +/** + * Get fixed rif name + * + * @param[out] rif_name - RIF name buffer (48 bytes) + * + * @param[in] unk - Unknown, use 0 + * + * @param[in] aid - Account ID + * + * @return 0 on success, < 0 on error. +*/ +int _sceNpDrmGetFixedRifName(char *rif_name, int unk, uint64_t aid); + +/** + * Get rif name for install + * + * @param[out] rif_name - RIF name buffer (48 bytes) + * + * @param[in] rif_data - Data of RIF file (512 bytes) + * + * @param[in] unk - Unknown, use 0 + * + * @return 0 on success, < 0 on error. +*/ +int _sceNpDrmGetRifNameForInstall(char *rif_name, const void *rif_data, int unk); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_NPDRM_H_ */ + diff --git a/include/user/paf.h b/include/user/paf.h new file mode 100644 index 0000000..336d45d --- /dev/null +++ b/include/user/paf.h @@ -0,0 +1,30 @@ +#ifndef _PSP2_PAF_H_ +#define _PSP2_PAF_H_ + +#include <psp2/types.h> +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif + +void sce_paf_private_free(void *ptr); +void *sce_paf_private_malloc(size_t size); +void *sce_paf_private_memcpy(void *destination, const void *source, size_t num); +void *sce_paf_private_memset(void *ptr, int value, size_t num); +int sce_paf_private_snprintf(char *s, size_t n, const char *format, ...); +int sce_paf_private_strcasecmp(const char *str1, const char *str2); +char *sce_paf_private_strchr(const char *str, int character); +int sce_paf_private_strcmp(const char *str1, const char *str2); +size_t sce_paf_private_strlen(const char *str); +int sce_paf_private_strncasecmp(const char *str1, const char *str2, size_t num); +int sce_paf_private_strncmp(const char *str1, const char *str2, size_t num); +char *sce_paf_private_strncpy(char *destination, const char *source, size_t num); +char *sce_paf_private_strrchr(const char *str, int character); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_PAF_H_ */ + diff --git a/include/user/sysmodule.h b/include/user/sysmodule.h index 23319cb..c8ad734 100644 --- a/include/user/sysmodule.h +++ b/include/user/sysmodule.h @@ -77,6 +77,7 @@ typedef enum SceSysmoduleModuleId { /* internal module IDs */ typedef enum SceSysmoduleInternalModuleId { SCE_SYSMODULE_PAF = 0x80000008, + SCE_SYSMODULE_VIDEO_EXPORT = 0x80000020, SCE_SYSMODULE_PROMOTER_UTIL = 0x80000024 } SceSysmoduleInternalModuleId; diff --git a/include/user/videoexport.h b/include/user/videoexport.h new file mode 100644 index 0000000..a002dde --- /dev/null +++ b/include/user/videoexport.h @@ -0,0 +1,41 @@ +#ifndef _PSP2_VIDEO_EXPORT_H_ +#define _PSP2_VIDEO_EXPORT_H_ + +#include <psp2/types.h> +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct VideoExportInputParam { + char path[1024]; //!< Path of file to be exported + char reserved[64]; //!< Reserved data +} VideoExportInputParam; + +typedef struct VideoExportOutputParam { + char path[1024]; //!< Path of exported file + char reserved[8]; //!< Reserved data +} VideoExportOutputParam; + +/** + * Export video file + * + * @param[in] in_param - Input param + * @param[in] unk - Unknown, pass 1 + * @param[in] workingMemory - Working memory + * @param[in] cancelCb - Cancel callback + * @param[in] progress - Progress callback + * @param[in] user - User data passed to the callbacks + * @param[in] unk2 - Unknown, pass 0 + * @param[out] out_param - Output param + * + * @return 0 on success, < 0 on error. +*/ +int sceVideoExportFromFile(const VideoExportInputParam* in_param, int unk, void* workingMemory, void* cancelCb, void (*progress)(void*, int), void* user, int unk2, VideoExportOutputParam* out_param); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_VIDEO_EXPORT_H_ */ |