@@ -76,7 +76,7 @@ channel_op_res_t channel_set_options(channel_t *this, channel_data_t *channel_da
static void channel_log_effective_url(channel_t *this);
/* Prototypes for "public" functions */
-channel_op_res_t channel_hawkbit_init(void);
+channel_op_res_t channel_curl_init(void);
channel_op_res_t channel_close(channel_t *this);
channel_op_res_t channel_open(channel_t *this, void *cfg);
channel_op_res_t channel_get(channel_t *this, void *data);
@@ -85,7 +85,7 @@ channel_op_res_t channel_put(channel_t *this, void *data);
channel_t *channel_new(void);
-channel_op_res_t channel_hawkbit_init(void)
+channel_op_res_t channel_curl_init(void)
{
#ifdef CONFIG_SURICATTA_SSL
#define CURL_FLAGS CURL_GLOBAL_SSL
@@ -106,7 +106,7 @@ static hawkbit_enums_t hawkbit_enums[] = {
#define ALL_MANDATORY_SET (TENANT_BIT | ID_BIT | URL_BIT)
-extern channel_op_res_t channel_hawkbit_init(void);
+extern channel_op_res_t channel_curl_init(void);
/* Prototypes for "internal" functions */
/* Note that they're not `static` so that they're callable from unit tests. */
json_object *json_get_key(json_object *json_root, const char *key);
@@ -1718,7 +1718,7 @@ server_op_res_t server_start(char *fname, int argc, char *argv[])
return SERVER_EINIT;
}
- if (channel_hawkbit_init() != CHANNEL_OK)
+ if (channel_curl_init() != CHANNEL_OK)
return SERVER_EINIT;
/*
Function can be used outside hawkbit - rename channel_hawkbit_init() to channel_curl_init(). Signed-off-by: Stefano Babic <sbabic@denx.de> --- corelib/channel_curl.c | 4 ++-- suricatta/server_hawkbit.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)