add flag handling and header guards

This commit is contained in:
2025-03-06 14:12:10 +01:00
parent 0d11dbec32
commit 98b6b8df7e
13 changed files with 119 additions and 26 deletions
+5 -1
View File
@@ -1,6 +1,9 @@
#include <curl/curl.h>
#include <nlohmann/json.hpp>
#include <string>
// header guard
#ifndef _ba_ne_hg_
#define _ba_ne_hg_
using nlohmann::json;
@@ -9,4 +12,5 @@ namespace bakaapi {
void login(std::string username, std::string password);
void refresh_access_token();
json get_data_from_endpoint(std::string endpoint);
} // namespace bakaapi
} // namespace bakaapi
#endif