#define BT_CHECK_AVRCP_SUPPORT()
#endif
+#ifdef TIZEN_AVRCP_CONTROL_DISABLE
+#define BT_CHECK_AVRCP_CONTROL_SUPPORT() \
+ { \
+ BT_CHECK_BT_SUPPORT(); \
+ LOGE("[%s] NOT_SUPPORTED(0x%08x)", __FUNCTION__, BT_ERROR_NOT_SUPPORTED); \
+ return BT_ERROR_NOT_SUPPORTED; \
+ }
+#else
+#define BT_CHECK_AVRCP_CONTROL_SUPPORT()
+#endif
+
#define BT_CHECK_AVRCP_TARGET_INIT_STATUS() \
if (__bt_check_avrcp_target_init_status() == BT_ERROR_NOT_INITIALIZED) { \
LOGE("[%s] NOT_INITIALIZED(0x%08x)", __FUNCTION__, BT_ERROR_NOT_INITIALIZED); \
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(callback);
_bt_set_cb(BT_EVENT_AVRCP_CONNECTION_STATUS, callback, user_data);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
if (_bt_check_cb(BT_EVENT_AVRCP_CONNECTION_STATUS) == true)
int error;
bluetooth_device_address_t addr_hex = { {0,} };
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(remote_address);
int error;
bluetooth_device_address_t addr_hex = { {0,} };
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(remote_address);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
error = bluetooth_media_control_command(cmd);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
error = bluetooth_media_control_set_property(EQUALIZER, state);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(state);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
error = bluetooth_media_control_set_property(REPEAT, mode);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(mode);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
error = bluetooth_media_control_set_property(SHUFFLE, mode);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(mode);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
error = bluetooth_media_control_set_property(SCAN, mode);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(mode);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(position);
{
int error;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(status);
media_metadata_attributes_t metadata = {0,};
bt_avrcp_metadata_attributes_info_s *tr_info = NULL;
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(track);
int bt_avrcp_control_free_track_info(bt_avrcp_metadata_attributes_info_s *track)
{
- BT_CHECK_AVRCP_SUPPORT();
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
BT_CHECK_INIT_STATUS();
BT_CHECK_INPUT_PARAMETER(track);
g_free((gpointer)track->title);