dolphin/Source/Core/UICommon/DiscordPresence.h

28 lines
611 B
C
Raw Normal View History

2018-05-27 04:24:13 +00:00
// Copyright 2018 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
2018-07-03 21:50:08 +00:00
#include <functional>
2018-05-27 04:24:13 +00:00
namespace Discord
{
2018-07-03 21:50:08 +00:00
using JoinFunction = std::function<void()>;
enum class SecretType : char
{
Empty,
IPAddress,
RoomID,
};
2018-05-27 04:24:13 +00:00
void Init();
2018-07-03 21:50:08 +00:00
void InitNetPlayFunctionality(const JoinFunction& join);
void CallPendingCallbacks();
void UpdateDiscordPresence(int party_size = 0, SecretType type = SecretType::Empty,
const std::string& secret = {});
2018-05-27 04:24:13 +00:00
void Shutdown();
void SetDiscordPresenceEnabled(bool enabled);
2018-05-27 04:24:13 +00:00
} // namespace Discord