Przeglądaj źródła

HTTP Server : Added esp_ prefix to http_server component files

Anurag Kar 7 lat temu
rodzic
commit
2af9d7e0ed

+ 4 - 4
components/esp32/esp_err_to_name.c

@@ -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

+ 0 - 0
components/http_server/CMakeLists.txt → components/esp_http_server/CMakeLists.txt


+ 0 - 0
components/http_server/Kconfig → components/esp_http_server/Kconfig


+ 0 - 0
components/http_server/component.mk → components/esp_http_server/component.mk


+ 3 - 3
components/http_server/include/http_server.h → components/esp_http_server/include/esp_http_server.h

@@ -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_ */

+ 2 - 0
components/esp_http_server/include/http_server.h

@@ -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"

+ 1 - 1
components/http_server/src/httpd_priv.h → components/esp_http_server/src/esp_httpd_priv.h

@@ -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

+ 2 - 2
components/http_server/src/httpd_main.c → components/esp_http_server/src/httpd_main.c

@@ -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";

+ 2 - 2
components/http_server/src/httpd_parse.c → components/esp_http_server/src/httpd_parse.c

@@ -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";

+ 2 - 2
components/http_server/src/httpd_sess.c → components/esp_http_server/src/httpd_sess.c

@@ -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";
 

+ 2 - 2
components/http_server/src/httpd_txrx.c → components/esp_http_server/src/httpd_txrx.c

@@ -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";
 

+ 2 - 2
components/http_server/src/httpd_uri.c → components/esp_http_server/src/httpd_uri.c

@@ -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";
 

+ 0 - 0
components/http_server/src/port/esp32/osal.h → components/esp_http_server/src/port/esp32/osal.h


+ 0 - 0
components/http_server/src/util/ctrl_sock.c → components/esp_http_server/src/util/ctrl_sock.c


+ 0 - 0
components/http_server/src/util/ctrl_sock.h → components/esp_http_server/src/util/ctrl_sock.h


+ 6 - 0
components/esp_http_server/test/CMakeLists.txt

@@ -0,0 +1,6 @@
+set(COMPONENT_SRCDIRS ".")
+set(COMPONENT_ADD_INCLUDEDIRS ".")
+
+set(COMPONENT_REQUIRES unity esp_http_server)
+
+register_component()

+ 0 - 0
components/http_server/test/component.mk → components/esp_http_server/test/component.mk


+ 1 - 1
components/http_server/test/test_http_server.c → components/esp_http_server/test/test_http_server.c

@@ -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"

+ 0 - 6
components/http_server/test/CMakeLists.txt

@@ -1,6 +0,0 @@
-set(COMPONENT_SRCDIRS ".")
-set(COMPONENT_ADD_INCLUDEDIRS ".")
-
-set(COMPONENT_REQUIRES unity http_server)
-
-register_component()