summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/CSend.h
diff options
context:
space:
mode:
authorRené Schümann <white06tiger@gmail.com>2014-04-11 19:25:34 +0000
committerRené Schümann <white06tiger@gmail.com>2014-04-11 19:25:34 +0000
commit46ceba4a74c107aa085ce199857b9fe1d9cf3f85 (patch)
tree0fbdf001386c2197354fc3f20c74c011983da3e9 /plugins/SendScreenshotPlus/src/CSend.h
parent2e96c3880c010e34363be9300ebbc7935de4a67a (diff)
SendSS:
+ new host "Upload Pie" with support to expiring uploads: 30 minutes, 1 day or 1 week might not be perfect because this was a quick edit... * updated CSend's HTTP post stuff to support integer values (CSend,CSendImageShack) git-svn-id: http://svn.miranda-ng.org/main/trunk@8959 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/CSend.h')
-rw-r--r--plugins/SendScreenshotPlus/src/CSend.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/SendScreenshotPlus/src/CSend.h b/plugins/SendScreenshotPlus/src/CSend.h
index fdf84d712b..16ab0f192e 100644
--- a/plugins/SendScreenshotPlus/src/CSend.h
+++ b/plugins/SendScreenshotPlus/src/CSend.h
@@ -102,13 +102,21 @@ class CSend {
/// HTTP upload helper stuff
enum HTTPFormFlags{
- HTTPFORM_TEXT=0x00,
- HTTPFORM_8BIT=0x01,
- HTTPFORM_FILE=0x02,
+ HTTPFF_TEXT =0x00,
+ HTTPFF_8BIT =0x01,
+ HTTPFF_FILE =0x02,
+ HTTPFF_INT =0x04,
};
+ #define HTTPFORM_TEXT(str) str,HTTPFF_TEXT
+ #define HTTPFORM_8BIT(str) str,HTTPFF_8BIT
+ #define HTTPFORM_FILE(str) str,HTTPFF_FILE
+ #define HTTPFORM_INT(int) (const char*)int,HTTPFF_INT
struct HTTPFormData{
const char* name;
- const char* value;
+ union{
+ const char* value_str;
+ intptr_t value_int;
+ };
int flags;
};
static const char* GetHTMLContent(char* str, const char* startTag, const char* endTag); /// changes "str", can be successfully used only once