mirror of
https://github.com/spiffcode/hostile-takeover.git
synced 2026-03-28 07:49:40 -06:00
25 lines
653 B
C++
25 lines
653 B
C++
#include "game/sdl/sdlhttpservice.h"
|
|
#include "game/sdl/sdlhttprequest.h"
|
|
//#include "game/iphone/input.h"
|
|
|
|
// HttpService calls come in on the game thread. In order to use
|
|
// iPhone NS* Http apis, requests execute on the main thread.
|
|
|
|
namespace wi {
|
|
|
|
HttpRequest *SdlHttpService::NewRequest(HttpResponseHandler *phandler) {
|
|
return new SdlHttpRequest(phandler);
|
|
}
|
|
|
|
void SdlHttpService::SubmitRequest(HttpRequest *preq) {
|
|
SdlHttpRequest *preqT = (SdlHttpRequest *)preq;
|
|
preqT->Submit();
|
|
}
|
|
|
|
void SdlHttpService::ReleaseRequest(HttpRequest *preq) {
|
|
SdlHttpRequest *preqT = (SdlHttpRequest *)preq;
|
|
preqT->Release();
|
|
}
|
|
|
|
} // namespace wi
|