diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-16 17:45:18 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-03-16 17:45:18 (GMT) |
| commit | f05044ab68e51ce9c374f6af09284051efcda449 (patch) | |
| tree | 6ae35ed5f6f3395593fc0d2c90780d8162f302e7 /src/client/requestbroker/APIResultParser.h | |
| parent | d383d6d7e5e1d3ca0856c02ebbcea5e9b8b2ff4e (diff) | |
| download | powder-f05044ab68e51ce9c374f6af09284051efcda449.zip powder-f05044ab68e51ce9c374f6af09284051efcda449.tar.gz | |
APIRequest, Aync methods for client, Profile edit/viewer (WIP)
Diffstat (limited to 'src/client/requestbroker/APIResultParser.h')
| -rw-r--r-- | src/client/requestbroker/APIResultParser.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/client/requestbroker/APIResultParser.h b/src/client/requestbroker/APIResultParser.h new file mode 100644 index 0000000..40c7512 --- /dev/null +++ b/src/client/requestbroker/APIResultParser.h @@ -0,0 +1,16 @@ +#ifndef APIRESULTPARSER_H +#define APIRESULTPARSER_H + +class APIResultParser +{ +public: + //Process the raw API response into a result object to be returned to the requester + virtual void * ProcessResponse(unsigned char * data, int dataLength) { return 0; } + + //A method to clean up the result of ProcessResponse in the event of a callback failure in APIRequest/RequestBroker + virtual void Cleanup(void * objectPtr) { } + + virtual ~APIResultParser() { } +}; + +#endif
\ No newline at end of file |
