This commit is contained in:
John
2023-11-04 09:31:08 +01:00
parent 607fc00c0e
commit 077d09b620
13 changed files with 38 additions and 33 deletions
+2 -1
View File
@@ -35,7 +35,8 @@ enum ArgFlag {
typedef struct argDef {
const char* name; //!< the (long) name of the argument, or nullptr for a group header or positional
int key; //!< the argument key, also used as short name if alphabetic or the question mark
const char* valueName; //!< the optional argument value name, or nullptr for group header or argument without value name
// the optional argument value name, or nullptr for group header or argument without value name
const char* valueName;
int flags; //!< flags for the argument, bit combination of @a ArgFlag
const char* help; //!< help text (mandatory)
} argDef;
+2 -2
View File
@@ -33,7 +33,6 @@ namespace ebusd {
using std::string;
using std::ostringstream;
using std::dec;
using std::hex;
#ifdef HAVE_SSL
@@ -434,7 +433,8 @@ void HttpClient::disconnect() {
}
}
bool HttpClient::get(const string& uri, const string& body, string* response, bool* repeatable, time_t* time, bool* jsonString) {
bool HttpClient::get(const string& uri, const string& body, string* response, bool* repeatable,
time_t* time, bool* jsonString) {
return request("GET", uri, body, response, repeatable, time, jsonString);
}