From b5deb3fdc5e4f5ad935203103bbfccae2aa9d4ac Mon Sep 17 00:00:00 2001 From: pedrofnseca Date: Sat, 28 Sep 2024 16:55:10 -0300 Subject: [PATCH] ref: file paths for header files --- src/{ => headers}/handler.h | 4 ++-- src/{ => headers}/pg.h | 0 src/{ => headers}/response_builder.h | 2 +- src/{ => headers}/user_handler.h | 2 +- src/{ => headers}/utils.h | 0 src/main.c | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename src/{ => headers}/handler.h (95%) rename src/{ => headers}/pg.h (100%) rename src/{ => headers}/response_builder.h (94%) rename src/{ => headers}/user_handler.h (99%) rename src/{ => headers}/utils.h (100%) diff --git a/src/handler.h b/src/headers/handler.h similarity index 95% rename from src/handler.h rename to src/headers/handler.h index dbcfc11..6333d80 100644 --- a/src/handler.h +++ b/src/headers/handler.h @@ -1,5 +1,5 @@ -#include "response_builder.h" -#include "user_handler.h" +#include "headers/response_builder.h" +#include "headers/user_handler.h" #include jmp_buf exceptionBuffer; diff --git a/src/pg.h b/src/headers/pg.h similarity index 100% rename from src/pg.h rename to src/headers/pg.h diff --git a/src/response_builder.h b/src/headers/response_builder.h similarity index 94% rename from src/response_builder.h rename to src/headers/response_builder.h index a9c55de..dfafc5b 100644 --- a/src/response_builder.h +++ b/src/headers/response_builder.h @@ -1,5 +1,5 @@ #include -#include "utils.h" +#include "headers/utils.h" struct MHD_Response *HTTP_build_response_JSON(const char *message) { struct MHD_Response *response; diff --git a/src/user_handler.h b/src/headers/user_handler.h similarity index 99% rename from src/user_handler.h rename to src/headers/user_handler.h index 223f86f..da02428 100644 --- a/src/user_handler.h +++ b/src/headers/user_handler.h @@ -1,4 +1,4 @@ -#include "pg.h" +#include "headers/pg.h" #include #include diff --git a/src/utils.h b/src/headers/utils.h similarity index 100% rename from src/utils.h rename to src/headers/utils.h diff --git a/src/main.c b/src/main.c index 6e17bf1..8264075 100644 --- a/src/main.c +++ b/src/main.c @@ -1,7 +1,7 @@ #include #include #include -#include "handler.h" +#include "headers/handler.h" #define PORT 8080