Tizen Native API
4.0
|
The SE Service API provides functions to service framework.
#include <smartcard.h>
This API is related with the following features:
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
Functions | |
int | smartcard_initialize (void) |
Initializes smartcard service. | |
int | smartcard_deinitialize (void) |
Deinitializes smartcard service. | |
int | smartcard_get_version (char **version) |
Gets the version of SIMAlliance OpenMobileAPI specification. | |
int | smartcard_get_readers (int **readers, int *length) |
Gets the list of available Secure Element readers. |
enum smartcard_error_e |
Error codes reported by the smartcard API.
int smartcard_deinitialize | ( | void | ) |
Deinitializes smartcard service.
Releases all the resource of the smartcard service
SMARTCARD_ERROR_NONE | Successful |
SMARTCARD_ERROR_GENERAL | A general error occurred |
SMARTCARD_ERROR_NOT_INITIALIZED | Smartcard service not initialized |
SMARTCARD_ERROR_NOT_SUPPORTED | Not supported |
SMARTCARD_ERROR_PERMISSION_DENIED | Permission denied |
int smartcard_get_readers | ( | int ** | readers, |
int * | length | ||
) |
Gets the list of available Secure Element readers.
[out] | readers | List of readers |
[out] | length | The number of readers |
SMARTCARD_ERROR_NONE | Successful |
SMARTCARD_ERROR_GENERAL | A general error occurred |
SMARTCARD_ERROR_INVALID_PARAMETER | Invalid function parameter |
SMARTCARD_ERROR_NOT_INITIALIZED | Smartcard service not initialized |
SMARTCARD_ERROR_NOT_SUPPORTED | Not supported |
int smartcard_get_version | ( | char ** | version | ) |
Gets the version of SIMAlliance OpenMobileAPI specification.
[out] | version | The version of SIMAlliance OpenMobileAPI specification |
SMARTCARD_ERROR_NONE | Successful |
SMARTCARD_ERROR_INVALID_PARAMETER | Invalid function parameter |
SMARTCARD_ERROR_NOT_INITIALIZED | Smartcard service not initialized |
SMARTCARD_ERROR_NOT_SUPPORTED | Not supported |
SMARTCARD_ERROR_OUT_OF_MEMORY | Out of memory |
int smartcard_initialize | ( | void | ) |
Initializes smartcard service.
SMARTCARD_ERROR_NONE | Successful |
SMARTCARD_ERROR_GENERAL | A general error occurred |
SMARTCARD_ERROR_NOT_SUPPORTED | Not supported |
SMARTCARD_ERROR_PERMISSION_DENIED | Permission denied |