Skip to content

Commit 69c99ad

Browse files
committed
Remove storage file transfer backend
Signed-off-by: Simone Orru <simone.orru@secomind.com>
1 parent 9bc849c commit 69c99ad

5 files changed

Lines changed: 4 additions & 206 deletions

File tree

lib/edgehog_device/file_transfer/download.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,7 @@ static int verify_digest(edgehog_ft_http_cbk_data_t *data, const char *expected_
275275
const edgehog_ft_file_write_cbks_t *get_callbacks(const char *destination_type)
276276
{
277277
const edgehog_ft_file_write_cbks_t *file_cbks = NULL;
278-
if (strcmp(destination_type, "storage") == 0) {
279-
file_cbks = &file_transfer_storage_write_cbks;
280-
} else if (strcmp(destination_type, "stream") == 0) {
278+
if (strcmp(destination_type, "stream") == 0) {
281279
file_cbks = &edgehog_ft_stream_write_cbks;
282280
} else if (strcmp(destination_type, "filesystem") == 0) {
283281
file_cbks = &edgehog_ft_filesystem_write_cbks;

lib/edgehog_device/file_transfer/storage.c

Lines changed: 0 additions & 166 deletions
This file was deleted.

lib/edgehog_device/file_transfer/upload.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ void edgehog_ft_handle_device_to_server(
159159
const edgehog_ft_file_read_cbks_t *get_callbacks(const char *source_type)
160160
{
161161
const edgehog_ft_file_read_cbks_t *file_cbks = NULL;
162-
if (strcmp(source_type, "storage") == 0) {
163-
file_cbks = &file_transfer_storage_read_cbks;
164-
} else if (strcmp(source_type, "stream") == 0) {
162+
if (strcmp(source_type, "stream") == 0) {
165163
file_cbks = &edgehog_ft_stream_read_cbks;
166164
} else if (strcmp(source_type, "filesystem") == 0) {
167165
file_cbks = &edgehog_ft_filesystem_read_cbks;

lib/edgehog_device/include/file_transfer/core.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ typedef struct
3030
bool progress;
3131
/** @brief A SHA-256 hash for the file to transfer, prefixed by "sha256:". */
3232
char *digest;
33-
/** @brief Location for the file (storage, streaming, filesystem). */
33+
/** @brief Location for the file (streaming, filesystem). */
3434
char *location_type;
35-
/** @brief Location-specific information on how to perform the storage. */
35+
/** @brief Location-specific information on how to save the file. */
3636
char *location;
3737
/** @brief The type of the message, indicating which payload to read. */
3838
edgehog_ft_type_t type;

lib/edgehog_device/include/file_transfer/storage.h

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)