@@ -7,7 +7,7 @@
# not drop the handler if it is not called.
# Handler can be called dynamically based
# on the received image type.
-obj-y += dummy_handler.o chain_handler.o
+obj-y += dummy_handler.o handler_helpers.o
obj-$(CONFIG_ARCHIVE) += archive_handler.o
obj-$(CONFIG_BOOTLOADERHANDLER) += boot_handler.o
obj-$(CONFIG_BTRFS_FILESYSTEM) += btrfs_handler.o
@@ -30,7 +30,7 @@
#include "progress.h"
#include "handler.h"
#include "util.h"
-#include "chained_handler.h"
+#include "handler_helpers.h"
#include "installer.h"
#define PIPE_READ 0
@@ -39,7 +39,7 @@
#include "delta_handler.h"
#include "multipart_parser.h"
#include "zchunk_range.h"
-#include "chained_handler.h"
+#include "handler_helpers.h"
#include "swupdate_image.h"
#define DEFAULT_MAX_RANGES 150 /* Apache has default = 200 */
similarity index 97%
rename from handlers/chain_handler.c
rename to handlers/handler_helpers.c
@@ -14,7 +14,7 @@
#include <fcntl.h>
#include <pthread.h>
#include <unistd.h>
-#include "chained_handler.h"
+#include "handler_helpers.h"
#include "installer.h"
#include "pctl.h"
#include "util.h"
similarity index 100%
rename from include/chained_handler.h
rename to include/handler_helpers.h
Rename the file because more helpers functions will be stored in the file. Signed-off-by: Stefano Babic <stefano.babic@swupdate.org> --- handlers/Makefile | 2 +- handlers/copy_handler.c | 2 +- handlers/delta_handler.c | 2 +- handlers/{chain_handler.c => handler_helpers.c} | 2 +- include/{chained_handler.h => handler_helpers.h} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename handlers/{chain_handler.c => handler_helpers.c} (97%) rename include/{chained_handler.h => handler_helpers.h} (100%) -- 2.34.1