nfc_se_session_is_session_closed()
Check if a session is closed.
Synopsis:
#include <nfc/nfc_se_access.h>
NFC_API nfc_result_t nfc_se_session_is_session_closed(uint32_t hSESession, bool *pIsClosed)
Arguments:
- hSESession
-
The handle to the session of interest.
- pIsClosed
-
true if the session is not open with the specified handle, false otherwise. This value is valid only when this function returns NFC_RESULT_SUCCESS.
Library:
libnfcDescription:
Returns:
NFC_RESULT_SUCCESS if the platform is able to determine if the session is closed; or one of the following values is returned:
- NFC_RESULT_SERVICE_CONNECTION_ERROR: An attempt to connect to the NFC system has failed.
- NFC_RESULT_INVALID_PARAMETER: A parameter is invalid.
- NFC_RESULT_SE_INVALID_HANDLE: The hSESession is invalid.