Message ID | 20180103123456.9238-3-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show |
Series | None | expand |
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 --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);
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(+)