Set analytics APIs for remote capture file and replay

The API used was not populated for the case of remote
capture and replay.
This commit is contained in:
Aliya Pazylbekova
2019-06-18 16:28:03 -04:00
committed by Baldur Karlsson
parent 4923aa9d88
commit e21ddb4877
5 changed files with 56 additions and 13 deletions
+42
View File
@@ -63,6 +63,7 @@ enum RemoteServerPacket
eRemoteServer_ListDir,
eRemoteServer_ExecuteAndInject,
eRemoteServer_ShutdownServer,
eRemoteServer_GetDriverName,
eRemoteServer_GetSectionCount,
eRemoteServer_FindSectionByName,
eRemoteServer_FindSectionByType,
@@ -584,6 +585,17 @@ static void ActiveRemoteClientThread(ClientThread *threadData,
SERIALISE_ELEMENT(StackFrames);
}
}
else if(type == eRemoteServer_GetDriverName)
{
reader.EndChunk();
std::string driver = rdc ? rdc->GetDriverName() : "";
{
WRITE_DATA_SCOPE();
SCOPED_SERIALISE_CHUNK(eRemoteServer_GetDriverName);
SERIALISE_ELEMENT(driver);
}
}
else if(type == eRemoteServer_GetSectionCount)
{
reader.EndChunk();
@@ -1631,6 +1643,36 @@ public:
rend->Shutdown();
}
rdcstr DriverName()
{
if(!Connected())
return 0;
{
WRITE_DATA_SCOPE();
SCOPED_SERIALISE_CHUNK(eRemoteServer_GetDriverName);
}
std::string driverName = "";
{
READ_DATA_SCOPE();
RemoteServerPacket type = ser.ReadChunk<RemoteServerPacket>();
if(type == eRemoteServer_GetDriverName)
{
SERIALISE_ELEMENT(driverName);
}
else
{
RDCERR("Unexpected response to GetDriverName");
}
ser.EndChunk();
}
return driverName;
}
int GetSectionCount()
{
if(!Connected())