summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.cpp599
-rw-r--r--protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.h259
-rw-r--r--protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.proto70
3 files changed, 928 insertions, 0 deletions
diff --git a/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.cpp b/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.cpp
new file mode 100644
index 0000000000..65a85442a1
--- /dev/null
+++ b/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.cpp
@@ -0,0 +1,599 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: steammessages_notifications.steamclient.proto */
+
+/* Do not generate deprecated warnings for self */
+#ifndef PROTOBUF_C__NO_DEPRECATED
+#define PROTOBUF_C__NO_DEPRECATED
+#endif
+
+#include "steammessages_notifications.steamclient.pb-c.h"
+size_t steam_notification_data__get_packed_size
+ (const SteamNotificationData *message)
+{
+ assert(message->descriptor == &steam_notification_data__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t steam_notification_data__pack
+ (const SteamNotificationData *message,
+ uint8_t *out)
+{
+ assert(message->descriptor == &steam_notification_data__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t steam_notification_data__pack_to_buffer
+ (const SteamNotificationData *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->descriptor == &steam_notification_data__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+SteamNotificationData *
+ steam_notification_data__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (SteamNotificationData *)
+ protobuf_c_message_unpack (&steam_notification_data__descriptor,
+ allocator, len, data);
+}
+void steam_notification_data__free_unpacked
+ (SteamNotificationData *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->descriptor == &steam_notification_data__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+
+size_t csteam_notification__notifications_received__notification__get_packed_size
+ (const CSteamNotificationNotificationsReceivedNotification *message)
+{
+ assert(message->descriptor == &csteam_notification__notifications_received__notification__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t csteam_notification__notifications_received__notification__pack
+ (const CSteamNotificationNotificationsReceivedNotification *message,
+ uint8_t *out)
+{
+ assert(message->descriptor == &csteam_notification__notifications_received__notification__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t csteam_notification__notifications_received__notification__pack_to_buffer
+ (const CSteamNotificationNotificationsReceivedNotification *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->descriptor == &csteam_notification__notifications_received__notification__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+CSteamNotificationNotificationsReceivedNotification *
+ csteam_notification__notifications_received__notification__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (CSteamNotificationNotificationsReceivedNotification *)
+ protobuf_c_message_unpack (&csteam_notification__notifications_received__notification__descriptor,
+ allocator, len, data);
+}
+void csteam_notification__notifications_received__notification__free_unpacked
+ (CSteamNotificationNotificationsReceivedNotification *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->descriptor == &csteam_notification__notifications_received__notification__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+
+size_t steam_notification_preference__get_packed_size
+ (const SteamNotificationPreference *message)
+{
+ assert(message->descriptor == &steam_notification_preference__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t steam_notification_preference__pack
+ (const SteamNotificationPreference *message,
+ uint8_t *out)
+{
+ assert(message->descriptor == &steam_notification_preference__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t steam_notification_preference__pack_to_buffer
+ (const SteamNotificationPreference *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->descriptor == &steam_notification_preference__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+SteamNotificationPreference *
+ steam_notification_preference__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (SteamNotificationPreference *)
+ protobuf_c_message_unpack (&steam_notification_preference__descriptor,
+ allocator, len, data);
+}
+void steam_notification_preference__free_unpacked
+ (SteamNotificationPreference *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->descriptor == &steam_notification_preference__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+
+size_t csteam_notification__preferences_updated__notification__get_packed_size
+ (const CSteamNotificationPreferencesUpdatedNotification *message)
+{
+ assert(message->descriptor == &csteam_notification__preferences_updated__notification__descriptor);
+ return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message));
+}
+size_t csteam_notification__preferences_updated__notification__pack
+ (const CSteamNotificationPreferencesUpdatedNotification *message,
+ uint8_t *out)
+{
+ assert(message->descriptor == &csteam_notification__preferences_updated__notification__descriptor);
+ return protobuf_c_message_pack ((const ProtobufCMessage*)message, out);
+}
+size_t csteam_notification__preferences_updated__notification__pack_to_buffer
+ (const CSteamNotificationPreferencesUpdatedNotification *message,
+ ProtobufCBuffer *buffer)
+{
+ assert(message->descriptor == &csteam_notification__preferences_updated__notification__descriptor);
+ return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer);
+}
+CSteamNotificationPreferencesUpdatedNotification *
+ csteam_notification__preferences_updated__notification__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data)
+{
+ return (CSteamNotificationPreferencesUpdatedNotification *)
+ protobuf_c_message_unpack (&csteam_notification__preferences_updated__notification__descriptor,
+ allocator, len, data);
+}
+void csteam_notification__preferences_updated__notification__free_unpacked
+ (CSteamNotificationPreferencesUpdatedNotification *message,
+ ProtobufCAllocator *allocator)
+{
+ if(!message)
+ return;
+ assert(message->descriptor == &csteam_notification__preferences_updated__notification__descriptor);
+ protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator);
+}
+
+static const ESteamNotificationType steam_notification_data__notification_type__default_value = ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Invalid;
+static const ProtobufCFieldDescriptor steam_notification_data__field_descriptors[9] =
+{
+ {
+ "notification_id",
+ 1,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT64,
+ offsetof(SteamNotificationData, has_notification_id),
+ offsetof(SteamNotificationData, notification_id),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "notification_targets",
+ 2,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(SteamNotificationData, has_notification_targets),
+ offsetof(SteamNotificationData, notification_targets),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "notification_type",
+ 3,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_ENUM,
+ offsetof(SteamNotificationData, has_notification_type),
+ offsetof(SteamNotificationData, notification_type),
+ &esteam_notification_type__descriptor,
+ &steam_notification_data__notification_type__default_value,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "body_data",
+ 4,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_STRING,
+ 0, /* quantifier_offset */
+ offsetof(SteamNotificationData, body_data),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "read",
+ 7,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_BOOL,
+ offsetof(SteamNotificationData, has_read),
+ offsetof(SteamNotificationData, read),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "timestamp",
+ 8,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(SteamNotificationData, has_timestamp),
+ offsetof(SteamNotificationData, timestamp),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "hidden",
+ 9,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_BOOL,
+ offsetof(SteamNotificationData, has_hidden),
+ offsetof(SteamNotificationData, hidden),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "expiry",
+ 10,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(SteamNotificationData, has_expiry),
+ offsetof(SteamNotificationData, expiry),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "viewed",
+ 11,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(SteamNotificationData, has_viewed),
+ offsetof(SteamNotificationData, viewed),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned steam_notification_data__field_indices_by_name[] = {
+ 3, /* field[3] = body_data */
+ 7, /* field[7] = expiry */
+ 6, /* field[6] = hidden */
+ 0, /* field[0] = notification_id */
+ 1, /* field[1] = notification_targets */
+ 2, /* field[2] = notification_type */
+ 4, /* field[4] = read */
+ 5, /* field[5] = timestamp */
+ 8, /* field[8] = viewed */
+};
+static const ProtobufCIntRange steam_notification_data__number_ranges[2 + 1] =
+{
+ { 1, 0 },
+ { 7, 4 },
+ { 0, 9 }
+};
+const ProtobufCMessageDescriptor steam_notification_data__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "SteamNotificationData",
+ "SteamNotificationData",
+ "SteamNotificationData",
+ "",
+ sizeof(SteamNotificationData),
+ 9,
+ steam_notification_data__field_descriptors,
+ steam_notification_data__field_indices_by_name,
+ 2, steam_notification_data__number_ranges,
+ NULL,NULL,NULL,NULL /* reserved[123] */
+};
+static const ProtobufCFieldDescriptor csteam_notification__notifications_received__notification__field_descriptors[4] =
+{
+ {
+ "notifications",
+ 1,
+ PROTOBUF_C_LABEL_REPEATED,
+ PROTOBUF_C_TYPE_MESSAGE,
+ offsetof(CSteamNotificationNotificationsReceivedNotification, n_notifications),
+ offsetof(CSteamNotificationNotificationsReceivedNotification, notifications),
+ &steam_notification_data__descriptor,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "pending_gift_count",
+ 2,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(CSteamNotificationNotificationsReceivedNotification, has_pending_gift_count),
+ offsetof(CSteamNotificationNotificationsReceivedNotification, pending_gift_count),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "pending_friend_count",
+ 3,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(CSteamNotificationNotificationsReceivedNotification, has_pending_friend_count),
+ offsetof(CSteamNotificationNotificationsReceivedNotification, pending_friend_count),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "pending_family_invite_count",
+ 4,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(CSteamNotificationNotificationsReceivedNotification, has_pending_family_invite_count),
+ offsetof(CSteamNotificationNotificationsReceivedNotification, pending_family_invite_count),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned csteam_notification__notifications_received__notification__field_indices_by_name[] = {
+ 0, /* field[0] = notifications */
+ 3, /* field[3] = pending_family_invite_count */
+ 2, /* field[2] = pending_friend_count */
+ 1, /* field[1] = pending_gift_count */
+};
+static const ProtobufCIntRange csteam_notification__notifications_received__notification__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 4 }
+};
+const ProtobufCMessageDescriptor csteam_notification__notifications_received__notification__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "CSteamNotification_NotificationsReceived_Notification",
+ "CSteamNotificationNotificationsReceivedNotification",
+ "CSteamNotificationNotificationsReceivedNotification",
+ "",
+ sizeof(CSteamNotificationNotificationsReceivedNotification),
+ 4,
+ csteam_notification__notifications_received__notification__field_descriptors,
+ csteam_notification__notifications_received__notification__field_indices_by_name,
+ 1, csteam_notification__notifications_received__notification__number_ranges,
+ NULL,NULL,NULL,NULL /* reserved[123] */
+};
+static const ESteamNotificationType steam_notification_preference__notification_type__default_value = ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Invalid;
+static const ProtobufCFieldDescriptor steam_notification_preference__field_descriptors[2] =
+{
+ {
+ "notification_type",
+ 1,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_ENUM,
+ offsetof(SteamNotificationPreference, has_notification_type),
+ offsetof(SteamNotificationPreference, notification_type),
+ &esteam_notification_type__descriptor,
+ &steam_notification_preference__notification_type__default_value,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+ {
+ "notification_targets",
+ 2,
+ PROTOBUF_C_LABEL_OPTIONAL,
+ PROTOBUF_C_TYPE_UINT32,
+ offsetof(SteamNotificationPreference, has_notification_targets),
+ offsetof(SteamNotificationPreference, notification_targets),
+ NULL,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned steam_notification_preference__field_indices_by_name[] = {
+ 1, /* field[1] = notification_targets */
+ 0, /* field[0] = notification_type */
+};
+static const ProtobufCIntRange steam_notification_preference__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 2 }
+};
+const ProtobufCMessageDescriptor steam_notification_preference__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "SteamNotificationPreference",
+ "SteamNotificationPreference",
+ "SteamNotificationPreference",
+ "",
+ sizeof(SteamNotificationPreference),
+ 2,
+ steam_notification_preference__field_descriptors,
+ steam_notification_preference__field_indices_by_name,
+ 1, steam_notification_preference__number_ranges,
+ NULL,NULL,NULL,NULL /* reserved[123] */
+};
+static const ProtobufCFieldDescriptor csteam_notification__preferences_updated__notification__field_descriptors[1] =
+{
+ {
+ "preferences",
+ 1,
+ PROTOBUF_C_LABEL_REPEATED,
+ PROTOBUF_C_TYPE_MESSAGE,
+ offsetof(CSteamNotificationPreferencesUpdatedNotification, n_preferences),
+ offsetof(CSteamNotificationPreferencesUpdatedNotification, preferences),
+ &steam_notification_preference__descriptor,
+ NULL,
+ 0, /* flags */
+ 0,NULL,NULL /* reserved1,reserved2, etc */
+ },
+};
+static const unsigned csteam_notification__preferences_updated__notification__field_indices_by_name[] = {
+ 0, /* field[0] = preferences */
+};
+static const ProtobufCIntRange csteam_notification__preferences_updated__notification__number_ranges[1 + 1] =
+{
+ { 1, 0 },
+ { 0, 1 }
+};
+const ProtobufCMessageDescriptor csteam_notification__preferences_updated__notification__descriptor =
+{
+ PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC,
+ "CSteamNotification_PreferencesUpdated_Notification",
+ "CSteamNotificationPreferencesUpdatedNotification",
+ "CSteamNotificationPreferencesUpdatedNotification",
+ "",
+ sizeof(CSteamNotificationPreferencesUpdatedNotification),
+ 1,
+ csteam_notification__preferences_updated__notification__field_descriptors,
+ csteam_notification__preferences_updated__notification__field_indices_by_name,
+ 1, csteam_notification__preferences_updated__notification__number_ranges,
+ NULL,NULL,NULL,NULL /* reserved[123] */
+};
+static const ProtobufCEnumValue esteam_notification_type__enum_values_by_number[28] =
+{
+ { "k_ESteamNotificationType_Invalid", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Invalid", 0 },
+ { "k_ESteamNotificationType_Test", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Test", 1 },
+ { "k_ESteamNotificationType_Gift", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Gift", 2 },
+ { "k_ESteamNotificationType_Comment", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Comment", 3 },
+ { "k_ESteamNotificationType_Item", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Item", 4 },
+ { "k_ESteamNotificationType_FriendInvite", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FriendInvite", 5 },
+ { "k_ESteamNotificationType_MajorSale", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_MajorSale", 6 },
+ { "k_ESteamNotificationType_PreloadAvailable", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_PreloadAvailable", 7 },
+ { "k_ESteamNotificationType_Wishlist", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Wishlist", 8 },
+ { "k_ESteamNotificationType_TradeOffer", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_TradeOffer", 9 },
+ { "k_ESteamNotificationType_General", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_General", 10 },
+ { "k_ESteamNotificationType_HelpRequest", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_HelpRequest", 11 },
+ { "k_ESteamNotificationType_AsyncGame", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_AsyncGame", 12 },
+ { "k_ESteamNotificationType_ChatMsg", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ChatMsg", 13 },
+ { "k_ESteamNotificationType_ModeratorMsg", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ModeratorMsg", 14 },
+ { "k_ESteamNotificationType_ParentalFeatureAccessRequest", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalFeatureAccessRequest", 15 },
+ { "k_ESteamNotificationType_FamilyInvite", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FamilyInvite", 16 },
+ { "k_ESteamNotificationType_FamilyPurchaseRequest", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FamilyPurchaseRequest", 17 },
+ { "k_ESteamNotificationType_ParentalPlaytimeRequest", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalPlaytimeRequest", 18 },
+ { "k_ESteamNotificationType_FamilyPurchaseRequestResponse", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FamilyPurchaseRequestResponse", 19 },
+ { "k_ESteamNotificationType_ParentalFeatureAccessResponse", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalFeatureAccessResponse", 20 },
+ { "k_ESteamNotificationType_ParentalPlaytimeResponse", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalPlaytimeResponse", 21 },
+ { "k_ESteamNotificationType_RequestedGameAdded", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_RequestedGameAdded", 22 },
+ { "k_ESteamNotificationType_SendToPhone", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_SendToPhone", 23 },
+ { "k_ESteamNotificationType_ClipDownloaded", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ClipDownloaded", 24 },
+ { "k_ESteamNotificationType_2FAPrompt", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_2FAPrompt", 25 },
+ { "k_ESteamNotificationType_MobileConfirmation", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_MobileConfirmation", 26 },
+ { "k_ESteamNotificationType_PartnerEvent", "ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_PartnerEvent", 27 },
+};
+static const ProtobufCIntRange esteam_notification_type__value_ranges[] = {
+{0, 0},{0, 28}
+};
+static const ProtobufCEnumValueIndex esteam_notification_type__enum_values_by_name[28] =
+{
+ { "k_ESteamNotificationType_2FAPrompt", 25 },
+ { "k_ESteamNotificationType_AsyncGame", 12 },
+ { "k_ESteamNotificationType_ChatMsg", 13 },
+ { "k_ESteamNotificationType_ClipDownloaded", 24 },
+ { "k_ESteamNotificationType_Comment", 3 },
+ { "k_ESteamNotificationType_FamilyInvite", 16 },
+ { "k_ESteamNotificationType_FamilyPurchaseRequest", 17 },
+ { "k_ESteamNotificationType_FamilyPurchaseRequestResponse", 19 },
+ { "k_ESteamNotificationType_FriendInvite", 5 },
+ { "k_ESteamNotificationType_General", 10 },
+ { "k_ESteamNotificationType_Gift", 2 },
+ { "k_ESteamNotificationType_HelpRequest", 11 },
+ { "k_ESteamNotificationType_Invalid", 0 },
+ { "k_ESteamNotificationType_Item", 4 },
+ { "k_ESteamNotificationType_MajorSale", 6 },
+ { "k_ESteamNotificationType_MobileConfirmation", 26 },
+ { "k_ESteamNotificationType_ModeratorMsg", 14 },
+ { "k_ESteamNotificationType_ParentalFeatureAccessRequest", 15 },
+ { "k_ESteamNotificationType_ParentalFeatureAccessResponse", 20 },
+ { "k_ESteamNotificationType_ParentalPlaytimeRequest", 18 },
+ { "k_ESteamNotificationType_ParentalPlaytimeResponse", 21 },
+ { "k_ESteamNotificationType_PartnerEvent", 27 },
+ { "k_ESteamNotificationType_PreloadAvailable", 7 },
+ { "k_ESteamNotificationType_RequestedGameAdded", 22 },
+ { "k_ESteamNotificationType_SendToPhone", 23 },
+ { "k_ESteamNotificationType_Test", 1 },
+ { "k_ESteamNotificationType_TradeOffer", 9 },
+ { "k_ESteamNotificationType_Wishlist", 8 },
+};
+const ProtobufCEnumDescriptor esteam_notification_type__descriptor =
+{
+ PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC,
+ "ESteamNotificationType",
+ "ESteamNotificationType",
+ "ESteamNotificationType",
+ "",
+ 28,
+ esteam_notification_type__enum_values_by_number,
+ 28,
+ esteam_notification_type__enum_values_by_name,
+ 1,
+ esteam_notification_type__value_ranges,
+ NULL,NULL,NULL,NULL /* reserved[1234] */
+};
+static const ProtobufCMethodDescriptor steam_notification_client__method_descriptors[2] =
+{
+ { "NotificationsReceived", &csteam_notification__notifications_received__notification__descriptor, &no_response__descriptor },
+ { "PreferencesUpdated", &csteam_notification__preferences_updated__notification__descriptor, &no_response__descriptor },
+};
+const unsigned steam_notification_client__method_indices_by_name[] = {
+ 0, /* NotificationsReceived */
+ 1 /* PreferencesUpdated */
+};
+const ProtobufCServiceDescriptor steam_notification_client__descriptor =
+{
+ PROTOBUF_C__SERVICE_DESCRIPTOR_MAGIC,
+ "SteamNotificationClient",
+ "SteamNotificationClient",
+ "SteamNotificationClient",
+ "",
+ 2,
+ steam_notification_client__method_descriptors,
+ steam_notification_client__method_indices_by_name
+};
+void steam_notification_client__notifications_received(ProtobufCService *service,
+ const CSteamNotificationNotificationsReceivedNotification *input,
+ NoResponse_Closure closure,
+ void *closure_data)
+{
+ assert(service->descriptor == &steam_notification_client__descriptor);
+ service->invoke(service, 0, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data);
+}
+void steam_notification_client__preferences_updated(ProtobufCService *service,
+ const CSteamNotificationPreferencesUpdatedNotification *input,
+ NoResponse_Closure closure,
+ void *closure_data)
+{
+ assert(service->descriptor == &steam_notification_client__descriptor);
+ service->invoke(service, 1, (const ProtobufCMessage *) input, (ProtobufCClosure) closure, closure_data);
+}
+void steam_notification_client__init (SteamNotificationClient_Service *service,
+ SteamNotificationClient_ServiceDestroy destroy)
+{
+ protobuf_c_service_generated_init (&service->base,
+ &steam_notification_client__descriptor,
+ (ProtobufCServiceDestroy) destroy);
+}
diff --git a/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.h b/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.h
new file mode 100644
index 0000000000..e6838858ec
--- /dev/null
+++ b/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.pb-c.h
@@ -0,0 +1,259 @@
+/* Generated by the protocol buffer compiler. DO NOT EDIT! */
+/* Generated from: steammessages_notifications.steamclient.proto */
+
+#ifndef PROTOBUF_C_steammessages_5fnotifications_2esteamclient_2eproto__INCLUDED
+#define PROTOBUF_C_steammessages_5fnotifications_2esteamclient_2eproto__INCLUDED
+
+#include "protobuf-c.h"
+
+PROTOBUF_C__BEGIN_DECLS
+
+#if PROTOBUF_C_VERSION_NUMBER < 1000000
+# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
+#elif 1004001 < PROTOBUF_C_MIN_COMPILER_VERSION
+# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
+#endif
+
+#include "steammessages_base.pb-c.h"
+#include "steammessages_unified_base.steamclient.pb-c.h"
+
+struct SteamNotificationData;
+struct CSteamNotificationNotificationsReceivedNotification;
+struct SteamNotificationPreference;
+struct CSteamNotificationPreferencesUpdatedNotification;
+
+
+/* --- enums --- */
+
+typedef enum _ESteamNotificationType {
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Invalid = 0,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Test = 1,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Gift = 2,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Comment = 3,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Item = 4,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FriendInvite = 5,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_MajorSale = 6,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_PreloadAvailable = 7,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_Wishlist = 8,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_TradeOffer = 9,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_General = 10,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_HelpRequest = 11,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_AsyncGame = 12,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ChatMsg = 13,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ModeratorMsg = 14,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalFeatureAccessRequest = 15,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FamilyInvite = 16,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FamilyPurchaseRequest = 17,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalPlaytimeRequest = 18,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_FamilyPurchaseRequestResponse = 19,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalFeatureAccessResponse = 20,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ParentalPlaytimeResponse = 21,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_RequestedGameAdded = 22,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_SendToPhone = 23,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_ClipDownloaded = 24,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_2FAPrompt = 25,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_MobileConfirmation = 26,
+ ESTEAM_NOTIFICATION_TYPE__k_ESteamNotificationType_PartnerEvent = 27
+ PROTOBUF_C__FORCE_ENUM_TO_BE_INT_SIZE(ESTEAM_NOTIFICATION_TYPE)
+} ESteamNotificationType;
+
+/* --- descriptors --- */
+
+extern const ProtobufCEnumDescriptor esteam_notification_type__descriptor;
+extern const ProtobufCMessageDescriptor steam_notification_data__descriptor;
+extern const ProtobufCMessageDescriptor csteam_notification__notifications_received__notification__descriptor;
+extern const ProtobufCMessageDescriptor steam_notification_preference__descriptor;
+extern const ProtobufCMessageDescriptor csteam_notification__preferences_updated__notification__descriptor;
+extern const ProtobufCServiceDescriptor steam_notification_client__descriptor;
+
+/* --- messages --- */
+
+extern "C" void message_init_generic(const ProtobufCMessageDescriptor * desc, ProtobufCMessage * message);
+
+struct ProtobufCppMessage : public ProtobufCMessage
+{
+ ProtobufCppMessage(const ProtobufCMessageDescriptor &descr)
+ {
+ message_init_generic(&descr, this);
+ }
+};
+
+struct SteamNotificationData : public ProtobufCppMessage
+{
+ SteamNotificationData() :
+ ProtobufCppMessage(steam_notification_data__descriptor)
+ {}
+
+ protobuf_c_boolean has_notification_id;
+ uint64_t notification_id;
+ protobuf_c_boolean has_notification_targets;
+ uint32_t notification_targets;
+ protobuf_c_boolean has_notification_type;
+ ESteamNotificationType notification_type;
+ char *body_data;
+ protobuf_c_boolean has_read;
+ protobuf_c_boolean read;
+ protobuf_c_boolean has_timestamp;
+ uint32_t timestamp;
+ protobuf_c_boolean has_hidden;
+ protobuf_c_boolean hidden;
+ protobuf_c_boolean has_expiry;
+ uint32_t expiry;
+ protobuf_c_boolean has_viewed;
+ uint32_t viewed;
+};
+
+struct CSteamNotificationNotificationsReceivedNotification : public ProtobufCppMessage
+{
+ CSteamNotificationNotificationsReceivedNotification() :
+ ProtobufCppMessage(csteam_notification__notifications_received__notification__descriptor)
+ {}
+
+ size_t n_notifications;
+ SteamNotificationData **notifications;
+ protobuf_c_boolean has_pending_gift_count;
+ uint32_t pending_gift_count;
+ protobuf_c_boolean has_pending_friend_count;
+ uint32_t pending_friend_count;
+ protobuf_c_boolean has_pending_family_invite_count;
+ uint32_t pending_family_invite_count;
+};
+
+struct SteamNotificationPreference : public ProtobufCppMessage
+{
+ SteamNotificationPreference() :
+ ProtobufCppMessage(steam_notification_preference__descriptor)
+ {}
+
+ protobuf_c_boolean has_notification_type;
+ ESteamNotificationType notification_type;
+ protobuf_c_boolean has_notification_targets;
+ uint32_t notification_targets;
+};
+
+struct CSteamNotificationPreferencesUpdatedNotification : public ProtobufCppMessage
+{
+ CSteamNotificationPreferencesUpdatedNotification() :
+ ProtobufCppMessage(csteam_notification__preferences_updated__notification__descriptor)
+ {}
+
+ size_t n_preferences;
+ SteamNotificationPreference **preferences;
+};
+
+size_t steam_notification_data__get_packed_size
+ (const SteamNotificationData *message);
+size_t steam_notification_data__pack
+ (const SteamNotificationData *message,
+ uint8_t *out);
+size_t steam_notification_data__pack_to_buffer
+ (const SteamNotificationData *message,
+ ProtobufCBuffer *buffer);
+SteamNotificationData *
+ steam_notification_data__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void steam_notification_data__free_unpacked
+ (SteamNotificationData *message,
+ ProtobufCAllocator *allocator);
+size_t csteam_notification__notifications_received__notification__get_packed_size
+ (const CSteamNotificationNotificationsReceivedNotification *message);
+size_t csteam_notification__notifications_received__notification__pack
+ (const CSteamNotificationNotificationsReceivedNotification *message,
+ uint8_t *out);
+size_t csteam_notification__notifications_received__notification__pack_to_buffer
+ (const CSteamNotificationNotificationsReceivedNotification *message,
+ ProtobufCBuffer *buffer);
+CSteamNotificationNotificationsReceivedNotification *
+ csteam_notification__notifications_received__notification__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void csteam_notification__notifications_received__notification__free_unpacked
+ (CSteamNotificationNotificationsReceivedNotification *message,
+ ProtobufCAllocator *allocator);
+size_t steam_notification_preference__get_packed_size
+ (const SteamNotificationPreference *message);
+size_t steam_notification_preference__pack
+ (const SteamNotificationPreference *message,
+ uint8_t *out);
+size_t steam_notification_preference__pack_to_buffer
+ (const SteamNotificationPreference *message,
+ ProtobufCBuffer *buffer);
+SteamNotificationPreference *
+ steam_notification_preference__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void steam_notification_preference__free_unpacked
+ (SteamNotificationPreference *message,
+ ProtobufCAllocator *allocator);
+size_t csteam_notification__preferences_updated__notification__get_packed_size
+ (const CSteamNotificationPreferencesUpdatedNotification *message);
+size_t csteam_notification__preferences_updated__notification__pack
+ (const CSteamNotificationPreferencesUpdatedNotification *message,
+ uint8_t *out);
+size_t csteam_notification__preferences_updated__notification__pack_to_buffer
+ (const CSteamNotificationPreferencesUpdatedNotification *message,
+ ProtobufCBuffer *buffer);
+CSteamNotificationPreferencesUpdatedNotification *
+ csteam_notification__preferences_updated__notification__unpack
+ (ProtobufCAllocator *allocator,
+ size_t len,
+ const uint8_t *data);
+void csteam_notification__preferences_updated__notification__free_unpacked
+ (CSteamNotificationPreferencesUpdatedNotification *message,
+ ProtobufCAllocator *allocator);
+/* --- per-message closures --- */
+
+typedef void (*SteamNotificationData_Closure)
+ (const SteamNotificationData *message,
+ void *closure_data);
+typedef void (*CSteamNotificationNotificationsReceivedNotification_Closure)
+ (const CSteamNotificationNotificationsReceivedNotification *message,
+ void *closure_data);
+typedef void (*SteamNotificationPreference_Closure)
+ (const SteamNotificationPreference *message,
+ void *closure_data);
+typedef void (*CSteamNotificationPreferencesUpdatedNotification_Closure)
+ (const CSteamNotificationPreferencesUpdatedNotification *message,
+ void *closure_data);
+
+/* --- services --- */
+
+typedef struct SteamNotificationClient_Service SteamNotificationClient_Service;
+struct SteamNotificationClient_Service
+{
+ ProtobufCService base;
+ void (*notifications_received)(SteamNotificationClient_Service *service,
+ const CSteamNotificationNotificationsReceivedNotification *input,
+ NoResponse_Closure closure,
+ void *closure_data);
+ void (*preferences_updated)(SteamNotificationClient_Service *service,
+ const CSteamNotificationPreferencesUpdatedNotification *input,
+ NoResponse_Closure closure,
+ void *closure_data);
+};
+typedef void (*SteamNotificationClient_ServiceDestroy)(SteamNotificationClient_Service *);
+void steam_notification_client__init (SteamNotificationClient_Service *service,
+ SteamNotificationClient_ServiceDestroy destroy);
+#define STEAM_NOTIFICATION_CLIENT__BASE_INIT \
+ { &steam_notification_client__descriptor, protobuf_c_service_invoke_internal, NULL }
+#define STEAM_NOTIFICATION_CLIENT__INIT(function_prefix__) \
+ { STEAM_NOTIFICATION_CLIENT__BASE_INIT,\
+ function_prefix__ ## notifications_received,\
+ function_prefix__ ## preferences_updated }
+void steam_notification_client__notifications_received(ProtobufCService *service,
+ const CSteamNotificationNotificationsReceivedNotification *input,
+ NoResponse_Closure closure,
+ void *closure_data);
+void steam_notification_client__preferences_updated(ProtobufCService *service,
+ const CSteamNotificationPreferencesUpdatedNotification *input,
+ NoResponse_Closure closure,
+ void *closure_data);
+
+PROTOBUF_C__END_DECLS
+
+
+#endif /* PROTOBUF_C_steammessages_5fnotifications_2esteamclient_2eproto__INCLUDED */
diff --git a/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.proto b/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.proto
new file mode 100644
index 0000000000..16f8353aeb
--- /dev/null
+++ b/protocols/Steam/src/protobuf-c/steammessages_notifications.steamclient.proto
@@ -0,0 +1,70 @@
+import "steammessages_base.proto";
+import "steammessages_unified_base.steamclient.proto";
+
+option cc_generic_services = true;
+
+enum ESteamNotificationType {
+ k_ESteamNotificationType_Invalid = 0;
+ k_ESteamNotificationType_Test = 1;
+ k_ESteamNotificationType_Gift = 2;
+ k_ESteamNotificationType_Comment = 3;
+ k_ESteamNotificationType_Item = 4;
+ k_ESteamNotificationType_FriendInvite = 5;
+ k_ESteamNotificationType_MajorSale = 6;
+ k_ESteamNotificationType_PreloadAvailable = 7;
+ k_ESteamNotificationType_Wishlist = 8;
+ k_ESteamNotificationType_TradeOffer = 9;
+ k_ESteamNotificationType_General = 10;
+ k_ESteamNotificationType_HelpRequest = 11;
+ k_ESteamNotificationType_AsyncGame = 12;
+ k_ESteamNotificationType_ChatMsg = 13;
+ k_ESteamNotificationType_ModeratorMsg = 14;
+ k_ESteamNotificationType_ParentalFeatureAccessRequest = 15;
+ k_ESteamNotificationType_FamilyInvite = 16;
+ k_ESteamNotificationType_FamilyPurchaseRequest = 17;
+ k_ESteamNotificationType_ParentalPlaytimeRequest = 18;
+ k_ESteamNotificationType_FamilyPurchaseRequestResponse = 19;
+ k_ESteamNotificationType_ParentalFeatureAccessResponse = 20;
+ k_ESteamNotificationType_ParentalPlaytimeResponse = 21;
+ k_ESteamNotificationType_RequestedGameAdded = 22;
+ k_ESteamNotificationType_SendToPhone = 23;
+ k_ESteamNotificationType_ClipDownloaded = 24;
+ k_ESteamNotificationType_2FAPrompt = 25;
+ k_ESteamNotificationType_MobileConfirmation = 26;
+ k_ESteamNotificationType_PartnerEvent = 27;
+}
+
+message SteamNotificationData {
+ optional uint64 notification_id = 1;
+ optional uint32 notification_targets = 2;
+ optional .ESteamNotificationType notification_type = 3 [default = k_ESteamNotificationType_Invalid];
+ optional string body_data = 4;
+ optional bool read = 7;
+ optional uint32 timestamp = 8;
+ optional bool hidden = 9;
+ optional uint32 expiry = 10;
+ optional uint32 viewed = 11;
+}
+
+message CSteamNotification_NotificationsReceived_Notification {
+ repeated .SteamNotificationData notifications = 1;
+ optional uint32 pending_gift_count = 2;
+ optional uint32 pending_friend_count = 3;
+ optional uint32 pending_family_invite_count = 4;
+}
+
+message SteamNotificationPreference {
+ optional .ESteamNotificationType notification_type = 1 [default = k_ESteamNotificationType_Invalid];
+ optional uint32 notification_targets = 2;
+}
+
+message CSteamNotification_PreferencesUpdated_Notification {
+ repeated .SteamNotificationPreference preferences = 1;
+}
+
+service SteamNotificationClient {
+ option (service_execution_site) = k_EProtoExecutionSiteSteamClient;
+
+ rpc NotificationsReceived (.CSteamNotification_NotificationsReceived_Notification) returns (.NoResponse);
+ rpc PreferencesUpdated (.CSteamNotification_PreferencesUpdated_Notification) returns (.NoResponse);
+}