summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordevnoname1202016-11-22 01:24:56 +0100
committerdevnoname1202016-11-22 01:24:56 +0100
commitfa2455df2400a5bc674856290ddb2b327c00b2b0 (patch)
treef9b8c2fcc4b804f26682be6f2f5e2d7a947814ad
parentAdded const to path for scePromoterUtilityPromotePkg (diff)
downloadvds-libraries-fa2455df2400a5bc674856290ddb2b327c00b2b0.tar.gz
Add documentation for promoterutil.h
-rw-r--r--include/user/promoterutil.h67
1 files changed, 65 insertions, 2 deletions
diff --git a/include/user/promoterutil.h b/include/user/promoterutil.h
index e6244d0..c3d2009 100644
--- a/include/user/promoterutil.h
+++ b/include/user/promoterutil.h
@@ -7,18 +7,81 @@
extern "C" {
#endif
+/** Parameters for scePromoterUtilityUpdateLiveArea() */
typedef struct ScePromoterUtilityLAUpdate {
- char titleid[12]; // target app
- char path[128]; // directory of extracted LA update data
+ char titleid[12]; //!< Target app.
+ char path[128]; //!< Directory of extracted LA update data.
} ScePromoterUtilityLAUpdate;
+/**
+ * Init the promoter utility.
+ * \note Needs to be called before using the other functions.
+ *
+ * @return 0 on success.
+ */
int scePromoterUtilityInit(void);
+
+/**
+ * Deinit the promoter utility.
+ *
+ * @return 0 on success.
+ */
int scePromoterUtilityExit(void);
+
+/**
+ * Delete a package from the LiveArea.
+ *
+ * @return 0 on success.
+ */
int scePromoterUtilityDeletePkg(void *unk);
+
+/**
+ * Update the LiveArea ressources of an app
+ *
+ * @param[in] *args - see ::ScePromoterUtilityLAUpdate
+ *
+ * @return 0 on success.
+ */
int scePromoterUtilityUpdateLiveArea(ScePromoterUtilityLAUpdate *args);
+
+/**
+ * Install a package from a directory, and add an icon on the LiveArea.
+ * \note It is an asynchronous function.
+ *
+ * @param[in] *path - the path of the directory where the extracted content of the package is
+ * @param unk - unknown, pass 0
+ *
+ * @return 0 on success.
+ */
int scePromoterUtilityPromotePkg(const char *path, int unk);
+
+/**
+ * Install a package from a directory and generate a rif.
+ * \note It is an asynchronous function.
+ *
+ * @param[in] *path - the path of the directory where the extracted content of the package is
+ * @param unk - unknown, pass 0
+ *
+ * @return 0 on success.
+ */
int scePromoterUtilityPromotePkgWithRif(const char *path, int unk);
+
+/**
+ * Returns the state of an operation.
+ *
+ * @param[out] *state - the current status, 0 when finished
+ *
+ * @return <0 if failed.
+ */
int scePromoterUtilityGetState(int *state);
+
+/**
+ * Returns the result of a finished operation
+ *
+ * @param[out] *res - the result, 0 on success
+ *
+ * @return <0 if failed.
+ */
int scePromoterUtilityGetResult(int *res);
#ifdef __cplusplus