From 143aa8241b91020d8109421648c277ec15431a6d Mon Sep 17 00:00:00 2001 From: Yifan Lu Date: Mon, 21 Nov 2016 17:19:35 -0600 Subject: Added promoterutil --- include/user/promoterutil.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/user/promoterutil.h (limited to 'include/user/promoterutil.h') diff --git a/include/user/promoterutil.h b/include/user/promoterutil.h new file mode 100644 index 0000000..374141f --- /dev/null +++ b/include/user/promoterutil.h @@ -0,0 +1,28 @@ +#ifndef _PSP2_PROMOTERUTIL_H_ +#define _PSP2_PROMOTERUTIL_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct ScePromoterUtilityLAUpdate { + char titleid[12]; // target app + char path[128]; // directory of extracted LA update data +} ScePromoterUtilityLAUpdate; + +int scePromoterUtilityInit(void); +int scePromoterUtilityExit(void); +int scePromoterUtilityDeletePkg(void *unk); +int scePromoterUtilityUpdateLiveArea(ScePromoterUtilityLAUpdate *args); +int scePromoterUtilityPromotePkg(char *path, int unk); +int scePromoterUtilityPromotePkgWithRif(const char *path, int unk); +int scePromoterUtilityGetState(int *state); +int scePromoterUtilityGetResult(int *res); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_PROMOTERUTIL_H_ */ -- cgit v1.2.3