[api] add OPENTHREAD prefix to public include guards (#2695)

This commit is contained in:
Martin Turon
2018-05-06 15:21:14 -07:00
committed by Jonathan Hui
parent e4f5aa89d0
commit 3a6cdd635d
18 changed files with 54 additions and 54 deletions
+3 -3
View File
@@ -32,8 +32,8 @@
* This file defines the top-level functions for the OpenThread CLI server.
*/
#ifndef CLI_H_
#define CLI_H_
#ifndef OPENTHREAD_CLI_H_
#define OPENTHREAD_CLI_H_
#include <stdarg.h>
#include <stdint.h>
@@ -152,4 +152,4 @@ void otCliPlatLogv(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFo
} // extern "C"
#endif
#endif
#endif // OPENTHREAD_CLI_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file defines the raw OpenThread IEEE 802.15.4 Link Layer API.
*/
#ifndef LINK_RAW_H_
#define LINK_RAW_H_
#ifndef OPENTHREAD_LINK_RAW_H_
#define OPENTHREAD_LINK_RAW_H_
#include <openthread/types.h>
#include <openthread/platform/radio.h>
@@ -329,4 +329,4 @@ otError otLinkRawSrcMatchClearExtEntries(otInstance *aInstance);
} // extern "C"
#endif
#endif // LINK_RAW_H_
#endif // OPENTHREAD_LINK_RAW_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file defines the top-level functions for the OpenThread NCP module.
*/
#ifndef NCP_H_
#define NCP_H_
#ifndef OPENTHREAD_NCP_H_
#define OPENTHREAD_NCP_H_
#include <stdarg.h>
#include <openthread/types.h>
@@ -221,4 +221,4 @@ void otNcpRegisterLegacyHandlers(const otNcpLegacyHandlers *aHandlers);
} // extern "C"
#endif
#endif
#endif // OPENTHREAD_NCP_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for the microsecond alarm service.
*/
#ifndef ALARM_MICRO_H_
#define ALARM_MICRO_H_
#ifndef OPENTHREAD_PLATFORM_ALARM_MICRO_H_
#define OPENTHREAD_PLATFORM_ALARM_MICRO_H_
#include <stdint.h>
@@ -92,4 +92,4 @@ extern void otPlatAlarmMicroFired(otInstance *aInstance);
} // extern "C"
#endif
#endif // ALARM_MICRO_H_
#endif // OPENTHREAD_PLATFORM_ALARM_MICRO_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for the millisecond alarm service.
*/
#ifndef ALARM_MILLI_H_
#define ALARM_MILLI_H_
#ifndef OPENTHREAD_PLATFORM_ALARM_MILLI_H_
#define OPENTHREAD_PLATFORM_ALARM_MILLI_H_
#include <stdint.h>
@@ -99,4 +99,4 @@ extern void otPlatDiagAlarmFired(otInstance *aInstance);
} // extern "C"
#endif
#endif // ALARM_MILLI_H_
#endif // OPENTHREAD_PLATFORM_ALARM_MILLI_H_
+3 -3
View File
@@ -26,8 +26,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef OPENTHREAD_PLATFORM_DEBUG_UART_H
#define OPENTHREAD_PLATFORM_DEBUG_UART_H
#ifndef OPENTHREAD_PLATFORM_DEBUG_UART_H_
#define OPENTHREAD_PLATFORM_DEBUG_UART_H_
#include <openthread/platform/logging.h>
@@ -191,4 +191,4 @@ otError otPlatDebugUart_logfile(const char *filename);
} // extern "C"
#endif
#endif // OPENTHREAD_PLATFORM_DEBUG_UART_H
#endif // OPENTHREAD_PLATFORM_DEBUG_UART_H_
+3 -3
View File
@@ -33,8 +33,8 @@
*
*/
#ifndef DIAG_H_
#define DIAG_H_
#ifndef OPENTHREAD_PLATFORM_DIAG_H_
#define OPENTHREAD_PLATFORM_DIAG_H_
#include <stddef.h>
#include <stdint.h>
@@ -127,4 +127,4 @@ void otPlatDiagAlarmCallback(otInstance *aInstance);
} // end of extern "C"
#endif
#endif
#endif // OPENTHREAD_PLATFORM_DIAG_H_
@@ -32,8 +32,8 @@
* This file defines the WPP Tracing Definitions.
*/
#ifndef _LOGGING_WINDOWS_H
#define _LOGGING_WINDOWS_H
#ifndef OPENTHREAD_PLATFORM_LOGGING_WINDOWS_H_
#define OPENTHREAD_PLATFORM_LOGGING_WINDOWS_H_
#define OPENTHREAD_ENABLE_CERT_LOG 1
@@ -583,4 +583,4 @@
// USESUFFIX(otLogFuncExitErr, " %!otError!", EXP);
// end_wpp
#endif // _LOGGING_WINDOWS_H
#endif // OPENTHREAD_PLATFORM_LOGGING_WINDOWS_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for the debug log service.
*/
#ifndef LOGGING_H_
#define LOGGING_H_
#ifndef OPENTHREAD_PLATFORM_LOGGING_H_
#define OPENTHREAD_PLATFORM_LOGGING_H_
#include <stdarg.h>
#include <stdint.h>
@@ -100,4 +100,4 @@ void otPlatLogv(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aForma
} // extern "C"
#endif
#endif // DEBUG_H_
#endif // OPENTHREAD_PLATFORM_LOGGING_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for dynamic memory allocation.
*/
#ifndef MEMORY_H_
#define MEMORY_H_
#ifndef OPENTHREAD_PLATFORM_MEMORY_H_
#define OPENTHREAD_PLATFORM_MEMORY_H_
#ifdef __cplusplus
extern "C" {
@@ -89,4 +89,4 @@ void otPlatFree(void *aPtr);
} // extern "C"
#endif
#endif // DEBUG_H_
#endif // OPENTHREAD_PLATFORM_MEMORY_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for the message pool.
*/
#ifndef MESSAGEPOOL_H_
#define MESSAGEPOOL_H_
#ifndef OPENTHREAD_PLATFORM_MESSAGEPOOL_H_
#define OPENTHREAD_PLATFORM_MESSAGEPOOL_H_
#include <stdint.h>
@@ -102,4 +102,4 @@ uint16_t otPlatMessagePoolNumFreeBuffers(otInstance *aInstance);
*
*/
#endif // MESSAGEPOOL_H_
#endif // OPENTHREAD_PLATFORM_MESSAGEPOOL_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes platform abstractions for miscellaneous behaviors.
*/
#ifndef OT_PLATFORM_MISC_H
#define OT_PLATFORM_MISC_H 1
#ifndef OPENTHREAD_PLATFORM_MISC_H_
#define OPENTHREAD_PLATFORM_MISC_H_
#include <stdint.h>
@@ -200,4 +200,4 @@ otPlatMcuPowerState otPlatGetMcuPowerState(otInstance *aInstance);
} // extern "C"
#endif
#endif // OT_PLATFORM_MISC_H
#endif // OPENTHREAD_PLATFORM_MISC_H_
+3 -3
View File
@@ -33,8 +33,8 @@
*
*/
#ifndef RADIO_H_
#define RADIO_H_
#ifndef OPENTHREAD_PLATFORM_RADIO_H_
#define OPENTHREAD_PLATFORM_RADIO_H_
#include <stdint.h>
@@ -558,4 +558,4 @@ int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance);
} // end of extern "C"
#endif
#endif // RADIO_H_
#endif // OPENTHREAD_PLATFORM_RADIO_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for random number generation.
*/
#ifndef RANDOM_H_
#define RANDOM_H_
#ifndef OPENTHREAD_PLATFORM_RANDOM_H_
#define OPENTHREAD_PLATFORM_RANDOM_H_
#include <stdint.h>
@@ -87,4 +87,4 @@ otError otPlatRandomGetTrue(uint8_t *aOutput, uint16_t aOutputLength);
} // end of extern "C"
#endif
#endif // RANDOM_H_
#endif // OPENTHREAD_PLATFORM_RANDOM_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes platform abstraction for non-volatile storage of settings.
*/
#ifndef OT_PLATFORM_SETTINGS_H
#define OT_PLATFORM_SETTINGS_H 1
#ifndef OPENTHREAD_PLATFORM_SETTINGS_H_
#define OPENTHREAD_PLATFORM_SETTINGS_H_
#include <openthread/types.h>
@@ -278,4 +278,4 @@ void otPlatSettingsWipe(otInstance *aInstance);
} // extern "C"
#endif
#endif // OT_PLATFORM_SETTINGS_H
#endif // OPENTHREAD_PLATFORM_SETTINGS_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for SPI slave communication.
*/
#ifndef SPI_SLAVE_H_
#define SPI_SLAVE_H_
#ifndef OPENTHREAD_PLATFORM_SPI_SLAVE_H_
#define OPENTHREAD_PLATFORM_SPI_SLAVE_H_
#include <stdint.h>
@@ -177,4 +177,4 @@ otError otPlatSpiSlavePrepareTransaction(uint8_t *aOutputBuf,
} // extern "C"
#endif
#endif // SPI_SLAVE_H_
#endif // OPENTHREAD_PLATFORM_SPI_SLAVE_H_
+3 -3
View File
@@ -54,8 +54,8 @@
*
*/
#ifndef TOOLCHAIN_H_
#define TOOLCHAIN_H_
#ifndef OPENTHREAD_PLATFORM_TOOLCHAIN_H_
#define OPENTHREAD_PLATFORM_TOOLCHAIN_H_
#ifdef __cplusplus
extern "C" {
@@ -279,4 +279,4 @@ extern "C" {
} // extern "C"
#endif
#endif // TOOLCHAIN_H_
#endif // OPENTHREAD_PLATFORM_TOOLCHAIN_H_
+3 -3
View File
@@ -32,8 +32,8 @@
* This file includes the platform abstraction for UART communication.
*/
#ifndef UART_H_
#define UART_H_
#ifndef OPENTHREAD_PLATFORM_UART_H_
#define OPENTHREAD_PLATFORM_UART_H_
#include <stdint.h>
@@ -107,4 +107,4 @@ extern void otPlatUartReceived(const uint8_t *aBuf, uint16_t aBufLength);
} // extern "C"
#endif
#endif // UART_H_
#endif // OPENTHREAD_PLATFORM_UART_H_