Add function to check whether PBAP profile is connected
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / services / device / bt-service-core-device.c
index 9ee1128..10a667e 100644 (file)
@@ -49,6 +49,7 @@
 #endif
 #ifdef TIZEN_FEATURE_BT_OBEX
 #include "bt-service-obex-server.h"
+#include "bt-service-pbap.h"
 #endif
 #include "bt-service-util.h"
 
@@ -2085,6 +2086,11 @@ gboolean _bt_is_device_connected(bluetooth_device_address_t *device_address, int
                break;
        case BT_PROFILE_CONN_GATT:
                return _bt_is_remote_gatt_device_connected(device_address); /* Remote is GATT client or Server */
+#ifdef TIZEN_FEATURE_BT_OBEX
+       case BT_PROFILE_CONN_PBAP:
+               _bt_pbap_is_connected(device_address, &is_connected); /* Remote is PBAP Server */
+               return is_connected;
+#endif
        default:
                BT_DBG("Unknown svc_type: %d", svc_type);
                return FALSE;