Verified Commit 3edc8006 authored by Peio Rigaux's avatar Peio Rigaux
Browse files

modified way to initialize structs to satisfy windows.

parent 1de646b9
......@@ -199,7 +199,7 @@ typedef struct {
* Note: we do not use userData here as we access directly the http provider from a global variable but otherwise we should retrieve it using that pointer
*/
static void X3DHServerPost(void *userData, lime_ffi_data_t limeData, const char *url, const char *from, const uint8_t *message, const size_t message_size) {
belle_http_request_listener_callbacks_t cbs={};
belle_http_request_listener_callbacks_t cbs={ 0 };
belle_http_request_listener_t *l;
belle_generic_uri_t *uri;
belle_http_request_t *req;
......
......@@ -128,7 +128,7 @@ static void process_response(void *data, const belle_http_response_event_t *even
* @param[in] responseProcess The function to be called when response from server arrives. Function prototype is defined in lime.hpp: (void)(int responseCode, std::vector<uint8_t>response)
*/
static limeX3DHServerPostData X3DHServerPost([](const std::string &url, const std::string &from, const std::vector<uint8_t> &message, const limeX3DHServerResponseProcess &responseProcess){
belle_http_request_listener_callbacks_t cbs={};
belle_http_request_listener_callbacks_t cbs={ 0 };
belle_http_request_listener_t *l;
belle_generic_uri_t *uri;
belle_http_request_t *req;
......
......@@ -100,7 +100,7 @@ static void process_response(void *data, const belle_http_response_event_t *even
* @param[in] responseProcess The function to be called when response from server arrives. Function prototype is defined in lime.hpp: (void)(int responseCode, std::vector<uint8_t>response)
*/
static limeX3DHServerPostData X3DHServerPost([](const std::string &url, const std::string &from, const std::vector<uint8_t> &message, const limeX3DHServerResponseProcess &responseProcess){
belle_http_request_listener_callbacks_t cbs={};
belle_http_request_listener_callbacks_t cbs={ 0 };
belle_http_request_listener_t *l;
belle_generic_uri_t *uri;
belle_http_request_t *req;
......
......@@ -102,7 +102,7 @@ static void process_response(void *data, const belle_http_response_event_t *even
* @param[in] responseProcess The function to be called when response from server arrives. Function prototype is defined in lime.hpp: (void)(int responseCode, std::vector<uint8_t>response)
*/
static limeX3DHServerPostData X3DHServerPost([](const std::string &url, const std::string &from, const std::vector<uint8_t> &message, const limeX3DHServerResponseProcess &responseProcess){
belle_http_request_listener_callbacks_t cbs={};
belle_http_request_listener_callbacks_t cbs={ 0 };
belle_http_request_listener_t *l;
belle_generic_uri_t *uri;
belle_http_request_t *req;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment