Skip to content

Commit

Permalink
Fixes indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbj29 committed Jan 17, 2024
1 parent 6708d43 commit c018b62
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 24 deletions.
8 changes: 6 additions & 2 deletions main/demo_tasks/ota_over_mqtt_demo/ota_over_mqtt_demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
#include "freertos/FreeRTOS.h"
#include "core_mqtt_agent.h"

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief Starts the OTA codesigning demo.
Expand All @@ -55,8 +57,10 @@
bool vOTAProcessMessage( void * pvIncomingPublishCallbackContext,
MQTTPublishInfo_t * pxPublishInfo );

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* OTA_OVER_MQTT_DEMO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
#include "qualification_wrapper_config.h"
#endif /* CONFIG_GRI_RUN_QUALIFICATION_TEST */

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief The thing name of the device.
Expand Down Expand Up @@ -97,8 +99,10 @@
#define APP_VERSION_MINOR ( CONFIG_GRI_OTA_DEMO_APP_VERSION_MINOR )
#define APP_VERSION_BUILD ( CONFIG_GRI_OTA_DEMO_APP_VERSION_BUILD )

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* OTA_OVER_MQTT_DEMO_CONFIG_H */
8 changes: 6 additions & 2 deletions main/demo_tasks/sub_pub_unsub_demo/sub_pub_unsub_demo.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,21 @@
#ifndef SUB_PUB_UNSUB_DEMO_H
#define SUB_PUB_UNSUB_DEMO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief This function starts the SubPubUnsub demo.
*/
void vStartSubscribePublishUnsubscribeDemo( void );

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* SUB_PUB_UNSUB_DEMO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
#include "qualification_wrapper_config.h"
#endif /* CONFIG_GRI_RUN_QUALIFICATION_TEST */

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief Size of statically allocated buffers for holding topic names and
Expand Down Expand Up @@ -79,8 +81,10 @@
*/
#define subpubunsubconfigTASK_STACK_SIZE ( ( unsigned int ) ( CONFIG_GRI_SUB_PUB_UNSUB_DEMO_TASK_STACK_SIZE ) )

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* SUB_PUB_UNSUB_DEMO_CONFIG_H */
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@
#ifndef APP_DRIVER_H_
#define APP_DRIVER_H_

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

#include "driver/temp_sensor.h"
#include "driver/gpio.h"
Expand All @@ -30,8 +32,10 @@

esp_err_t app_driver_led_off();

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* APP_DRIVER_H_ */
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,21 @@
#ifndef TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_H
#define TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_H

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief This function starts the Temp Sub Pub and LED Control demo.
*/
void vStartTempSubPubAndLEDControlDemo( void );

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_H */
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
/* ESP-IDF sdkconfig include. */
#include <sdkconfig.h>

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief Size of statically allocated buffers for holding topic names and
Expand Down Expand Up @@ -69,8 +71,10 @@
*/
#define temppubsubandledcontrolconfigTASK_STACK_SIZE ( ( unsigned int ) ( CONFIG_GRI_TEMPERATURE_PUB_SUB_AND_LED_CONTROL_DEMO_TASK_STACK_SIZE ) )

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* TEMP_SUB_PUB_AND_LED_CONTROL_DEMO_CONFIG_H */
8 changes: 6 additions & 2 deletions main/networking/mqtt/core_mqtt_agent_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@
#include "freertos/FreeRTOS.h"
#include "esp_event.h"

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief Register an event handler with coreMQTT-Agent events.
Expand Down Expand Up @@ -66,8 +68,10 @@
*/
BaseType_t xCoreMqttAgentManagerPost( int32_t lEventId );

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* CORE_MQTT_AGENT_NETWORK_MANAGER_H */
8 changes: 6 additions & 2 deletions main/networking/mqtt/core_mqtt_agent_manager_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
#include "qualification_wrapper_config.h"
#endif /* CONFIG_GRI_RUN_QUALIFICATION_TEST */

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief The thing name of the device.
Expand Down Expand Up @@ -104,8 +106,10 @@
*/
#define configMQTT_AGENT_TASK_PRIORITY ( CONFIG_GRI_MQTT_AGENT_TASK_PRIORITY )

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* CORE_MQTT_AGENT_MANAGER_CONFIG_H */
8 changes: 6 additions & 2 deletions main/networking/mqtt/core_mqtt_agent_manager_events.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@

#include "esp_event.h"

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

ESP_EVENT_DECLARE_BASE( CORE_MQTT_AGENT_EVENT );

Expand All @@ -43,8 +45,10 @@
CORE_MQTT_AGENT_OTA_STOPPED_EVENT
};

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* CORE_MQTT_AGENT_MANAGER_EVENTS_H */
8 changes: 6 additions & 2 deletions main/networking/mqtt/subscription_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,11 @@
#define SUBSCRIPTION_MANAGER_MAX_SUBSCRIPTIONS 10U
#endif

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/**
* @brief Callback function called when receiving a publish.
Expand Down Expand Up @@ -123,8 +125,10 @@
bool handleIncomingPublishes( SubscriptionElement_t * pxSubscriptionList,
MQTTPublishInfo_t * pxPublishInfo );

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

#endif /* SUBSCRIPTION_MANAGER_H */
8 changes: 6 additions & 2 deletions main/networking/wifi/app_wifi.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
#pragma once
#include <esp_err.h>

/* *INDENT-OFF* */
#ifdef __cplusplus
extern "C" {
extern "C" {
#endif
/* *INDENT-ON* */

/** Types of Proof of Possession */
typedef enum
Expand All @@ -28,6 +30,8 @@ esp_err_t app_wifi_connect();
bool app_wifi_is_connected();
void vWaitOnWifiConnected( void );

/* *INDENT-OFF* */
#ifdef __cplusplus
}
} /* extern "C" */
#endif
/* *INDENT-ON* */

0 comments on commit c018b62

Please sign in to comment.