[Bluetooth] Fix EntryPoint error because of CAPI mismatch
authorGowtham Anandha Babu <gowtham.ab@samsung.com>
Wed, 21 Dec 2016 14:35:16 +0000 (20:05 +0530)
committerGowtham Anandha Babu <gowtham.ab@samsung.com>
Wed, 21 Dec 2016 14:37:16 +0000 (20:07 +0530)
Change-Id: Idb09e74f92e1ebf29151e95c3a7fc3d01fb7d0d2
Signed-off-by: Gowtham Anandha Babu <gowtham.ab@samsung.com>
Tizen.Bluetooth/Interop/Interop.Bluetooth.cs [changed mode: 0644->0755]
Tizen.Bluetooth/Tizen.Bluetooth/BluetoothGattImpl.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 81aaf74..842e8f6
@@ -589,8 +589,8 @@ internal static partial class Interop
         [DllImport(Libraries.Bluetooth, EntryPoint = "bt_gatt_server_send_response")]
         internal static extern int BtGattServerSendResponse(int requestId, int requestType, int offset, int status, byte[] value, int valueLen);
 
-        [DllImport(Libraries.Bluetooth, EntryPoint = "bt_gatt_server_notify")]
-        internal static extern int BtGattServerNotify(BluetoothGattAttributeHandle characteristicHandle, bool sendIndication, BtGattServerNotificationSentCallback callback, string clientAddress, IntPtr userData);
+        [DllImport(Libraries.Bluetooth, EntryPoint = "bt_gatt_server_notify_characteristic_changed_value")]
+        internal static extern int BtGattServerNotify(BluetoothGattAttributeHandle characteristicHandle, BtGattServerNotificationSentCallback callback, string clientAddress, IntPtr userData);
     }
 }
 
old mode 100644 (file)
new mode 100755 (executable)
index 450169b..6ed552f
@@ -109,7 +109,7 @@ namespace Tizen.Network.Bluetooth
 
         internal void SendNotification(BluetoothGattCharacteristic characteristic, string clientAddress)
         {
-            int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), false, null, clientAddress, IntPtr.Zero);
+            int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), null, clientAddress, IntPtr.Zero);
             GattUtil.ThrowForError(err, string.Format("Failed to send value changed notification for characteristic uuid {0}", characteristic.Uuid));
         }
 
@@ -125,7 +125,7 @@ namespace Tizen.Network.Bluetooth
                 }
             };
 
-            int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), true, cb, clientAddress, IntPtr.Zero);
+            int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), cb, clientAddress, IntPtr.Zero);
             GattUtil.ThrowForError(err, string.Format("Failed to send value changed indication for characteristic uuid {0}", characteristic.Uuid));
 
             return tcs.Task;