Tizen Native API
5.5
|
The MTP Device Information API provides functions for gets the device information of MTP responder device.
#include <mtp.h>
The MTP Device Information api provides following functions :
This API is related with the following features:
It is recommended to design feature related codes in your application for reliability.
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 | mtp_deviceinfo_get_manufacturer_name (mtp_device_h mtp_device, char **manufacturer_name) |
Gets the manufacturer name of the device information. | |
int | mtp_deviceinfo_get_model_name (mtp_device_h mtp_device, char **model_name) |
Gets the model name of the device information. | |
int | mtp_deviceinfo_get_serial_number (mtp_device_h mtp_device, char **serial_number) |
Gets the serial number of the device information. | |
int | mtp_deviceinfo_get_device_version (mtp_device_h mtp_device, char **device_version) |
Gets the device version of the device information. |
int mtp_deviceinfo_get_device_version | ( | mtp_device_h | mtp_device, |
char ** | device_version | ||
) |
Gets the device version of the device information.
[in] | mtp_device | The MTP device |
[out] | device_version | The device version of Device information |
MTP_ERROR_NONE | Successful |
MTP_ERROR_NOT_SUPPORTED | MTP is not supported |
MTP_ERROR_INVALID_PARAMETER | Invalid parameter |
MTP_ERROR_NOT_INITIALIZED | MTP is not initialized |
MTP_ERROR_NOT_ACTIVATED | MTP is not activated |
MTP_ERROR_NOT_COMM_INITIALIZED | MTP communication is not initialized |
MTP_ERROR_COMM_ERROR | MTP communication error |
MTP_ERROR_CONTROLLER | MTP controller error |
MTP_ERROR_OUT_OF_MEMORY | Out of memory |
MTP_ERROR_NO_DEVICE | MTP have not any device |
int mtp_deviceinfo_get_manufacturer_name | ( | mtp_device_h | mtp_device, |
char ** | manufacturer_name | ||
) |
Gets the manufacturer name of the device information.
[in] | mtp_device | The MTP device |
[out] | manufacturer_name | The manufacturer name of Device information |
MTP_ERROR_NONE | Successful |
MTP_ERROR_NOT_SUPPORTED | MTP is not supported |
MTP_ERROR_INVALID_PARAMETER | Invalid parameter |
MTP_ERROR_NOT_INITIALIZED | MTP is not initialized |
MTP_ERROR_NOT_ACTIVATED | MTP is not activated |
MTP_ERROR_NOT_COMM_INITIALIZED | MTP communication is not initialized |
MTP_ERROR_COMM_ERROR | MTP communication error |
MTP_ERROR_CONTROLLER | MTP controller error |
MTP_ERROR_OUT_OF_MEMORY | Memory Allocation failed |
MTP_ERROR_NO_DEVICE | MTP have not any device |
int mtp_deviceinfo_get_model_name | ( | mtp_device_h | mtp_device, |
char ** | model_name | ||
) |
Gets the model name of the device information.
[in] | mtp_device | The MTP device |
[out] | model_name | The model name of Device information |
MTP_ERROR_NONE | Successful |
MTP_ERROR_NOT_SUPPORTED | MTP is not supported |
MTP_ERROR_INVALID_PARAMETER | Invalid parameter |
MTP_ERROR_NOT_INITIALIZED | MTP is not initialized |
MTP_ERROR_NOT_ACTIVATED | MTP is not activated |
MTP_ERROR_NOT_COMM_INITIALIZED | MTP communication is not initialized |
MTP_ERROR_COMM_ERROR | MTP communication error |
MTP_ERROR_CONTROLLER | MTP controller error |
MTP_ERROR_OUT_OF_MEMORY | Out of memory |
MTP_ERROR_NO_DEVICE | MTP have not any device |
int mtp_deviceinfo_get_serial_number | ( | mtp_device_h | mtp_device, |
char ** | serial_number | ||
) |
Gets the serial number of the device information.
[in] | mtp_device | The MTP device |
[out] | serial_number | The serial number of Device information |
MTP_ERROR_NONE | Successful |
MTP_ERROR_NOT_SUPPORTED | MTP is not supported |
MTP_ERROR_INVALID_PARAMETER | Invalid parameter |
MTP_ERROR_NOT_INITIALIZED | MTP is not initialized |
MTP_ERROR_NOT_ACTIVATED | MTP is not activated |
MTP_ERROR_NOT_COMM_INITIALIZED | MTP communication is not initialized |
MTP_ERROR_COMM_ERROR | MTP communication error |
MTP_ERROR_CONTROLLER | MTP controller error |
MTP_ERROR_OUT_OF_MEMORY | Out of memory |
MTP_ERROR_NO_DEVICE | MTP have not any device |