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 { 00023 size_t pos; 00024 size_t size; 00025 const char* payload; 00026 }; 00027 00037 void send_message(const char* dest, const char* to[], size_t to_size, const char* from, const char* payload, 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, size_t payload_size, const char* username, const char* pw, int disableVerify); 00052 00053 00054 #ifdef __cplusplus 00055 } 00056 #endif 00057 00058 #endif