summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/http_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/SkypeWeb/src/http_request.h')
-rw-r--r--protocols/SkypeWeb/src/http_request.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/protocols/SkypeWeb/src/http_request.h b/protocols/SkypeWeb/src/http_request.h
index b939d9508d..e69355a300 100644
--- a/protocols/SkypeWeb/src/http_request.h
+++ b/protocols/SkypeWeb/src/http_request.h
@@ -31,6 +31,13 @@ struct INT_VALUE : public VALUE
: VALUE(_name), iValue(_value) { }
};
+struct LONG_VALUE : public VALUE
+{
+ LONGLONG llValue;
+ __forceinline LONG_VALUE(LPCSTR _name, LONGLONG _value)
+ : VALUE(_name), llValue(_value) { }
+};
+
struct CHAR_VALUE : public VALUE
{
LPCSTR szValue;
@@ -95,6 +102,12 @@ protected:
return *this;
}
+ HttpRequestUrl &operator<<(const LONG_VALUE &param)
+ {
+ request.AddUrlParameter("%s=%lld", param.szName, param.llValue);
+ return *this;
+ }
+
HttpRequestUrl &operator<<(const CHAR_VALUE &param)
{
request.AddUrlParameter("%s=%s", param.szName, param.szValue);