From 78304f43a075e5de89ee8d9e38db52c1f6a29f2c Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Fri, 10 Feb 2023 20:22:09 +0000 Subject: [PATCH] file prefix: Update more file names to have coap_ prefix --- CMakeLists.txt | 4 ++-- Makefile.am | 6 +++--- examples/lwip/Makefile | 2 +- include/coap3/coap.h.in | 2 +- include/coap3/coap.h.windows | 2 +- include/coap3/coap.h.windows.in | 2 +- include/coap3/{uri.h => coap_uri.h} | 4 ++-- include/coap3/pdu.h | 2 +- src/{uri.c => coap_uri.c} | 5 ++--- win32/libcoap.vcxproj | 4 ++-- win32/libcoap.vcxproj.filters | 8 ++++---- 11 files changed, 20 insertions(+), 21 deletions(-) rename include/coap3/{uri.h => coap_uri.h} (99%) rename src/{uri.c => coap_uri.c} (99%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b781aca..83707a68 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -487,11 +487,11 @@ target_sources( ${CMAKE_CURRENT_LIST_DIR}/src/coap_subscribe.c ${CMAKE_CURRENT_LIST_DIR}/src/coap_tcp.c ${CMAKE_CURRENT_LIST_DIR}/src/coap_time.c + ${CMAKE_CURRENT_LIST_DIR}/src/coap_uri.c ${CMAKE_CURRENT_LIST_DIR}/src/block.c ${CMAKE_CURRENT_LIST_DIR}/src/net.c ${CMAKE_CURRENT_LIST_DIR}/src/pdu.c ${CMAKE_CURRENT_LIST_DIR}/src/resource.c - ${CMAKE_CURRENT_LIST_DIR}/src/uri.c # no need to parse those files if we do not need them $<$:${CMAKE_CURRENT_LIST_DIR}/src/coap_openssl.c> $<$:${CMAKE_CURRENT_LIST_DIR}/src/coap_tinydtls.c> @@ -525,7 +525,7 @@ target_sources( ${CMAKE_CURRENT_LIST_DIR}/include/coap${LIBCOAP_API_VERSION}/coap_str.h ${CMAKE_CURRENT_LIST_DIR}/include/coap${LIBCOAP_API_VERSION}/coap_subscribe.h ${CMAKE_CURRENT_LIST_DIR}/include/coap${LIBCOAP_API_VERSION}/coap_time.h - ${CMAKE_CURRENT_LIST_DIR}/include/coap${LIBCOAP_API_VERSION}/uri.h) + ${CMAKE_CURRENT_LIST_DIR}/include/coap${LIBCOAP_API_VERSION}/coap_uri.h) target_include_directories( ${COAP_LIBRARY_NAME} PUBLIC # config headers are generated during configuration time diff --git a/Makefile.am b/Makefile.am index 9bad0104..ef678c40 100644 --- a/Makefile.am +++ b/Makefile.am @@ -172,10 +172,10 @@ libcoap_@LIBCOAP_NAME_SUFFIX@_la_SOURCES = \ src/coap_tcp.c \ src/coap_time.c \ src/coap_tinydtls.c \ + src/coap_uri.c \ src/net.c \ src/pdu.c \ - src/resource.c \ - src/uri.c + src/resource.c if HAVE_OSCORE libcoap_@LIBCOAP_NAME_SUFFIX@_la_SOURCES += $(libcoap_OSCORE_sources) @@ -217,7 +217,7 @@ libcoap_include_HEADERS = \ $(top_srcdir)/include/coap$(LIBCOAP_API_VERSION)/coap_str.h \ $(top_srcdir)/include/coap$(LIBCOAP_API_VERSION)/coap_subscribe.h \ $(top_srcdir)/include/coap$(LIBCOAP_API_VERSION)/coap_time.h \ - $(top_srcdir)/include/coap$(LIBCOAP_API_VERSION)/uri.h + $(top_srcdir)/include/coap$(LIBCOAP_API_VERSION)/coap_uri.h ## Instruct libtool to include API version information in the generated shared ## library file (.so). The library ABI version will later defined in configure.ac, diff --git a/examples/lwip/Makefile b/examples/lwip/Makefile index cce6cc76..19086cbc 100644 --- a/examples/lwip/Makefile +++ b/examples/lwip/Makefile @@ -153,7 +153,7 @@ COAP_SRC = coap_address.c \ coap_tinydtls.c \ coap_str.c \ coap_tcp.c \ - uri.c + coap_uri.c CN_COAP_OBJ =$(patsubst %.c,lib-client/%.o,$(COAP_SRC)) SN_COAP_OBJ =$(patsubst %.c,lib-server/%.o,$(COAP_SRC)) diff --git a/include/coap3/coap.h.in b/include/coap3/coap.h.in index b4b72957..8ffb5f37 100644 --- a/include/coap3/coap.h.in +++ b/include/coap3/coap.h.in @@ -62,7 +62,7 @@ extern "C" { #include "coap@LIBCOAP_API_VERSION@/coap_str.h" #include "coap@LIBCOAP_API_VERSION@/coap_subscribe.h" #include "coap@LIBCOAP_API_VERSION@/coap_time.h" -#include "coap@LIBCOAP_API_VERSION@/uri.h" +#include "coap@LIBCOAP_API_VERSION@/coap_uri.h" #ifdef __cplusplus } diff --git a/include/coap3/coap.h.windows b/include/coap3/coap.h.windows index 545b7537..4f0528ed 100644 --- a/include/coap3/coap.h.windows +++ b/include/coap3/coap.h.windows @@ -57,7 +57,7 @@ extern "C" { #include "coap3/coap_subscribe.h" #include "coap3/coap_time.h" #include "coap3/coap_str.h" -#include "coap3/uri.h" +#include "coap3/coap_uri.h" #ifdef __cplusplus } diff --git a/include/coap3/coap.h.windows.in b/include/coap3/coap.h.windows.in index 115be2f4..2d6b8b63 100644 --- a/include/coap3/coap.h.windows.in +++ b/include/coap3/coap.h.windows.in @@ -57,7 +57,7 @@ extern "C" { #include "coap@LIBCOAP_API_VERSION@/coap_subscribe.h" #include "coap@LIBCOAP_API_VERSION@/coap_time.h" #include "coap@LIBCOAP_API_VERSION@/coap_str.h" -#include "coap@LIBCOAP_API_VERSION@/uri.h" +#include "coap@LIBCOAP_API_VERSION@/coap_uri.h" #ifdef __cplusplus } diff --git a/include/coap3/uri.h b/include/coap3/coap_uri.h similarity index 99% rename from include/coap3/uri.h rename to include/coap3/coap_uri.h index 1e292822..616aa72e 100644 --- a/include/coap3/uri.h +++ b/include/coap3/coap_uri.h @@ -1,5 +1,5 @@ /* - * uri.h -- helper functions for URI treatment + * coap_uri.h -- helper functions for URI treatment * * Copyright (C) 2010-2023 Olaf Bergmann * @@ -10,7 +10,7 @@ */ /** - * @file uri.h + * @file coap_uri.h * @brief Helper functions for URI treatment */ diff --git a/include/coap3/pdu.h b/include/coap3/pdu.h index 954ca142..900b4600 100644 --- a/include/coap3/pdu.h +++ b/include/coap3/pdu.h @@ -19,7 +19,7 @@ #define COAP_PDU_H_ #include "coap_option.h" -#include "uri.h" +#include "coap_uri.h" #ifdef WITH_LWIP #include diff --git a/src/uri.c b/src/coap_uri.c similarity index 99% rename from src/uri.c rename to src/coap_uri.c index a5f5caaa..5f61701b 100644 --- a/src/uri.c +++ b/src/coap_uri.c @@ -1,4 +1,4 @@ -/* uri.c -- helper functions for URI treatment +/* coap_uri.c -- helper functions for URI treatment * * Copyright (C) 2010--2012,2015-2016,2022-2023 Olaf Bergmann * @@ -9,7 +9,7 @@ */ /** - * @file uri.c + * @file coap_uri.c * @brief URI handling functions */ @@ -732,4 +732,3 @@ coap_string_t *coap_get_uri_path(const coap_pdu_t *request) { } return uri_path; } - diff --git a/win32/libcoap.vcxproj b/win32/libcoap.vcxproj index 828fff0f..a4c3c98e 100644 --- a/win32/libcoap.vcxproj +++ b/win32/libcoap.vcxproj @@ -62,10 +62,10 @@ + - @@ -108,7 +108,7 @@ - + diff --git a/win32/libcoap.vcxproj.filters b/win32/libcoap.vcxproj.filters index 63ba7d29..66887bad 100644 --- a/win32/libcoap.vcxproj.filters +++ b/win32/libcoap.vcxproj.filters @@ -81,6 +81,9 @@ Source Files + + Source Files + Source Files @@ -90,9 +93,6 @@ Source Files - - Source Files - Source Files @@ -215,7 +215,7 @@ Header Files - + Header Files