summaryrefslogtreecommitdiff
path: root/include/user/promoterutil.h
diff options
context:
space:
mode:
authorYifan Lu2016-11-21 17:19:35 -0600
committerYifan Lu2016-11-21 17:19:35 -0600
commit143aa8241b91020d8109421648c277ec15431a6d (patch)
treecb360cc57b844dfce8595a171dcdebbf0b0d9532 /include/user/promoterutil.h
parentMerge pull request #89 from devnoname120/doxygen (diff)
downloadvds-libraries-143aa8241b91020d8109421648c277ec15431a6d.tar.gz
Added promoterutil
Diffstat (limited to 'include/user/promoterutil.h')
-rw-r--r--include/user/promoterutil.h28
1 files changed, 28 insertions, 0 deletions
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 <psp2/types.h>
+
+#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_ */