summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-16 18:48:19 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-16 18:48:19 +0300
commit481af24ca7b41d80d7e3a76ec0fefa7b9ab339cf (patch)
tree17e6824003afecfebc4756042691dc9862ddf3f5 /protocols/Steam/src/main.cpp
parent9bdcd269ccfcbb3afc2014018a1a2575e855a166 (diff)
added notification service
Diffstat (limited to 'protocols/Steam/src/main.cpp')
-rw-r--r--protocols/Steam/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Steam/src/main.cpp b/protocols/Steam/src/main.cpp
index 9181cc600d..9724c602be 100644
--- a/protocols/Steam/src/main.cpp
+++ b/protocols/Steam/src/main.cpp
@@ -152,6 +152,9 @@ void CMPlugin::InitSteamServices()
services["FriendMessages"] = &friend_messages__descriptor;
services["FriendMessagesClient"] = &friend_messages_client__descriptor;
+ // services from steammessages_notifications.steamclient.proto
+ services["SteamNotificationClient"] = &steam_notification_client__descriptor;
+
// static service handlers
serviceHandlers[PollAuthSessionStatus] = ServiceResponseHandler(&CSteamProto::OnPollSession);
serviceHandlers[GetPasswordRSAPublicKey] = ServiceResponseHandler(&CSteamProto::OnGotRsaKey);
@@ -160,6 +163,8 @@ void CMPlugin::InitSteamServices()
serviceHandlers[FriendSendMessage] = ServiceResponseHandler(&CSteamProto::OnMessageSent);
serviceHandlers[FriendGetActiveSessions] = ServiceResponseHandler(&CSteamProto::OnGotConversations);
+
+ serviceHandlers[NotificationReceived] = ServiceResponseHandler(&CSteamProto::OnGotNotification);
}
int CMPlugin::Load()