chore: add meson build and initial stuff
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#ifndef DISCORD_DISCORD_H
|
||||
#define DISCORD_DISCORD_H
|
||||
|
||||
#define DISCORD_BASE_URL "https://discord.com/api"
|
||||
#define DISCORD_API_VERSION "10"
|
||||
|
||||
typedef struct discord_client discord_client;
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,18 @@
|
||||
#ifndef DISCORD_ERROR_H
|
||||
#define DISCORD_ERROR_H
|
||||
|
||||
typedef enum discord_error {
|
||||
DISCORD_OK,
|
||||
DISCORD_ERR,
|
||||
DISCORD_AUTH_ERR,
|
||||
} discord_error;
|
||||
|
||||
/**
|
||||
* @brief Retrieves error string.
|
||||
*
|
||||
* @param err Discord error.
|
||||
* @return String of the error.
|
||||
*/
|
||||
const char *discord_err_str(discord_error err);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user