RetroArch
discord.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2018 - 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 #include <math.h>
24 
25 #include <boolean.h>
26 #include <string/stdstring.h>
27 #include <lists/string_list.h>
28 #include <retro_timers.h>
29 
30 #include "../deps/discord-rpc/include/discord_rpc.h"
31 #include "verbosity.h"
32 
34 {
43 };
44 
45 typedef struct discord_userdata
46 {
49 
50 void discord_init(void);
51 
52 void discord_shutdown(void);
53 
54 void discord_update(enum discord_presence presence);
55 
57 
58 #endif /* __RARCH_DISCORD_H */
Definition: discord.h:38
struct discord_userdata discord_userdata_t
void discord_update(enum discord_presence presence)
Definition: discord.c:106
Definition: discord.h:36
Definition: discord.h:42
Definition: discord.h:39
Definition: discord.h:35
discord_presence
Definition: discord.h:33
Definition: discord.h:40
Definition: discord.h:37
enum discord_presence status
Definition: discord.h:47
void discord_init(void)
Definition: discord.c:213
Definition: discord.h:45
void discord_run_callbacks()
Definition: discord.c:246
void discord_shutdown(void)
Definition: discord.c:238