mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
Change DisconnectFromEndpoint to accept const char * instead of char *.
PiperOrigin-RevId: 452301890
This commit is contained in:
@@ -244,7 +244,7 @@ void CancelPayload(connections::Core *pCore, std::int64_t payload_id,
|
||||
pCore->CancelPayload(payload_id, *callback.GetImpl());
|
||||
}
|
||||
|
||||
void DisconnectFromEndpoint(connections::Core *pCore, char *endpoint_id,
|
||||
void DisconnectFromEndpoint(connections::Core *pCore, const char *endpoint_id,
|
||||
ResultCallbackW callback) {
|
||||
if (pCore == nullptr) {
|
||||
return;
|
||||
|
||||
@@ -220,7 +220,8 @@ DLL_API void __stdcall CancelPayload(Core*, int64_t, ResultCallbackW);
|
||||
// result_cb - to access the status of the operation when available.
|
||||
// Possible status codes include:
|
||||
// Status::STATUS_OK - finished successfully.
|
||||
DLL_API void __stdcall DisconnectFromEndpoint(Core*, char*, ResultCallbackW);
|
||||
DLL_API void __stdcall DisconnectFromEndpoint(Core*, const char*,
|
||||
ResultCallbackW);
|
||||
|
||||
// Disconnects from, and removes all traces of, all connected and/or
|
||||
// discovered endpoints. This call is expected to be preceded by a call to
|
||||
|
||||
Reference in New Issue
Block a user