mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-29 08:37:36 -04:00
improved variable name and comment for GxsRequest::ansType
This commit is contained in:
parent
54f8ef1ffe
commit
bc748bf152
2 changed files with 4 additions and 4 deletions
|
@ -301,7 +301,7 @@ bool RsGxsDataAccess::requestMsgRelatedInfo(uint32_t &token, uint32_t ansType, c
|
||||||
void RsGxsDataAccess::setReq(GxsRequest* req, uint32_t token, uint32_t ansType, const RsTokReqOptions& opts) const
|
void RsGxsDataAccess::setReq(GxsRequest* req, uint32_t token, uint32_t ansType, const RsTokReqOptions& opts) const
|
||||||
{
|
{
|
||||||
req->token = token;
|
req->token = token;
|
||||||
req->ansType = ansType;
|
req->clientAnswerType = ansType;
|
||||||
req->Options = opts;
|
req->Options = opts;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1724,7 +1724,7 @@ bool RsGxsDataAccess::checkRequestStatus( uint32_t token, GxsRequestStatus& stat
|
||||||
|
|
||||||
if(req != nullptr)
|
if(req != nullptr)
|
||||||
{
|
{
|
||||||
anstype = req->ansType;
|
anstype = req->clientAnswerType;
|
||||||
reqtype = req->reqType;
|
reqtype = req->reqType;
|
||||||
status = COMPLETE;
|
status = COMPLETE;
|
||||||
ts = req->reqTime;
|
ts = req->reqTime;
|
||||||
|
|
|
@ -29,14 +29,14 @@
|
||||||
struct GxsRequest
|
struct GxsRequest
|
||||||
{
|
{
|
||||||
GxsRequest() :
|
GxsRequest() :
|
||||||
token(0), reqTime(0), ansType(0), reqType(0),
|
token(0), reqTime(0), clientAnswerType(0), reqType(0),
|
||||||
status(RsTokenService::FAILED) {}
|
status(RsTokenService::FAILED) {}
|
||||||
virtual ~GxsRequest() {}
|
virtual ~GxsRequest() {}
|
||||||
|
|
||||||
uint32_t token;
|
uint32_t token;
|
||||||
uint32_t reqTime;
|
uint32_t reqTime;
|
||||||
|
|
||||||
RS_DEPRECATED uint32_t ansType; /// G10h4ck: This is of no use. csoler: it's made available to the clients.
|
uint32_t clientAnswerType; /// This is made available to the clients in order to keep track of why specific requests where sent..
|
||||||
uint32_t reqType;
|
uint32_t reqType;
|
||||||
RsTokReqOptions Options;
|
RsTokReqOptions Options;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue