mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
refactoring loading dump files
This commit is contained in:
parent
d430f51276
commit
d4c3082741
6 changed files with 84 additions and 162 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue