1 /*  RetroArch - A frontend for libretro.
2  *  Copyright (C) 2018-2019 - Andrés Suárez
3  *
4  *  RetroArch is free software: you can redistribute it and/or modify it under the terms
5  *  of the GNU General Public License as published by the Free Software Found-
6  *  ation, either version 3 of the License, or (at your option) any later version.
7  *
8  *  RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  *  PURPOSE.  See the GNU General Public License for more details.
11  *
12  *  You should have received a copy of the GNU General Public License along with RetroArch.
13  *  If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #ifndef __RARCH_DISCORD_H
17 #define __RARCH_DISCORD_H
18 
19 #include <stdlib.h>
20 #include <stdarg.h>
21 #include <stdint.h>
22 #include <string.h>
23 
24 #include <boolean.h>
25 
26 enum discord_presence
27 {
28    DISCORD_PRESENCE_NONE = 0,
29    DISCORD_PRESENCE_MENU,
30    DISCORD_PRESENCE_GAME,
31    DISCORD_PRESENCE_GAME_PAUSED,
32    DISCORD_PRESENCE_NETPLAY_HOSTING,
33    DISCORD_PRESENCE_NETPLAY_CLIENT,
34    DISCORD_PRESENCE_NETPLAY_NETPLAY_STOPPED,
35    DISCORD_PRESENCE_RETROACHIEVEMENTS,
36    DISCORD_PRESENCE_SHUTDOWN
37 };
38 
39 typedef struct discord_userdata
40 {
41    enum discord_presence status;
42 } discord_userdata_t;
43 
44 void discord_update(enum discord_presence presence);
45 
46 bool discord_is_ready(void);
47 
48 void discord_avatar_set_ready(bool ready);
49 
50 bool discord_avatar_is_ready(void);
51 
52 char* discord_get_own_avatar(void);
53 
54 #endif /* __RARCH_DISCORD_H */
55