차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
ko:bs2_getlogsmallblob [2020/02/17 20:44]
kkshin [BS2_GetLogSmallBlob]
ko:bs2_getlogsmallblob [2021/12/30 13:04] (현재)
mark [반환값]
줄 35: 줄 35:
 ==== 반환값 ==== ==== 반환값 ====
 성공적으로 수행될 경우 ''​BS_SDK_SUCCESS''​를 반환하고,​ 에러가 발생할 경우 상응하는 에러 코드를 반환합니다. 성공적으로 수행될 경우 ''​BS_SDK_SUCCESS''​를 반환하고,​ 에러가 발생할 경우 상응하는 에러 코드를 반환합니다.
 +==== 샘플코드 ====
 +C++
 +<code cpp>
 +int LogControl::​getLogSmallBlob(BS2_DEVICE_ID id)
 +{
 + uint16_t mask = BS2_EVENT_MASK_USER_ID;​
 + const uint32_t FROM_FIRST = 0;
 + BS2_EVENT_ID eID = FROM_FIRST;
 + uint32_t amount(0), numLog(0);
 + BS2EventSmallBlob* blobObj = NULL;
 +
 + int sdkResult = BS2_GetLogSmallBlob(context_,​ id, mask, eID, amount, &​blobObj,​ &​numLog);​
 + if (BS_SDK_SUCCESS != sdkResult)
 + TRACE("​BS2_GetLogSmallBlob call failed: %d", sdkResult);
 +
 + print(blobObj,​ numLog);
 +
 + if (blobObj)
 + {
 + if (blobObj->​imageObj)
 + BS2_ReleaseObject(blobObj->​imageObj);​
 +
 + BS2_ReleaseObject(blobObj);​
 + }
 + return sdkResult;
 +}
 +
 +</​code>​
 ==== 함께 보기 ==== ==== 함께 보기 ====
 [[BS2_GetLog]]\\ [[BS2_GetFilteredLog]]\\ [[BS2_ClearLog]]\\ [[BS2_GetLogBlob]] [[BS2_GetLog]]\\ [[BS2_GetFilteredLog]]\\ [[BS2_ClearLog]]\\ [[BS2_GetLogBlob]]