]> granicus.if.org Git - esp-idf/commitdiff
HTTP Server : Added esp_ prefix to http_server component files
authorAnurag Kar <anurag.kar@espressif.com>
Wed, 24 Oct 2018 09:42:50 +0000 (15:12 +0530)
committerAnurag Kar <anurag.kar@espressif.com>
Wed, 24 Oct 2018 12:02:20 +0000 (17:32 +0530)
19 files changed:
components/esp32/esp_err_to_name.c
components/esp_http_server/CMakeLists.txt [moved from components/http_server/CMakeLists.txt with 100% similarity]
components/esp_http_server/Kconfig [moved from components/http_server/Kconfig with 100% similarity]
components/esp_http_server/component.mk [moved from components/http_server/component.mk with 100% similarity]
components/esp_http_server/include/esp_http_server.h [moved from components/http_server/include/http_server.h with 99% similarity]
components/esp_http_server/include/http_server.h [new file with mode: 0644]
components/esp_http_server/src/esp_httpd_priv.h [moved from components/http_server/src/httpd_priv.h with 99% similarity]
components/esp_http_server/src/httpd_main.c [moved from components/http_server/src/httpd_main.c with 99% similarity]
components/esp_http_server/src/httpd_parse.c [moved from components/http_server/src/httpd_parse.c with 99% similarity]
components/esp_http_server/src/httpd_sess.c [moved from components/http_server/src/httpd_sess.c with 99% similarity]
components/esp_http_server/src/httpd_txrx.c [moved from components/http_server/src/httpd_txrx.c with 99% similarity]
components/esp_http_server/src/httpd_uri.c [moved from components/http_server/src/httpd_uri.c with 99% similarity]
components/esp_http_server/src/port/esp32/osal.h [moved from components/http_server/src/port/esp32/osal.h with 100% similarity]
components/esp_http_server/src/util/ctrl_sock.c [moved from components/http_server/src/util/ctrl_sock.c with 100% similarity]
components/esp_http_server/src/util/ctrl_sock.h [moved from components/http_server/src/util/ctrl_sock.h with 100% similarity]
components/esp_http_server/test/CMakeLists.txt [new file with mode: 0644]
components/esp_http_server/test/component.mk [moved from components/http_server/test/component.mk with 100% similarity]
components/esp_http_server/test/test_http_server.c [moved from components/http_server/test/test_http_server.c with 99% similarity]
components/http_server/test/CMakeLists.txt [deleted file]

index 3882d4bf4f553aa7c3912dc093745bceeed41250..dd1b81614c667b5ab9a18152cfedde14d0e25b55 100644 (file)
@@ -13,6 +13,9 @@
 #if __has_include("esp_http_client.h")
 #include "esp_http_client.h"
 #endif
+#if __has_include("esp_http_server.h")
+#include "esp_http_server.h"
+#endif
 #if __has_include("esp_image_format.h")
 #include "esp_image_format.h"
 #endif
@@ -37,9 +40,6 @@
 #if __has_include("esp_wps.h")
 #include "esp_wps.h"
 #endif
-#if __has_include("http_server.h")
-#include "http_server.h"
-#endif
 #if __has_include("nvs.h")
 #include "nvs.h"
 #endif
