prevent the insanity of specifying (usually) defaults

This commit is contained in:
DarthArgus
2016-08-06 02:00:49 +00:00
parent a9fa196e5f
commit 00fef810e7
3 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ namespace webAPI
using namespace std;
statusMessage simplePost(const string &endpoint, const string &data, const string &slotName, const string &messageSlot, const string &statusSlot, const string &statusVal);
statusMessage simplePost(const string &endpoint, const string &data, const string &slotName = "success", const string &messageSlot ="message", const string &statusSlot = "status", const string &statusVal = "success");
nlohmann::json request(const string &endpoint, const string &data, const int &reqType); // 1 for post, 0 for get
size_t writeCallback(void *contents, size_t size, size_t nmemb, void *userp);
};