diff mbox series

[06/10] Rename chained_handler.h in handler_helpers.h

Message ID 20241030101550.21014-7-stefano.babic@swupdate.org
State Changes Requested
Headers show
Series Introduce BTRFS Snapshot Handler | expand

Commit Message

Stefano Babic Oct. 30, 2024, 10:15 a.m. UTC
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
diff mbox series

Patch

diff --git a/handlers/Makefile b/handlers/Makefile
index 12d4aeb8..8490172a 100644
--- a/handlers/Makefile
+++ b/handlers/Makefile
@@ -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
diff --git a/handlers/copy_handler.c b/handlers/copy_handler.c
index 0dcb540a..222bc9f5 100644
--- a/handlers/copy_handler.c
+++ b/handlers/copy_handler.c
@@ -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
diff --git a/handlers/delta_handler.c b/handlers/delta_handler.c
index 0c782f3d..c7a57a3c 100644
--- a/handlers/delta_handler.c
+++ b/handlers/delta_handler.c
@@ -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 */
diff --git a/handlers/chain_handler.c b/handlers/handler_helpers.c
similarity index 97%
rename from handlers/chain_handler.c
rename to handlers/handler_helpers.c
index 98da1bdc..76f87da2 100644
--- a/handlers/chain_handler.c
+++ b/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"
diff --git a/include/chained_handler.h b/include/handler_helpers.h
similarity index 100%
rename from include/chained_handler.h
rename to include/handler_helpers.h