CLOUD: Add RequestIdPair struct
Can be used with Callback<T> (means it's still type safe). It's used to pass not only Request id to user's callback, but also a value user wanted. void *data field is removed from RequestInfo.
This commit is contained in:
parent
62ccf1f902
commit
f4547f44df
15 changed files with 81 additions and 65 deletions
|
@ -37,7 +37,7 @@ class CurlJsonRequest: public CurlRequest {
|
|||
char *getPreparedContents();
|
||||
|
||||
public:
|
||||
CurlJsonRequest(Common::BaseCallback<> *cb, const char *url);
|
||||
CurlJsonRequest(DataCallback cb, const char *url); //TODO: use some Callback<JSON> already
|
||||
virtual ~CurlJsonRequest();
|
||||
|
||||
virtual bool handle();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue