From a2726b6a7d16f5f846a882fbbe9127e4604bb8bb Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 7 Jul 2020 14:18:57 +0200 Subject: Apply coding style --- tests/unittests/tools/stub_http_upload.c | 39 +++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 13 deletions(-) (limited to 'tests/unittests/tools') diff --git a/tests/unittests/tools/stub_http_upload.c b/tests/unittests/tools/stub_http_upload.c index 3cfb1c5d..25a81708 100644 --- a/tests/unittests/tools/stub_http_upload.c +++ b/tests/unittests/tools/stub_http_upload.c @@ -7,26 +7,39 @@ // forward -> ui/win_types.h typedef struct prof_win_t ProfWin; -typedef struct http_upload_t { - char *filename; +typedef struct http_upload_t +{ + char* filename; off_t filesize; curl_off_t bytes_sent; - char *mime_type; - char *get_url; - char *put_url; - ProfWin *window; + char* mime_type; + char* get_url; + char* put_url; + ProfWin* window; pthread_t worker; int cancel; } HTTPUpload; //GSList *upload_processes; -void* http_file_put(void *userdata) { return NULL; } - -char* file_mime_type(const char* const file_name) { return NULL; } -off_t file_size(const char* const file_name) { return 0; } - -void http_upload_cancel_processes() {}; -void http_upload_add_upload() {}; +void* +http_file_put(void* userdata) +{ + return NULL; +} + +char* +file_mime_type(const char* const file_name) +{ + return NULL; +} +off_t +file_size(const char* const file_name) +{ + return 0; +} + +void http_upload_cancel_processes(){}; +void http_upload_add_upload(){}; #endif -- cgit 1.4.1-2-gfad0