refactoring loading dump files
This commit is contained in:
1 parent
d430f51276
commit
d4c3082741
6 files changed
+84
-162
No files matched your search
@@ -260,4 +260,16 @@ int searchFile(char **foundpath, const char *pm3dir, const char *searchname, con
|
||||
* @return
|
||||
*/
|
||||
DumpFileType_t getfiletype(const char *filename);
|
||||
|
||||
|
||||
/**
|
||||
* @brief load dump file into a data array dynamically allocated
|
||||
* @param fn
|
||||
* @param pdump pointer to loaded dump
|
||||
* @param dumplen the number of bytes loaded from dump file
|
||||
* @param maxdumplen maximum size of data array in bytes (JSON files)
|
||||
* @return PM3_SUCCESS if OK
|
||||
*/
|
||||
int pm3_load_dump(const char *fn, void **pdump, size_t *dumplen, size_t maxdumplen);
|
||||
|
||||
#endif // FILEUTILS_H
|
||||
Reference in new issue
Block a user