diff mbox series

[v2,3/3] suricatta: add channel_curl prototypes to hawkbit test

Message ID 20180103123456.9238-3-christian.storm@siemens.com
State Accepted
Headers show
Series None | expand

Commit Message

Storm, Christian Jan. 3, 2018, 12:34 p.m. UTC
As they're required by the hawkbit server test, add the
curl channel's prototypes to the test itself.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 suricatta/test/test_server_hawkbit.c | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Stefano Babic Jan. 3, 2018, 2:57 p.m. UTC | #1
On 03/01/2018 13:34, Christian Storm wrote:
> As they're required by the hawkbit server test, add the
> curl channel's prototypes to the test itself.
> 
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  suricatta/test/test_server_hawkbit.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/suricatta/test/test_server_hawkbit.c b/suricatta/test/test_server_hawkbit.c
> index 86e2dc5..fcb81ac 100644
> --- a/suricatta/test/test_server_hawkbit.c
> +++ b/suricatta/test/test_server_hawkbit.c
> @@ -35,6 +35,14 @@
>  #define JSON_OBJECT_FREED 1
>  #define JSONQUOTE(...) #__VA_ARGS__
>  
> +/* Keep in sync with corelib/channel_curl.c's prototypes for public functions. */
> +extern channel_op_res_t channel_close(channel_t *this);
> +extern channel_op_res_t channel_open(channel_t *this, void *cfg);
> +extern channel_op_res_t channel_put(channel_t *this, void *data);
> +extern channel_op_res_t channel_get_file(channel_t *this, void *data, int file_handle);
> +extern channel_op_res_t channel_get(channel_t *this, void *data);
> +extern channel_op_res_t channel_curl_init(void);
> +
>  extern json_object *json_get_key(json_object *json_root, const char *key);
>  
>  extern int __real_ipc_wait_for_complete(getstatus callback);
> 

Applied to -master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/suricatta/test/test_server_hawkbit.c b/suricatta/test/test_server_hawkbit.c
index 86e2dc5..fcb81ac 100644
--- a/suricatta/test/test_server_hawkbit.c
+++ b/suricatta/test/test_server_hawkbit.c
@@ -35,6 +35,14 @@ 
 #define JSON_OBJECT_FREED 1
 #define JSONQUOTE(...) #__VA_ARGS__
 
+/* Keep in sync with corelib/channel_curl.c's prototypes for public functions. */
+extern channel_op_res_t channel_close(channel_t *this);
+extern channel_op_res_t channel_open(channel_t *this, void *cfg);
+extern channel_op_res_t channel_put(channel_t *this, void *data);
+extern channel_op_res_t channel_get_file(channel_t *this, void *data, int file_handle);
+extern channel_op_res_t channel_get(channel_t *this, void *data);
+extern channel_op_res_t channel_curl_init(void);
+
 extern json_object *json_get_key(json_object *json_root, const char *key);
 
 extern int __real_ipc_wait_for_complete(getstatus callback);