USB Exported Control API > BS2_GetLogSmallBlobExFromDirWithKey
[+2.8.2] Import a certain amount of logs from the USB extracted data to match the Event Mask.
#include "BS_API.h" int BS2_GetLogSmallBlobExFromDirWithKey(void* context, const char* szDir, uint16_t eventMask, BS2_EVENT_ID eventId, uint32_t amount, BS2EventSmallBlobEx** logsObj, uint32_t* numLog, const BS2EncryptKey* key);
context
: ContextszDir
: Data storage patheventMask
: event maskeventId
: Log record ID, if zero, gets it from scratch.amount
: Maximum number of log records, if zero, gets all records since eventId.logsObj
: Pointer to store user informationnumLog
: Number of log recordskey
: Encryption key and the key value specified by BS2_SetDataEncryptKey
Note
The logsObj variable must be used and then returned to the system using the BS2_ReleaseObject function.
Returns BS_SDK_SUCCESS
if performed successfully, or a corresponding error code if an error occurs.