chore: add meson build and initial stuff

This commit is contained in:
2026-05-28 22:24:29 +02:00
parent 2f073349c2
commit 89787b36cc
9 changed files with 120 additions and 0 deletions
+9
View File
@@ -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
+18
View File
@@ -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
View File