Skip to content

Commit

Permalink
Change include paths
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Sep 2, 2022
1 parent c2fed1a commit af3ad37
Show file tree
Hide file tree
Showing 28 changed files with 31 additions and 51 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
"lwesp_debug.h": "c",
"lwesp_utils.h": "c",
"stdlib.h": "c",
"lwesp_unicode.h": "c"
"lwesp_unicode.h": "c",
"lwesp_ping.h": "c",
"lwesp_threads.h": "c",
"lwesp_int.h": "c"
},
"esbonio.sphinx.confDir": ""
}
6 changes: 3 additions & 3 deletions lwesp/src/include/lwesp/lwesp_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@
#ifndef LWESP_HDR_PARSER_H
#define LWESP_HDR_PARSER_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_private.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_private.h"

int32_t lwespi_parse_number(const char** str);
uint8_t lwespi_parse_string(const char** src, char* dst, size_t dst_len, uint8_t trim);
uint8_t lwespi_parse_ip(const char** src, lwesp_ip_t* ip);
Expand Down
2 changes: 2 additions & 0 deletions lwesp/src/include/lwesp/lwesp_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_debug.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_timeout.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/lwesp/lwesp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_threads.h"
#include "lwesp/lwesp_timeout.h"
#include "system/lwesp_ll.h"
Expand Down
1 change: 0 additions & 1 deletion lwesp/src/lwesp/lwesp_ap.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_ap.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"

#if LWESP_CFG_MODE_ACCESS_POINT || __DOXYGEN__
Expand Down
1 change: 0 additions & 1 deletion lwesp/src/lwesp/lwesp_buff.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_buff.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"

/* --- Buffer unique part starts --- */
Expand Down
4 changes: 1 addition & 3 deletions lwesp/src/lwesp/lwesp_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_conn.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_timeout.h"
#include "lwesp/lwesp_conn.h"

/**
* \brief Check if connection is closed or in closing state
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_debug.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_debug.h"

#if LWESP_CFG_DBG || __DOXYGEN__

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_dhcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_dhcp.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_dhcp.h"

/**
* \brief Configure DHCP settings for station or access point (or both)
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_dns.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_dns.h"

#if LWESP_CFG_DNS || __DOXYGEN__

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_evt.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_evt.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_evt.h"

/**
* \brief Register event function for global (non-connection based) events
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_hostname.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_hostname.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_hostname.h"

#if LWESP_CFG_HOSTNAME || __DOXYGEN__

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_input.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_buff.h"
#include "lwesp/lwesp_private.h"

static uint32_t lwesp_recv_total_len;
static uint32_t lwesp_recv_calls;
Expand Down
2 changes: 0 additions & 2 deletions lwesp/src/lwesp/lwesp_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
*/
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_int.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_parser.h"
#include "lwesp/lwesp_unicode.h"
#include "system/lwesp_ll.h"
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_mdns.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_mdns.h"

#if LWESP_CFG_MDNS || __DOXYGEN__

Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/lwesp/lwesp_mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
* Version: v1.1.2-dev
*/
#include <limits.h>
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_mem.h"

#if !LWESP_CFG_MEM_CUSTOM || __DOXYGEN__

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_parser.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_parser.h"

/* Increase pointer if matches character value */
#define INC_IF_CHAR_EQUAL(p, ch) \
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_pbuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_pbuf.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_pbuf.h"

/* Set size of pbuf structure */
#define SIZEOF_PBUF_STRUCT LWESP_MEM_ALIGN(sizeof(lwesp_pbuf_t))
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_ping.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_ping.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_ping.h"

#if LWESP_CFG_PING || __DOXYGEN__

Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/lwesp/lwesp_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_server.h"

/**
* \brief Enables or disables server mode
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_smart.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_smart.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_smart.h"

#if LWESP_CFG_SMART || __DOXYGEN__

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_sntp.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_sntp.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_sntp.h"

#if LWESP_CFG_SNTP || __DOXYGEN__

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_sta.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_sta.h"

#if LWESP_CFG_MODE_STATION || __DOXYGEN__

Expand Down
5 changes: 1 addition & 4 deletions lwesp/src/lwesp/lwesp_threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_threads.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_int.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_parser.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_int.h"
#include "lwesp/lwesp_timeout.h"
#include "system/lwesp_sys.h"

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_timeout.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_timeout.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_timeout.h"

static lwesp_timeout_t* first_timeout;
static uint32_t last_timeout_time;
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/lwesp/lwesp_unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_unicode.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_unicode.h"

/**
* \brief Decode single character for unicode (UTF-8 only) format
Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_webserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@
* Author: Neo Xiong <xiongyu0523@gmail.com>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_webserver.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_webserver.h"

#if LWESP_CFG_WEBSERVER || __DOXYGEN__

Expand Down
3 changes: 1 addition & 2 deletions lwesp/src/lwesp/lwesp_wps.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@
* Author: Tilen MAJERLE <tilen@majerle.eu>
* Version: v1.1.2-dev
*/
#include "lwesp/lwesp_wps.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"
#include "lwesp/lwesp_wps.h"

#if LWESP_CFG_WPS || __DOXYGEN__

Expand Down

0 comments on commit af3ad37

Please sign in to comment.