diff options
author | Reiko Asakura | 2020-10-02 16:32:27 -0400 |
---|---|---|
committer | Reiko Asakura | 2020-10-02 16:32:27 -0400 |
commit | 7cf15103d02c21bf9ddc0821941a1b60edda2bc4 (patch) | |
tree | e302428c78b9e156bcaf81281bd4eb144bdec490 /include/user/ini_file_processor.h | |
parent | Add sceAppMgrSendNotificationRequest (diff) | |
download | vds-libraries-7cf15103d02c21bf9ddc0821941a1b60edda2bc4.tar.gz |
SceIniFileProcessor: fixes for type and names
Diffstat (limited to 'include/user/ini_file_processor.h')
-rw-r--r-- | include/user/ini_file_processor.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/user/ini_file_processor.h b/include/user/ini_file_processor.h index f20c43f..8e1ce9c 100644 --- a/include/user/ini_file_processor.h +++ b/include/user/ini_file_processor.h @@ -64,7 +64,7 @@ public: int terminateForError(); /** - * Get INI as a char array + * Get INI as a string. The returned buffer is not null-terminated. * * @param[out] ini - memory where INI data is stored * @param[out] size - size of the INI data @@ -74,7 +74,7 @@ public: int serialize(const char** ini, size_t* size); /** - * Process INI as a char array + * Process INI as a string. Size is without null-terminator. * * @param[in] ini - memory where INI data is stored * @param[in] size - size of the INI data @@ -92,7 +92,7 @@ public: * * @return 0 on success, < 0 on error. */ - int openFile(const char* path, const char* mode, int unk); + int open(const char* path, const char* mode, int unk); /** * Create new INI file and open it. If file is already present, it will be overwritten @@ -104,17 +104,17 @@ public: * @return 0 on success, < 0 on error. * */ - int createFile(const char* path, const char* mode, int unk); + int create(const char* path, const char* mode, int unk); /** - * Close file + * Close INI file * * @return 0 on success, < 0 on error. */ - int closeFile(); + int close(); /** - * Clean temp files + * Cleanup temp files * * @return 0 on success, < 0 on error. */ @@ -161,11 +161,12 @@ public: * * @param[in] key - key string * @param[out] val - buffer to store value string if found - * @param[in] size - size of outValueBuf + * @param[in] size - size of the output buffer + * @param[in] offset - offset into the value corresponding to key * * @return 0 on success, < 0 on error. */ - int get(const char* key, char* val, size_t size); + int get(const char* key, char* val, size_t size, size_t offset); /** * Parse key and corresponding value, one key per call until eof |