00001 #ifndef CURL_SEND_MESSAGE_H
00002 #define CURL_SEND_MESSAGE_H 1
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008 #include <stdio.h>
00009 #include <stdlib.h>
00010 #include <string.h>
00011
00021 struct upload_status {
00022 size_t pos;
00023 size_t size;
00024 const char* payload;
00025 };
00026
00036 void send_message(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload,
00037 size_t payload_size);
00038
00051 void send_message_ssl(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload,
00052 size_t payload_size, const char* username, const char* pw, int disableVerify);
00053
00054 #ifdef __cplusplus
00055 }
00056 #endif
00057
00058 #endif