зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1181482 - Patch1: Refine some data types in gecko backend for GATT server read/write request APIs. r=btian
This commit is contained in:
Родитель
ecebfa45d5
Коммит
08e25742a0
|
@ -980,7 +980,7 @@ BluetoothDaemonGattModule::ServerSendIndicationCmd(
|
|||
|
||||
nsresult
|
||||
BluetoothDaemonGattModule::ServerSendResponseCmd(
|
||||
int aConnId, int aTransId, BluetoothGattStatus aStatus,
|
||||
int aConnId, int aTransId, uint16_t aStatus,
|
||||
const BluetoothGattResponse& aResponse,
|
||||
BluetoothGattResultHandler* aRes)
|
||||
{
|
||||
|
@ -996,7 +996,7 @@ BluetoothDaemonGattModule::ServerSendResponseCmd(
|
|||
aResponse.mHandle,
|
||||
aResponse.mOffset,
|
||||
PackConversion<BluetoothGattAuthReq, uint8_t>(aResponse.mAuthReq),
|
||||
PackConversion<BluetoothGattStatus, int32_t>(aStatus),
|
||||
PackConversion<uint16_t, int32_t>(aStatus),
|
||||
aResponse.mLength,
|
||||
PackArray<uint8_t>(aResponse.mValue, aResponse.mLength), *pdu);
|
||||
|
||||
|
@ -1940,7 +1940,7 @@ public:
|
|||
operator () (int& aArg1,
|
||||
int& aArg2,
|
||||
nsString& aArg3,
|
||||
int& aArg4,
|
||||
BluetoothAttributeHandle& aArg4,
|
||||
int& aArg5,
|
||||
bool& aArg6) const
|
||||
{
|
||||
|
@ -2005,7 +2005,7 @@ public:
|
|||
operator () (int& aArg1,
|
||||
int& aArg2,
|
||||
nsString& aArg3,
|
||||
int& aArg4,
|
||||
BluetoothAttributeHandle& aArg4,
|
||||
int& aArg5,
|
||||
int& aArg6,
|
||||
nsAutoArrayPtr<uint8_t>& aArg7,
|
||||
|
@ -2824,7 +2824,7 @@ BluetoothDaemonGattInterface::SendIndication(
|
|||
|
||||
void
|
||||
BluetoothDaemonGattInterface::SendResponse(
|
||||
int aConnId, int aTransId, BluetoothGattStatus aStatus,
|
||||
int aConnId, int aTransId, uint16_t aStatus,
|
||||
const BluetoothGattResponse& aResponse,
|
||||
BluetoothGattResultHandler* aRes)
|
||||
{
|
||||
|
|
|
@ -298,7 +298,7 @@ public:
|
|||
/* Send a response for an incoming indication */
|
||||
nsresult ServerSendResponseCmd(int aConnId,
|
||||
int aTransId,
|
||||
BluetoothGattStatus aStatus,
|
||||
uint16_t aStatus,
|
||||
const BluetoothGattResponse& aResponse,
|
||||
BluetoothGattResultHandler* aRes);
|
||||
// TODO: Add L support
|
||||
|
@ -655,14 +655,16 @@ protected:
|
|||
|
||||
typedef mozilla::ipc::DaemonNotificationRunnable6<
|
||||
NotificationHandlerWrapper, void,
|
||||
int, int, nsString, int, int, bool,
|
||||
int, int, const nsAString&, int, int, bool>
|
||||
int, int, nsString, BluetoothAttributeHandle, int, bool,
|
||||
int, int, const nsAString&, const BluetoothAttributeHandle&, int, bool>
|
||||
ServerRequestReadNotification;
|
||||
|
||||
typedef mozilla::ipc::DaemonNotificationRunnable9<
|
||||
NotificationHandlerWrapper, void,
|
||||
int, int, nsString, int, int, int, nsAutoArrayPtr<uint8_t>, bool, bool,
|
||||
int, int, const nsAString&, int, int, int, const uint8_t*, bool, bool>
|
||||
int, int, nsString, BluetoothAttributeHandle, int, int,
|
||||
nsAutoArrayPtr<uint8_t>, bool, bool,
|
||||
int, int, const nsAString&, const BluetoothAttributeHandle&, int, int,
|
||||
const uint8_t*, bool, bool>
|
||||
ServerRequestWriteNotification;
|
||||
|
||||
typedef mozilla::ipc::DaemonNotificationRunnable4<
|
||||
|
@ -986,7 +988,7 @@ public:
|
|||
/* Send a response for an incoming indication */
|
||||
void SendResponse(int aConnId,
|
||||
int aTransId,
|
||||
BluetoothGattStatus aStatus,
|
||||
uint16_t aStatus,
|
||||
const BluetoothGattResponse& aResponse,
|
||||
BluetoothGattResultHandler* aRes) override;
|
||||
|
||||
|
|
|
@ -634,15 +634,15 @@ BluetoothGattNotificationHandler::ServiceDeletedNotification(
|
|||
|
||||
void
|
||||
BluetoothGattNotificationHandler::RequestReadNotification(
|
||||
int aConnId, int aTransId, const nsAString& aBdAddr, int aAttributeHandle,
|
||||
int aOffset, bool aIsLong)
|
||||
int aConnId, int aTransId, const nsAString& aBdAddr,
|
||||
const BluetoothAttributeHandle& aAttributeHandle, int aOffset, bool aIsLong)
|
||||
{ }
|
||||
|
||||
void
|
||||
BluetoothGattNotificationHandler::RequestWriteNotification(
|
||||
int aConnId, int aTransId, const nsAString& aBdAddr, int aAttributeHandle,
|
||||
int aOffset, int aLength, const uint8_t* aValue, bool aNeedResponse,
|
||||
bool aIsPrepareWrite)
|
||||
int aConnId, int aTransId, const nsAString& aBdAddr,
|
||||
const BluetoothAttributeHandle& aAttributeHandle, int aOffset, int aLength,
|
||||
const uint8_t* aValue, bool aNeedResponse, bool aIsPrepareWrite)
|
||||
{ }
|
||||
|
||||
void
|
||||
|
|
|
@ -613,7 +613,7 @@ public:
|
|||
RequestReadNotification(int aConnId,
|
||||
int aTransId,
|
||||
const nsAString& aBdAddr,
|
||||
int aAttributeHandle,
|
||||
const BluetoothAttributeHandle& aAttributeHandle,
|
||||
int aOffset,
|
||||
bool aIsLong);
|
||||
|
||||
|
@ -621,7 +621,7 @@ public:
|
|||
RequestWriteNotification(int aConnId,
|
||||
int aTransId,
|
||||
const nsAString& aBdAddr,
|
||||
int aAttributeHandle,
|
||||
const BluetoothAttributeHandle& aAttributeHandle,
|
||||
int aOffset,
|
||||
int aLength,
|
||||
const uint8_t* aValue,
|
||||
|
@ -917,7 +917,7 @@ public:
|
|||
/* Send a response for an incoming indication */
|
||||
virtual void SendResponse(int aConnId,
|
||||
int aTransId,
|
||||
BluetoothGattStatus aStatus,
|
||||
uint16_t aStatus,
|
||||
const BluetoothGattResponse& aResponse,
|
||||
BluetoothGattResultHandler* aRes) = 0;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче