Skip to content

Commit

Permalink
Improve includes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Sep 16, 2022
1 parent af7ed5f commit dd597f7
Show file tree
Hide file tree
Showing 36 changed files with 47 additions and 33 deletions.
8 changes: 7 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@
"lwesp_ping.h": "c",
"lwesp_threads.h": "c",
"lwesp_int.h": "c",
"lwesp_sta.h": "c"
"lwesp_sta.h": "c",
"lwesp_mqtt_client_api.h": "c",
"lwesp_cayenne.h": "c",
"lwesp_http_server.h": "c",
"lwesp_apps.h": "c",
"lwesp_mqtt_client.h": "c",
"lwesp_mqtt_client_evt.h": "c"
},
"esbonio.sphinx.confDir": ""
}
3 changes: 1 addition & 2 deletions lwesp/src/apps/mqtt/lwesp_mqtt_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
* Version: v1.1.2-dev
*/
#include "lwesp/apps/lwesp_mqtt_client.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_pbuf.h"
#include "lwesp/lwesp.h"

/**
* \brief MQTT client connection
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/apps/mqtt/lwesp_mqtt_client_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* Version: v1.1.2-dev
*/
#include "lwesp/apps/lwesp_mqtt_client_api.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_private.h"

/* Tracing debug message */
#define LWESP_CFG_DBG_MQTT_API_TRACE (LWESP_CFG_DBG_MQTT_API | LWESP_DBG_TYPE_TRACE)
Expand Down
1 change: 1 addition & 0 deletions lwesp/src/include/lwesp/apps/lwesp_apps.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#ifndef LWESP_HDR_APPS_H
#define LWESP_HDR_APPS_H

#include "lwesp/lwesp_types.h"
#include "lwesp/lwesp.h"

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/apps/lwesp_cayenne_evt.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define LWESP_HDR_APP_CAYENNE_EVT_H

#include "lwesp/apps/lwesp_cayenne.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions lwesp/src/include/lwesp/apps/lwesp_http_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#define LWESP_HDR_HTTP_SERVER_H

#include "lwesp/apps/lwesp_apps.h"
#include "lwesp/lwesp.h"

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions lwesp/src/include/lwesp/apps/lwesp_http_server_fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#define LWESP_HDR_HTTP_SERVER_FS_H

#include "lwesp/apps/lwesp_http_server.h"
#include "lwesp/lwesp.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/apps/lwesp_mqtt_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define LWESP_HDR_APP_MQTT_CLIENT_H

#include "lwesp/apps/lwesp_mqtt_client_evt.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_includes.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_ap.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_AP_H
#define LWESP_HDR_AP_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_buff.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_BUFF_H
#define LWESP_HDR_BUFF_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_cli.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#ifndef LWESP_HDR_CLI_H
#define LWESP_HDR_CLI_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_conn.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_CONN_H
#define LWESP_HDR_CONN_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_dhcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_DHCP_H
#define LWESP_HDR_DHCP_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_DNS_H
#define LWESP_HDR_DNS_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_evt.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_EVT_H
#define LWESP_HDR_EVT_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_hostname.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_HOSTNAME_H
#define LWESP_HDR_HOSTNAME_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 1 addition & 0 deletions lwesp/src/include/lwesp/lwesp_includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#include "lwesp/lwesp_evt.h"
#include "lwesp/lwesp_input.h"
#include "lwesp/lwesp_pbuf.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp_server.h"
#include "lwesp/lwesp_utils.h"
#include "system/lwesp_sys.h"
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#define LWESP_HDR_INPUT_H

#include <string.h>
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_mdns.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_MDNS_H
#define LWESP_HDR_MDNS_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_MEM_H
#define LWESP_HDR_MEM_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_netconn.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_NETCONN_H
#define LWESP_HDR_NETCONN_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_PARSER_H
#define LWESP_HDR_PARSER_H

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

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_pbuf.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_PBUF_H
#define LWESP_HDR_PBUF_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_ping.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_PING_H
#define LWESP_HDR_PING_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
7 changes: 6 additions & 1 deletion lwesp/src/include/lwesp/lwesp_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,15 @@
#ifndef LWESP_HDR_PRIV_H
#define LWESP_HDR_PRIV_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_opt.h"
#include "lwesp/lwesp_types.h"
#include "lwesp/lwesp_debug.h"
#include "lwesp/lwesp_buff.h"
#include "lwesp/lwesp_mem.h"
#include "lwesp/lwesp.h"
#include "lwesp/lwesp_timeout.h"
#include "lwesp/lwesp_utils.h"
#include "lwesp/lwesp_includes.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_server.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_SERVER_H
#define LWESP_HDR_SERVER_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_smart.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#ifndef LWESP_HDR_SMART_H
#define LWESP_HDR_SMART_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_sntp.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_SNTP_H
#define LWESP_HDR_SNTP_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_sta.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_STA_H
#define LWESP_HDR_STA_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_THREADS_H
#define LWESP_HDR_THREADS_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_timeout.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_TIMEOUT_H
#define LWESP_HDR_TIMEOUT_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_unicode.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_UNICODE_H
#define LWESP_HDR_UNICODE_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_UTILS_H
#define LWESP_HDR_UTILS_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_webserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#ifndef LWESP_HDR_WEBSERVER_H
#define LWESP_HDR_WEBSERVER_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/lwesp/lwesp_wps.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_WPS_H
#define LWESP_HDR_WPS_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion lwesp/src/include/system/lwesp_ll.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#ifndef LWESP_HDR_LL_H
#define LWESP_HDR_LL_H

#include "lwesp/lwesp.h"
#include "lwesp/lwesp_types.h"

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit dd597f7

Please sign in to comment.