Change DisconnectFromEndpoint to accept const char * instead of char *.

PiperOrigin-RevId: 452301890
This commit is contained in:
hai007
2022-06-01 08:26:08 -07:00
committed by Copybara-Service
parent 412e97a40a
commit 5cf5ee2048
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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;
+2 -1
View File
@@ -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