@@ -456,7 +456,7 @@ static const esp_err_msg_t esp_err_msg_table[] = {
 #   ifdef      ESP_ERR_HTTP_EAGAIN
     ERR_TBL_IT(ESP_ERR_HTTP_EAGAIN),                        /* 28679 0x7007 Mapping of errno EAGAIN to esp_err_t */
 #   endif
-    // components/http_server/include/http_server.h
+    // components/esp_http_server/include/esp_http_server.h
 #   ifdef      ESP_ERR_HTTPD_BASE
     ERR_TBL_IT(ESP_ERR_HTTPD_BASE),                         /* 32768 0x8000 Starting number of HTTPD error codes */
 #   endif
similarity index 99%
rename from components/http_server/include/http_server.h
rename to components/esp_http_server/include/esp_http_server.h
index 6a8e65c794dbd8bf4bc6840ce261f31f1034a188..4880c66acd8025dab4c1f774e9c1d2cd8cf86823 100644 (file)
@@ -12,8 +12,8 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#ifndef _HTTP_SERVER_H_
-#define _HTTP_SERVER_H_
+#ifndef _ESP_HTTP_SERVER_H_
+#define _ESP_HTTP_SERVER_H_
 
 #include <stdio.h>
 #include <string.h>
@@ -993,4 +993,4 @@ esp_err_t httpd_queue_work(httpd_handle_t handle, httpd_work_fn_t work, void *ar
 }
 #endif
 
-#endif /* ! _HTTP_SERVER_H_ */
+#endif /* ! _ESP_HTTP_SERVER_H_ */
diff --git a/components/esp_http_server/include/http_server.h b/components/esp_http_server/include/http_server.h
new file mode 100644 (file)
index 0000000..56f73c5
--- /dev/null
@@ -0,0 +1,2 @@
+#warning http_server.h has been renamed to esp_http_server.h, please update include directives
+#include "esp_http_server.h"
similarity index 99%
rename from components/http_server/src/httpd_priv.h
rename to components/esp_http_server/src/esp_httpd_priv.h
index 7339ec03efd818acb8861d8324b805194ee00093..ff619e39e98dcd4309544a1c37970ae7e0f94b99 100644 (file)
@@ -22,8 +22,8 @@
 #include <netinet/in.h>
 #include <esp_log.h>
 #include <esp_err.h>
-#include <http_server.h>
 
+#include <esp_http_server.h>
 #include "osal.h"
 
 #ifdef __cplusplus
similarity index 99%
rename from components/http_server/src/httpd_main.c
rename to components/esp_http_server/src/httpd_main.c
index 729ec11633ddff70d9e0c9615e526c12d5803ce4..c4bcf68d777390d1aa163b2f2eb62a4aae83017d 100644 (file)
@@ -20,8 +20,8 @@
 #include <esp_err.h>
 #include <assert.h>
 
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
 #include "ctrl_sock.h"
 
 static const char *TAG = "httpd";
similarity index 99%
rename from components/http_server/src/httpd_parse.c
rename to components/esp_http_server/src/httpd_parse.c
index 9a15e2f2072be9ffbd18cdc8fceb37d03494ce62..93b5abddc347d1a2855639ac7798775a2f2b5e0a 100644 (file)
@@ -18,9 +18,9 @@
 #include <esp_log.h>
 #include <esp_err.h>
 #include <http_parser.h>
-#include <http_server.h>
 
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
 #include "osal.h"
 
 static const char *TAG = "httpd_parse";
similarity index 99%
rename from components/http_server/src/httpd_sess.c
rename to components/esp_http_server/src/httpd_sess.c
index 2049b2b68e3a56c8310d17e724f78739fd596b30..b3561aab35675eb305cf9a0b7bd5ca305f1210ae 100644 (file)
@@ -17,8 +17,8 @@
 #include <esp_log.h>
 #include <esp_err.h>
 
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
 
 static const char *TAG = "httpd_sess";
 
similarity index 99%
rename from components/http_server/src/httpd_txrx.c
rename to components/esp_http_server/src/httpd_txrx.c
index 1ccebabe4fd9ec39e3dba4f914c1c9c3dbf38d2d..5ab80295d2330bcd73ae0fba89dd2d4d6a38f081 100644 (file)
@@ -17,8 +17,8 @@
 #include <esp_log.h>
 #include <esp_err.h>
 
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
 
 static const char *TAG = "httpd_txrx";
 
similarity index 99%
rename from components/http_server/src/httpd_uri.c
rename to components/esp_http_server/src/httpd_uri.c
index b74a7f62a3ed81bd020074685ae4b922b5c277ad..9652c9439a933336d6e57d5a6bdc53227bca3f94 100644 (file)
@@ -18,8 +18,8 @@
 #include <esp_err.h>
 #include <http_parser.h>
 
-#include <http_server.h>
-#include "httpd_priv.h"
+#include <esp_http_server.h>
+#include "esp_httpd_priv.h"
 
 static const char *TAG = "httpd_uri";
 
diff --git a/components/esp_http_server/test/CMakeLists.txt b/components/esp_http_server/test/CMakeLists.txt
new file mode 100644 (file)
index 0000000..7587213
--- /dev/null
@@ -0,0 +1,6 @@
+set(COMPONENT_SRCDIRS ".")
+set(COMPONENT_ADD_INCLUDEDIRS ".")
+
+set(COMPONENT_REQUIRES unity esp_http_server)
+
+register_component()
similarity index 99%
rename from components/http_server/test/test_http_server.c
rename to components/esp_http_server/test/test_http_server.c
index 07c91add5cfd8d50f64007a9bcb1f8745f12f4b3..e343c99ca41e5b656340407e2cce938c22976951 100644 (file)
@@ -15,7 +15,7 @@
 #include <stdlib.h>
 #include <stdbool.h>
 #include <esp_system.h>
-#include <http_server.h>
+#include <esp_http_server.h>
 
 #include "unity.h"
 #include "test_utils.h"
diff --git a/components/http_server/test/CMakeLists.txt b/components/http_server/test/CMakeLists.txt
deleted file mode 100644 (file)
index 1c57757..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-set(COMPONENT_SRCDIRS ".")
-set(COMPONENT_ADD_INCLUDEDIRS ".")
-
-set(COMPONENT_REQUIRES unity http_server)
-
-register_component()
\ No newline at end of file