summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_proto.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-12-19 14:33:19 +0000
committerRobert Pösel <robyer@seznam.cz>2015-12-19 14:33:19 +0000
commit39047df03b5a2ffaa1f2e9896aca97d4feb068bb (patch)
tree6df8a595ca01ac0b6072083804aec83efc816122 /protocols/Steam/src/steam_proto.h
parent2ebd5786b7c0b0be6f06ae0c9dd44526f34cba9c (diff)
Steam: Fix wrong type of argument in callbacks (use HttpResponse instead of NETLIBHTTPREQUEST)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/steam_proto.h')
-rw-r--r--protocols/Steam/src/steam_proto.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/protocols/Steam/src/steam_proto.h b/protocols/Steam/src/steam_proto.h
index 5f7f081f92..e7a6844153 100644
--- a/protocols/Steam/src/steam_proto.h
+++ b/protocols/Steam/src/steam_proto.h
@@ -28,8 +28,8 @@ enum
CMI_MAX // this item shall be the last one
};
-typedef void(CSteamProto::*SteamResponseCallback)(const NETLIBHTTPREQUEST *response);
-typedef void(CSteamProto::*SteamResponseWithArgCallback)(const NETLIBHTTPREQUEST *response, void *arg);
+typedef void(CSteamProto::*SteamResponseCallback)(const HttpResponse *response);
+typedef void(CSteamProto::*SteamResponseWithArgCallback)(const HttpResponse *response, void *arg);
class CSteamProto : public PROTO<CSteamProto>
{
@@ -107,14 +107,14 @@ protected:
bool IsOnline();
bool IsMe(const char *steamId);
- void OnGotRsaKey(const NETLIBHTTPREQUEST *response);
+ void OnGotRsaKey(const HttpResponse *response);
- void OnAuthorization(const NETLIBHTTPREQUEST *response);
+ void OnAuthorization(const HttpResponse *response);
void OnAuthorizationError(const JSONNode &node);
void OnAuthorizationSuccess(const JSONNode &node);
- void OnGotSession(const NETLIBHTTPREQUEST *response);
+ void OnGotSession(const HttpResponse *response);
- void OnLoggedOn(const NETLIBHTTPREQUEST *response);
+ void OnLoggedOn(const HttpResponse *response);
void HandleTokenExpired();
@@ -134,28 +134,28 @@ protected:
MCONTACT FindContact(const char *steamId);
MCONTACT AddContact(const char *steamId, bool isTemporary = false);
- void OnGotFriendList(const NETLIBHTTPREQUEST *response);
- void OnGotBlockList(const NETLIBHTTPREQUEST *response);
- void OnGotUserSummaries(const NETLIBHTTPREQUEST *response);
- void OnGotAvatar(const NETLIBHTTPREQUEST *response, void *arg);
+ void OnGotFriendList(const HttpResponse *response);
+ void OnGotBlockList(const HttpResponse *response);
+ void OnGotUserSummaries(const HttpResponse *response);
+ void OnGotAvatar(const HttpResponse *response, void *arg);
- void OnFriendAdded(const NETLIBHTTPREQUEST *response, void *arg);
- void OnFriendBlocked(const NETLIBHTTPREQUEST *response, void *arg);
- void OnFriendRemoved(const NETLIBHTTPREQUEST *response, void *arg);
+ void OnFriendAdded(const HttpResponse *response, void *arg);
+ void OnFriendBlocked(const HttpResponse *response, void *arg);
+ void OnFriendRemoved(const HttpResponse *response, void *arg);
- void OnAuthRequested(const NETLIBHTTPREQUEST *response, void *arg);
+ void OnAuthRequested(const HttpResponse *response, void *arg);
- void OnPendingApproved(const NETLIBHTTPREQUEST *response, void *arg);
- void OnPendingIgnoreded(const NETLIBHTTPREQUEST *response, void *arg);
+ void OnPendingApproved(const HttpResponse *response, void *arg);
+ void OnPendingIgnoreded(const HttpResponse *response, void *arg);
- void OnSearchByIdEnded(const NETLIBHTTPREQUEST *response, void *arg);
+ void OnSearchByIdEnded(const HttpResponse *response, void *arg);
- void OnSearchByNameStarted(const NETLIBHTTPREQUEST *response, void *arg);
- void OnSearchByNameFinished(const NETLIBHTTPREQUEST *response, void *arg);
+ void OnSearchByNameStarted(const HttpResponse *response, void *arg);
+ void OnSearchByNameFinished(const HttpResponse *response, void *arg);
// messages
int OnSendMessage(MCONTACT hContact, const char* message);
- void OnMessageSent(const NETLIBHTTPREQUEST *response, void *arg);
+ void OnMessageSent(const HttpResponse *response, void *arg);
// menus
static int hChooserMenu;