diff --git a/.github/workflows/makefile-check.yml b/.github/workflows/makefile-check.yml index 1fdc01602..61b95fe99 100644 --- a/.github/workflows/makefile-check.yml +++ b/.github/workflows/makefile-check.yml @@ -58,3 +58,16 @@ jobs: - name: Check run: | script/check-core-makefiles + + header-guard-check: + runs-on: ubuntu-24.04 + steps: + - name: Harden Runner + uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 + with: + egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs + + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Check + run: | + script/check-header-guards diff --git a/include/openthread/ble_secure.h b/include/openthread/ble_secure.h index 9877ce37a..ef3482829 100644 --- a/include/openthread/ble_secure.h +++ b/include/openthread/ble_secure.h @@ -500,4 +500,4 @@ bool otBleSecureGetInstallCodeVerifyStatus(otInstance *aInstance); } // extern "C" #endif -#endif /* OPENTHREAD_BLE_SECURE_H_ */ +#endif // OPENTHREAD_BLE_SECURE_H_ diff --git a/include/openthread/coap.h b/include/openthread/coap.h index c0293a335..1f7748a86 100644 --- a/include/openthread/coap.h +++ b/include/openthread/coap.h @@ -1124,4 +1124,4 @@ static inline otError otCoapSendResponse(otInstance *aInstance, otMessage *aMess } // extern "C" #endif -#endif /* OPENTHREAD_COAP_H_ */ +#endif // OPENTHREAD_COAP_H_ diff --git a/include/openthread/coap_secure.h b/include/openthread/coap_secure.h index 17bf15fd2..da0b37000 100644 --- a/include/openthread/coap_secure.h +++ b/include/openthread/coap_secure.h @@ -416,4 +416,4 @@ otError otCoapSecureSendResponse(otInstance *aInstance, otMessage *aMessage, con } // extern "C" #endif -#endif /* OPENTHREAD_COAP_SECURE_H_ */ +#endif // OPENTHREAD_COAP_SECURE_H_ diff --git a/include/openthread/instance.h b/include/openthread/instance.h index b7c7dfa45..4f3c82371 100644 --- a/include/openthread/instance.h +++ b/include/openthread/instance.h @@ -52,7 +52,7 @@ extern "C" { * * @note This number versions both OpenThread platform and user APIs. */ -#define OPENTHREAD_API_VERSION (563) +#define OPENTHREAD_API_VERSION (564) /** * @addtogroup api-instance diff --git a/include/openthread/link_metrics.h b/include/openthread/link_metrics.h index db2c38d6a..c4cc945cf 100644 --- a/include/openthread/link_metrics.h +++ b/include/openthread/link_metrics.h @@ -32,8 +32,8 @@ * This file defines the OpenThread Link Metrics API. */ -#ifndef LINK_METRICS_H_ -#define LINK_METRICS_H_ +#ifndef OPENTHREAD_LINK_METRICS_H_ +#define OPENTHREAD_LINK_METRICS_H_ #include #include @@ -280,4 +280,4 @@ otError otLinkMetricsManagerGetMetricsValueByExtAddr(otInstance *aInsta } // extern "C" #endif -#endif // LINK_METRICS_H_ +#endif // OPENTHREAD_LINK_METRICS_H_ diff --git a/include/openthread/mdns.h b/include/openthread/mdns.h index a1b139a84..2c1342e77 100644 --- a/include/openthread/mdns.h +++ b/include/openthread/mdns.h @@ -32,8 +32,8 @@ * This file includes the mDNS related APIs. */ -#ifndef OPENTHREAD_MULTICAST_DNS_H_ -#define OPENTHREAD_MULTICAST_DNS_H_ +#ifndef OPENTHREAD_MDNS_H_ +#define OPENTHREAD_MDNS_H_ #include #include @@ -1111,4 +1111,4 @@ bool otMdnsIsVerboseLoggingEnabled(otInstance *aInstance); } // extern "C" #endif -#endif // OPENTHREAD_MULTICAST_DNS_H_ +#endif // OPENTHREAD_MDNS_H_ diff --git a/include/openthread/platform/border_routing.h b/include/openthread/platform/border_routing.h index 8e983ef09..018b186e8 100644 --- a/include/openthread/platform/border_routing.h +++ b/include/openthread/platform/border_routing.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for border routing manager. */ -#ifndef OPENTHREAD_PLATFORM_BORDER_ROUTER_H_ -#define OPENTHREAD_PLATFORM_BORDER_ROUTER_H_ +#ifndef OPENTHREAD_PLATFORM_BORDER_ROUTING_H_ +#define OPENTHREAD_PLATFORM_BORDER_ROUTING_H_ #include @@ -100,4 +100,4 @@ extern void otPlatBorderRoutingProcessDhcp6PdPrefix(otInstance } #endif -#endif // OPENTHREAD_PLATFORM_BORDER_ROUTER_H_ +#endif // OPENTHREAD_PLATFORM_BORDER_ROUTING_H_ diff --git a/include/openthread/platform/dns.h b/include/openthread/platform/dns.h index 594fd7895..a794756e5 100644 --- a/include/openthread/platform/dns.h +++ b/include/openthread/platform/dns.h @@ -123,4 +123,4 @@ extern void otPlatDnsUpstreamQueryDone(otInstance *aInstance, otPlatDnsUpstreamQ } #endif -#endif +#endif // OPENTHREAD_PLATFORM_DNS_H_ diff --git a/include/openthread/platform/mdns_socket.h b/include/openthread/platform/mdns_socket.h index db5922ab6..58ad3819a 100644 --- a/include/openthread/platform/mdns_socket.h +++ b/include/openthread/platform/mdns_socket.h @@ -32,8 +32,8 @@ * This file includes the platform abstraction for mDNS socket. */ -#ifndef OPENTHREAD_PLATFORM_MULTICAST_DNS_SOCKET_H_ -#define OPENTHREAD_PLATFORM_MULTICAST_DNS_SOCKET_H_ +#ifndef OPENTHREAD_PLATFORM_MDNS_SOCKET_H_ +#define OPENTHREAD_PLATFORM_MDNS_SOCKET_H_ #include #include @@ -226,4 +226,4 @@ extern void otPlatMdnsHandleHostAddressRemoveAll(otInstance *aInstance, uint32_t } // extern "C" #endif -#endif // OPENTHREAD_PLATFORM_MULTICAST_DNS_SOCKET_H_ +#endif // OPENTHREAD_PLATFORM_MDNS_SOCKET_H_ diff --git a/include/openthread/random_noncrypto.h b/include/openthread/random_noncrypto.h index fd103d882..c6458d2cf 100644 --- a/include/openthread/random_noncrypto.h +++ b/include/openthread/random_noncrypto.h @@ -32,8 +32,8 @@ * This file defines the OpenThread non cryptographic random number generator API. */ -#ifndef OPENTHREAD_RANDOM_H_ -#define OPENTHREAD_RANDOM_H_ +#ifndef OPENTHREAD_RANDOM_NONCRYPTO_H_ +#define OPENTHREAD_RANDOM_NONCRYPTO_H_ #include @@ -131,4 +131,4 @@ uint32_t otRandomNonCryptoAddJitter(uint32_t aValue, uint16_t aJitter); } // extern "C" #endif -#endif // OPENTHREAD_RANDOM_H_ +#endif // OPENTHREAD_RANDOM_NONCRYPTO_H_ diff --git a/include/openthread/tcat.h b/include/openthread/tcat.h index f0de079e9..2dce6e8e1 100644 --- a/include/openthread/tcat.h +++ b/include/openthread/tcat.h @@ -223,4 +223,4 @@ typedef void (*otHandleTcatJoin)(otError aError, void *aContext); } // extern "C" #endif -#endif /* OPENTHREAD_TCAT_H_ */ +#endif // OPENTHREAD_TCAT_H_ diff --git a/script/check-header-guards b/script/check-header-guards new file mode 100755 index 000000000..3664dfa45 --- /dev/null +++ b/script/check-header-guards @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Copyright (c) 2025, The OpenThread Authors. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of the copyright holder nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# + +set -euo pipefail + +die() +{ + echo >&2 "ERROR: $*" + exit 1 +} + +main() +{ + ./script/update-header-guards.py || die "Could not run ./script/update-header-guards - fix header guards" + + status=$(git status --porcelain) + + if [ -n "${status}" ]; then + die "Header guards are not properly formatted - run ./script/update-header-guards" + else + echo 'PASS: header-guard-check' + fi +} + +main "$@" diff --git a/script/update-header-guards.py b/script/update-header-guards.py new file mode 100755 index 000000000..6b5a8a3a0 --- /dev/null +++ b/script/update-header-guards.py @@ -0,0 +1,128 @@ +#!/usr/bin/env python3 +# +# Copyright (c) 2025, The OpenThread Authors. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# 3. Neither the name of the copyright holder nor the +# names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE +# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +# POSSIBILITY OF SUCH DAMAGE. +# + +# This script updates the header guards in .hpp and .h files within the `src` +# `include/openthread`, and `tests` directories. It ensures that header +# guards follow a consistent naming convention based on the file path. + +import os + +#---------------------------------------------------------------------------------------------- +# Helper functions + + +def get_header_file_list(path): + """Get a sorted list of full file names (with path) in a given `path` folder having either `.h` or `.hpp` extension""" + return sorted([ + "{}/{}".format(dir_path, file_name)[2:] + for dir_path, dir_names, file_names in os.walk('./' + path) + for file_name in file_names + if file_name.endswith('.hpp') or file_name.endswith('.h') + ]) + + +def read_txt_file(file_name): + """Read the content of a text file with name `file_name` and return content as a list of lines""" + with open(file_name, 'r') as file: + lines = file.readlines() + return lines + + +def write_txt_file(file_name, lines): + """Write a text file with name `file_name` with the content given as a list of `lines`""" + with open(file_name, 'w') as file: + file.writelines(lines) + + +def update_header_guard_in(file_name, replace_str, new_str): + """Update header guard in a given file. + + Args: + file_name (str): The name of the file to update. + replace_str (str): The prefix string to replace in the file path to generate header guard name + new_str (str): The new string to use as a prefix for the header guard. + """ + STATE_SEARCH = 1 + STATE_MATCH_START = 2 + STATE_DONE = 3 + + # Strip and replace the `replace_str` with `new_str`. + # Then replace '/','.', or `-` with '_', then format. + + guard_name = file_name.replace(replace_str, new_str, 1) + guard_name = guard_name.replace('/', '_').replace('-', '_').replace('.', '_').upper() + '_' + + lines = read_txt_file(file_name) + new_lines = [] + state = STATE_SEARCH + + for line in lines[:-1]: + if state == STATE_SEARCH: + if line.startswith('#ifndef '): + state = STATE_MATCH_START + line = '#ifndef ' + guard_name + '\n' + new_lines.append(line) + elif state == STATE_MATCH_START: + if not line.startswith('#define'): + raise RuntimeError('missing header guard #define in: {}'.format(file_name)) + line = '#define ' + guard_name + '\n' + new_lines.append(line) + state = STATE_DONE + else: + new_lines.append(line) + + if state != STATE_DONE: + raise RuntimeError('missing header guard #ifndef in: {}'.format(file_name)) + + if not lines[-1].startswith('#endif'): + raise RuntimeError('missing header guard #endif in: {}'.format(file_name)) + + new_lines.append('#endif // ' + guard_name + '\n') + + if new_lines != lines: + write_txt_file(file_name, new_lines) + print("- Updated {} ({})".format(file_name, guard_name)) + + +#---------------------------------------------------------------------------------------------- + +# Check and update header guards in various folders + +folders = [('src', 'OT'), ('include/openthread', 'OPENTHREAD'), ('tests', 'OT')] + +for folder in folders: + path = folder[0] + guard_prefix = folder[1] + + header_file_list = get_header_file_list(path) + + print('Updating header guards in ./{}/'.format(path)) + + for file_name in header_file_list: + update_header_guard_in(file_name, path, guard_prefix) diff --git a/src/cli/cli.hpp b/src/cli/cli.hpp index d2beeca7e..58c4ae8d0 100644 --- a/src/cli/cli.hpp +++ b/src/cli/cli.hpp @@ -31,8 +31,8 @@ * This file contains definitions for the CLI interpreter. */ -#ifndef CLI_HPP_ -#define CLI_HPP_ +#ifndef OT_CLI_CLI_HPP_ +#define OT_CLI_CLI_HPP_ #include "openthread-core-config.h" @@ -432,4 +432,4 @@ private: } // namespace Cli } // namespace ot -#endif // CLI_HPP_ +#endif // OT_CLI_CLI_HPP_ diff --git a/src/cli/cli_ba.hpp b/src/cli/cli_ba.hpp index 51b02624a..d5fc1e952 100644 --- a/src/cli/cli_ba.hpp +++ b/src/cli/cli_ba.hpp @@ -31,8 +31,8 @@ * This file contains definitions for CLI to Border Agent. */ -#ifndef CLI_BA_HPP_ -#define CLI_BA_HPP_ +#ifndef OT_CLI_CLI_BA_HPP_ +#define OT_CLI_CLI_BA_HPP_ #include "openthread-core-config.h" @@ -93,4 +93,4 @@ private: #endif // OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE -#endif // CLI_BA_HPP_ +#endif // OT_CLI_CLI_BA_HPP_ diff --git a/src/cli/cli_bbr.hpp b/src/cli/cli_bbr.hpp index f6b69379d..4c9af5934 100644 --- a/src/cli/cli_bbr.hpp +++ b/src/cli/cli_bbr.hpp @@ -31,8 +31,8 @@ * This file contains definitions for CLI to backbone router. */ -#ifndef CLI_BBR_HPP_ -#define CLI_BBR_HPP_ +#ifndef OT_CLI_CLI_BBR_HPP_ +#define OT_CLI_CLI_BBR_HPP_ #include "openthread-core-config.h" @@ -90,4 +90,4 @@ private: #endif // (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) -#endif // CLI_BBR_HPP_ +#endif // OT_CLI_CLI_BBR_HPP_ diff --git a/src/cli/cli_br.hpp b/src/cli/cli_br.hpp index 595e019ac..c75b351ac 100644 --- a/src/cli/cli_br.hpp +++ b/src/cli/cli_br.hpp @@ -31,8 +31,8 @@ * This file contains definitions for CLI to Border Router. */ -#ifndef CLI_BR_HPP_ -#define CLI_BR_HPP_ +#ifndef OT_CLI_CLI_BR_HPP_ +#define OT_CLI_CLI_BR_HPP_ #include "openthread-core-config.h" @@ -115,4 +115,4 @@ private: #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // CLI_BR_HPP_ +#endif // OT_CLI_CLI_BR_HPP_ diff --git a/src/cli/cli_coap.hpp b/src/cli/cli_coap.hpp index 48dc43b9a..f81ae2fa8 100644 --- a/src/cli/cli_coap.hpp +++ b/src/cli/cli_coap.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a simple CLI CoAP server and client. */ -#ifndef CLI_COAP_HPP_ -#define CLI_COAP_HPP_ +#ifndef OT_CLI_CLI_COAP_HPP_ +#define OT_CLI_CLI_COAP_HPP_ #include "openthread-core-config.h" @@ -189,4 +189,4 @@ private: #endif // OPENTHREAD_CONFIG_COAP_API_ENABLE -#endif // CLI_COAP_HPP_ +#endif // OT_CLI_CLI_COAP_HPP_ diff --git a/src/cli/cli_coap_secure.hpp b/src/cli/cli_coap_secure.hpp index 67058feea..403b27ba7 100644 --- a/src/cli/cli_coap_secure.hpp +++ b/src/cli/cli_coap_secure.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a simple CLI CoAP Secure server and client. */ -#ifndef CLI_COAP_SECURE_HPP_ -#define CLI_COAP_SECURE_HPP_ +#ifndef OT_CLI_CLI_COAP_SECURE_HPP_ +#define OT_CLI_CLI_COAP_SECURE_HPP_ #include "openthread-core-config.h" @@ -162,4 +162,4 @@ private: #endif // OPENTHREAD_CONFIG_COAP_SECURE_API_ENABLE -#endif // CLI_COAP_SECURE_HPP_ +#endif // OT_CLI_CLI_COAP_SECURE_HPP_ diff --git a/src/cli/cli_commissioner.hpp b/src/cli/cli_commissioner.hpp index 720d8731d..a86d25fe2 100644 --- a/src/cli/cli_commissioner.hpp +++ b/src/cli/cli_commissioner.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a simple CLI to control the Commissioner role. */ -#ifndef CLI_COMMISSIONER_HPP_ -#define CLI_COMMISSIONER_HPP_ +#ifndef OT_CLI_CLI_COMMISSIONER_HPP_ +#define OT_CLI_CLI_COMMISSIONER_HPP_ #include "openthread-core-config.h" @@ -110,4 +110,4 @@ private: #endif // OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD -#endif // CLI_COMMISSIONER_HPP_ +#endif // OT_CLI_CLI_COMMISSIONER_HPP_ diff --git a/src/cli/cli_config.h b/src/cli/cli_config.h index 8451c0e59..159ec4bba 100644 --- a/src/cli/cli_config.h +++ b/src/cli/cli_config.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the CLI service. */ -#ifndef CONFIG_CLI_H_ -#define CONFIG_CLI_H_ +#ifndef OT_CLI_CLI_CONFIG_H_ +#define OT_CLI_CLI_CONFIG_H_ #include "openthread-core-config.h" @@ -196,4 +196,4 @@ #define OPENTHREAD_CONFIG_CLI_BLE_SECURE_ENABLE 0 #endif -#endif // CONFIG_CLI_H_ +#endif // OT_CLI_CLI_CONFIG_H_ diff --git a/src/cli/cli_dataset.hpp b/src/cli/cli_dataset.hpp index 985f19d46..ae9cfe50c 100644 --- a/src/cli/cli_dataset.hpp +++ b/src/cli/cli_dataset.hpp @@ -31,8 +31,8 @@ * This file contains definitions for the CLI interpreter. */ -#ifndef CLI_DATASET_HPP_ -#define CLI_DATASET_HPP_ +#ifndef OT_CLI_CLI_DATASET_HPP_ +#define OT_CLI_CLI_DATASET_HPP_ #include "openthread-core-config.h" @@ -141,4 +141,4 @@ private: } // namespace Cli } // namespace ot -#endif // CLI_DATASET_HPP_ +#endif // OT_CLI_CLI_DATASET_HPP_ diff --git a/src/cli/cli_dns.hpp b/src/cli/cli_dns.hpp index 1edef305f..04579d21e 100644 --- a/src/cli/cli_dns.hpp +++ b/src/cli/cli_dns.hpp @@ -31,8 +31,8 @@ * This file contains definitions for CLI to DNS (client and resolver). */ -#ifndef CLI_DNS_HPP_ -#define CLI_DNS_HPP_ +#ifndef OT_CLI_CLI_DNS_HPP_ +#define OT_CLI_CLI_DNS_HPP_ #include "openthread-core-config.h" @@ -139,4 +139,4 @@ private: #endif // OPENTHREAD_CLI_DNS_ENABLE -#endif // CLI_DNS_HPP_ +#endif // OT_CLI_CLI_DNS_HPP_ diff --git a/src/cli/cli_history.hpp b/src/cli/cli_history.hpp index 760a44b32..1a17d8a97 100644 --- a/src/cli/cli_history.hpp +++ b/src/cli/cli_history.hpp @@ -31,8 +31,8 @@ * This file contains definitions for CLI to control History Tracker */ -#ifndef CLI_HISTORY_HPP_ -#define CLI_HISTORY_HPP_ +#ifndef OT_CLI_CLI_HISTORY_HPP_ +#define OT_CLI_CLI_HISTORY_HPP_ #include "openthread-core-config.h" @@ -133,4 +133,4 @@ private: #endif // OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE -#endif // CLI_HISTORY_HPP_ +#endif // OT_CLI_CLI_HISTORY_HPP_ diff --git a/src/cli/cli_joiner.hpp b/src/cli/cli_joiner.hpp index 370768444..938d7cde3 100644 --- a/src/cli/cli_joiner.hpp +++ b/src/cli/cli_joiner.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a simple CLI to control the Joiner role. */ -#ifndef CLI_JOINER_HPP_ -#define CLI_JOINER_HPP_ +#ifndef OT_CLI_CLI_JOINER_HPP_ +#define OT_CLI_CLI_JOINER_HPP_ #include "openthread-core-config.h" @@ -89,4 +89,4 @@ private: #endif // OPENTHREAD_CONFIG_JOINER_ENABLE -#endif // CLI_JOINER_HPP_ +#endif // OT_CLI_CLI_JOINER_HPP_ diff --git a/src/cli/cli_link_metrics.hpp b/src/cli/cli_link_metrics.hpp index 8b777e18a..c2ef0e7d8 100644 --- a/src/cli/cli_link_metrics.hpp +++ b/src/cli/cli_link_metrics.hpp @@ -31,8 +31,8 @@ * This file contains definitions for the CLI interpreter for Link Metrics function. */ -#ifndef CLI_LINK_METRICS_HPP_ -#define CLI_LINK_METRICS_HPP_ +#ifndef OT_CLI_CLI_LINK_METRICS_HPP_ +#define OT_CLI_CLI_LINK_METRICS_HPP_ #include "openthread-core-config.h" @@ -127,4 +127,4 @@ private: #endif // OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE -#endif // CLI_LINK_METRICS_HPP_ +#endif // OT_CLI_CLI_LINK_METRICS_HPP_ diff --git a/src/cli/cli_mac_filter.hpp b/src/cli/cli_mac_filter.hpp index 1ceb1058f..1be1f0e53 100644 --- a/src/cli/cli_mac_filter.hpp +++ b/src/cli/cli_mac_filter.hpp @@ -31,8 +31,8 @@ * This file contains definitions for CLI to MAC Filter. */ -#ifndef CLI_MAC_FILTER_HPP_ -#define CLI_MAC_FILTER_HPP_ +#ifndef OT_CLI_CLI_MAC_FILTER_HPP_ +#define OT_CLI_CLI_MAC_FILTER_HPP_ #include "openthread-core-config.h" @@ -98,4 +98,4 @@ private: #endif // OPENTHREAD_CLI_DNS_ENABLE -#endif // CLI_MAC_FILTER_HPP_ +#endif // OT_CLI_CLI_MAC_FILTER_HPP_ diff --git a/src/cli/cli_mdns.hpp b/src/cli/cli_mdns.hpp index 1b8555cab..f043998d9 100644 --- a/src/cli/cli_mdns.hpp +++ b/src/cli/cli_mdns.hpp @@ -31,8 +31,8 @@ * This file contains definitions for CLI to DNS (client and resolver). */ -#ifndef CLI_MDNS_HPP_ -#define CLI_MDNS_HPP_ +#ifndef OT_CLI_CLI_MDNS_HPP_ +#define OT_CLI_CLI_MDNS_HPP_ #include "openthread-core-config.h" @@ -140,4 +140,4 @@ private: #endif // OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE && OPENTHREAD_CONFIG_MULTICAST_DNS_PUBLIC_API_ENABLE -#endif // CLI_MDNS_HPP_ +#endif // OT_CLI_CLI_MDNS_HPP_ diff --git a/src/cli/cli_mesh_diag.hpp b/src/cli/cli_mesh_diag.hpp index 23410af2a..e5ef00822 100644 --- a/src/cli/cli_mesh_diag.hpp +++ b/src/cli/cli_mesh_diag.hpp @@ -31,8 +31,8 @@ * This file contains definitions for the CLI interpreter for Mesh Diagnostics function. */ -#ifndef CLI_MESH_DIAG_HPP_ -#define CLI_MESH_DIAG_HPP_ +#ifndef OT_CLI_CLI_MESH_DIAG_HPP_ +#define OT_CLI_CLI_MESH_DIAG_HPP_ #include "openthread-core-config.h" @@ -113,4 +113,4 @@ private: #endif // OPENTHREAD_CONFIG_MESH_DIAG_ENABLE && OPENTHREAD_FTD -#endif // CLI_MESH_DIAG_HPP_ +#endif // OT_CLI_CLI_MESH_DIAG_HPP_ diff --git a/src/cli/cli_network_data.hpp b/src/cli/cli_network_data.hpp index 47d71de4c..af98eb00f 100644 --- a/src/cli/cli_network_data.hpp +++ b/src/cli/cli_network_data.hpp @@ -31,8 +31,8 @@ * This file contains definitions for Network Data CLI commands. */ -#ifndef CLI_NETWORK_DATA_HPP_ -#define CLI_NETWORK_DATA_HPP_ +#ifndef OT_CLI_CLI_NETWORK_DATA_HPP_ +#define OT_CLI_CLI_NETWORK_DATA_HPP_ #include "openthread-core-config.h" @@ -144,4 +144,4 @@ private: } // namespace Cli } // namespace ot -#endif // CLI_NETWORK_DATA_HPP_ +#endif // OT_CLI_CLI_NETWORK_DATA_HPP_ diff --git a/src/cli/cli_ping.hpp b/src/cli/cli_ping.hpp index 2cd20c0ca..5e36d8558 100644 --- a/src/cli/cli_ping.hpp +++ b/src/cli/cli_ping.hpp @@ -31,8 +31,8 @@ * This file contains definitions for the CLI interpreter for Ping Sneder function. */ -#ifndef CLI_PING_SENDER_HPP_ -#define CLI_PING_SENDER_HPP_ +#ifndef OT_CLI_CLI_PING_HPP_ +#define OT_CLI_CLI_PING_HPP_ #include "openthread-core-config.h" @@ -91,4 +91,4 @@ private: #endif // OPENTHREAD_CONFIG_PING_SENDER_ENABLE -#endif // CLI_PING_SENDER_HPP_ +#endif // OT_CLI_CLI_PING_HPP_ diff --git a/src/cli/cli_srp_client.hpp b/src/cli/cli_srp_client.hpp index c3f832a14..cb6a6c487 100644 --- a/src/cli/cli_srp_client.hpp +++ b/src/cli/cli_srp_client.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a simple CLI to control SRP Client. */ -#ifndef CLI_SRP_CLIENT_HPP_ -#define CLI_SRP_CLIENT_HPP_ +#ifndef OT_CLI_CLI_SRP_CLIENT_HPP_ +#define OT_CLI_CLI_SRP_CLIENT_HPP_ #include "openthread-core-config.h" @@ -106,4 +106,4 @@ private: #endif // OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE -#endif // CLI_SRP_CLIENT_HPP_ +#endif // OT_CLI_CLI_SRP_CLIENT_HPP_ diff --git a/src/cli/cli_srp_server.hpp b/src/cli/cli_srp_server.hpp index aceae84db..c05fa92dc 100644 --- a/src/cli/cli_srp_server.hpp +++ b/src/cli/cli_srp_server.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a simple CLI to control the SRP server. */ -#ifndef CLI_SRP_SERVER_HPP_ -#define CLI_SRP_SERVER_HPP_ +#ifndef OT_CLI_CLI_SRP_SERVER_HPP_ +#define OT_CLI_CLI_SRP_SERVER_HPP_ #include "openthread-core-config.h" @@ -90,4 +90,4 @@ private: #endif // OPENTHREAD_CONFIG_SRP_SERVER_ENABLE -#endif // CLI_SRP_SERVER_HPP_ +#endif // OT_CLI_CLI_SRP_SERVER_HPP_ diff --git a/src/cli/cli_tcat.hpp b/src/cli/cli_tcat.hpp index 5523a4257..9af00e58d 100644 --- a/src/cli/cli_tcat.hpp +++ b/src/cli/cli_tcat.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef CLI_TCAT_HPP_ -#define CLI_TCAT_HPP_ +#ifndef OT_CLI_CLI_TCAT_HPP_ +#define OT_CLI_CLI_TCAT_HPP_ #include "openthread-core-config.h" @@ -87,4 +87,4 @@ private: #endif // OPENTHREAD_CONFIG_BLE_TCAT_ENABLE && OPENTHREAD_CONFIG_CLI_BLE_SECURE_ENABLE -#endif // CLI_TCAT_HPP_ +#endif // OT_CLI_CLI_TCAT_HPP_ diff --git a/src/cli/cli_tcp.hpp b/src/cli/cli_tcp.hpp index 98b0f84de..52db17633 100644 --- a/src/cli/cli_tcp.hpp +++ b/src/cli/cli_tcp.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a TCP CLI tool. */ -#ifndef CLI_TCP_EXAMPLE_HPP_ -#define CLI_TCP_EXAMPLE_HPP_ +#ifndef OT_CLI_CLI_TCP_HPP_ +#define OT_CLI_CLI_TCP_HPP_ #include "openthread-core-config.h" @@ -222,4 +222,4 @@ private: } // namespace Cli } // namespace ot -#endif // CLI_TCP_EXAMPLE_HPP_ +#endif // OT_CLI_CLI_TCP_HPP_ diff --git a/src/cli/cli_udp.hpp b/src/cli/cli_udp.hpp index ded6e8309..8e5134d55 100644 --- a/src/cli/cli_udp.hpp +++ b/src/cli/cli_udp.hpp @@ -31,8 +31,8 @@ * This file contains definitions for a simple CLI CoAP server and client. */ -#ifndef CLI_UDP_EXAMPLE_HPP_ -#define CLI_UDP_EXAMPLE_HPP_ +#ifndef OT_CLI_CLI_UDP_HPP_ +#define OT_CLI_CLI_UDP_HPP_ #include "openthread-core-config.h" @@ -88,4 +88,4 @@ private: } // namespace Cli } // namespace ot -#endif // CLI_UDP_EXAMPLE_HPP_ +#endif // OT_CLI_CLI_UDP_HPP_ diff --git a/src/cli/cli_utils.hpp b/src/cli/cli_utils.hpp index d4cf96189..f92579f6a 100644 --- a/src/cli/cli_utils.hpp +++ b/src/cli/cli_utils.hpp @@ -31,8 +31,8 @@ * This file contains definitions for the CLI util functions. */ -#ifndef CLI_UTILS_HPP_ -#define CLI_UTILS_HPP_ +#ifndef OT_CLI_CLI_UTILS_HPP_ +#define OT_CLI_CLI_UTILS_HPP_ #include "openthread-core-config.h" @@ -792,4 +792,4 @@ exit: } // namespace Cli } // namespace ot -#endif // CLI_UTILS_HPP_ +#endif // OT_CLI_CLI_UTILS_HPP_ diff --git a/src/cli/x509_cert_key.hpp b/src/cli/x509_cert_key.hpp index d59fab80e..63d263cdd 100644 --- a/src/cli/x509_cert_key.hpp +++ b/src/cli/x509_cert_key.hpp @@ -33,8 +33,8 @@ * CoAP Secure use with cipher suite ECDHE_ECDSA_WITH_AES_128_CCM8. */ -#ifndef SRC_CLI_X509_CERT_KEY_HPP_ -#define SRC_CLI_X509_CERT_KEY_HPP_ +#ifndef OT_CLI_X509_CERT_KEY_HPP_ +#define OT_CLI_X509_CERT_KEY_HPP_ #ifdef __cplusplus extern "C" { @@ -113,4 +113,4 @@ extern "C" { } // extern "C" #endif -#endif /* SRC_CLI_X509_CERT_KEY_HPP_ */ +#endif // OT_CLI_X509_CERT_KEY_HPP_ diff --git a/src/core/backbone_router/backbone_tmf.hpp b/src/core/backbone_router/backbone_tmf.hpp index d20906a1d..d05639242 100644 --- a/src/core/backbone_router/backbone_tmf.hpp +++ b/src/core/backbone_router/backbone_tmf.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Backbone TMF functionality. */ -#ifndef OT_CORE_THREAD_BACKBONE_TMF_HPP_ -#define OT_CORE_THREAD_BACKBONE_TMF_HPP_ +#ifndef OT_CORE_BACKBONE_ROUTER_BACKBONE_TMF_HPP_ +#define OT_CORE_BACKBONE_ROUTER_BACKBONE_TMF_HPP_ #include "openthread-core-config.h" @@ -104,4 +104,4 @@ private: #endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE -#endif // OT_CORE_THREAD_BACKBONE_TMF_HPP_ +#endif // OT_CORE_BACKBONE_ROUTER_BACKBONE_TMF_HPP_ diff --git a/src/core/backbone_router/bbr_leader.hpp b/src/core/backbone_router/bbr_leader.hpp index 6503f40b6..f00d94faa 100644 --- a/src/core/backbone_router/bbr_leader.hpp +++ b/src/core/backbone_router/bbr_leader.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Primary Backbone Router service management in the Thread Network. */ -#ifndef BACKBONE_ROUTER_LEADER_HPP_ -#define BACKBONE_ROUTER_LEADER_HPP_ +#ifndef OT_CORE_BACKBONE_ROUTER_BBR_LEADER_HPP_ +#define OT_CORE_BACKBONE_ROUTER_BBR_LEADER_HPP_ #include "openthread-core-config.h" @@ -200,4 +200,4 @@ private: #endif // (OPENTHREAD_CONFIG_THREAD_VERSION >= OT_THREAD_VERSION_1_2) -#endif // BACKBONE_ROUTER_LEADER_HPP_ +#endif // OT_CORE_BACKBONE_ROUTER_BBR_LEADER_HPP_ diff --git a/src/core/backbone_router/bbr_local.hpp b/src/core/backbone_router/bbr_local.hpp index 1c42e5f85..6079343e3 100644 --- a/src/core/backbone_router/bbr_local.hpp +++ b/src/core/backbone_router/bbr_local.hpp @@ -31,8 +31,8 @@ * This file includes definitions for local Backbone Router service. */ -#ifndef BACKBONE_ROUTER_LOCAL_HPP_ -#define BACKBONE_ROUTER_LOCAL_HPP_ +#ifndef OT_CORE_BACKBONE_ROUTER_BBR_LOCAL_HPP_ +#define OT_CORE_BACKBONE_ROUTER_BBR_LOCAL_HPP_ #include "openthread-core-config.h" @@ -309,4 +309,4 @@ DefineMapEnum(otBackboneRouterState, BackboneRouter::Local::State); #endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE -#endif // BACKBONE_ROUTER_LOCAL_HPP_ +#endif // OT_CORE_BACKBONE_ROUTER_BBR_LOCAL_HPP_ diff --git a/src/core/backbone_router/bbr_manager.hpp b/src/core/backbone_router/bbr_manager.hpp index f8d8287ec..0db039525 100644 --- a/src/core/backbone_router/bbr_manager.hpp +++ b/src/core/backbone_router/bbr_manager.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Backbone Router management. */ -#ifndef BACKBONE_ROUTER_MANAGER_HPP_ -#define BACKBONE_ROUTER_MANAGER_HPP_ +#ifndef OT_CORE_BACKBONE_ROUTER_BBR_MANAGER_HPP_ +#define OT_CORE_BACKBONE_ROUTER_BBR_MANAGER_HPP_ #include "openthread-core-config.h" @@ -260,4 +260,4 @@ DeclareTmfHandler(Manager, kUriBackboneAnswer); #endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE -#endif // BACKBONE_ROUTER_MANAGER_HPP_ +#endif // OT_CORE_BACKBONE_ROUTER_BBR_MANAGER_HPP_ diff --git a/src/core/backbone_router/multicast_listeners_table.hpp b/src/core/backbone_router/multicast_listeners_table.hpp index 27716bf91..880832c8e 100644 --- a/src/core/backbone_router/multicast_listeners_table.hpp +++ b/src/core/backbone_router/multicast_listeners_table.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Multicast Listeners Table. */ -#ifndef MULTICAST_LISTENERS_TABLE_HPP -#define MULTICAST_LISTENERS_TABLE_HPP +#ifndef OT_CORE_BACKBONE_ROUTER_MULTICAST_LISTENERS_TABLE_HPP_ +#define OT_CORE_BACKBONE_ROUTER_MULTICAST_LISTENERS_TABLE_HPP_ #include "openthread-core-config.h" @@ -231,4 +231,4 @@ DefineMapEnum(otBackboneRouterMulticastListenerEvent, BackboneRouter::MulticastL #endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_MULTICAST_ROUTING_ENABLE -#endif // MULTICAST_LISTENERS_TABLE_HPP +#endif // OT_CORE_BACKBONE_ROUTER_MULTICAST_LISTENERS_TABLE_HPP_ diff --git a/src/core/backbone_router/ndproxy_table.hpp b/src/core/backbone_router/ndproxy_table.hpp index 42ee7243f..29b5cf425 100644 --- a/src/core/backbone_router/ndproxy_table.hpp +++ b/src/core/backbone_router/ndproxy_table.hpp @@ -30,8 +30,8 @@ * This file includes definitions for NdProxy Table on Thread Backbone Border Router. */ -#ifndef NDPROXY_TABLE_HPP_ -#define NDPROXY_TABLE_HPP_ +#ifndef OT_CORE_BACKBONE_ROUTER_NDPROXY_TABLE_HPP_ +#define OT_CORE_BACKBONE_ROUTER_NDPROXY_TABLE_HPP_ #include "openthread-core-config.h" @@ -305,4 +305,4 @@ DefineMapEnum(otBackboneRouterNdProxyEvent, BackboneRouter::NdProxyTable::NdProx #endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_BACKBONE_ROUTER_DUA_NDPROXYING_ENABLE -#endif // NDPROXY_TABLE_HPP_ +#endif // OT_CORE_BACKBONE_ROUTER_NDPROXY_TABLE_HPP_ diff --git a/src/core/border_router/br_log.hpp b/src/core/border_router/br_log.hpp index a9f5572af..baf8d18ca 100644 --- a/src/core/border_router/br_log.hpp +++ b/src/core/border_router/br_log.hpp @@ -31,8 +31,8 @@ * This file includes common Border Router logging helper functions. */ -#ifndef BR_LOG_HPP_ -#define BR_LOG_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_BR_LOG_HPP_ +#define OT_CORE_BORDER_ROUTER_BR_LOG_HPP_ #include "openthread-core-config.h" @@ -111,4 +111,4 @@ inline void LogRecursiveDnsServerOption(const Ip6::Address &, uint32_t) {} #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // BR_LOG_HPP_ +#endif // OT_CORE_BORDER_ROUTER_BR_LOG_HPP_ diff --git a/src/core/border_router/br_tracker.hpp b/src/core/border_router/br_tracker.hpp index af4888917..aafdac410 100644 --- a/src/core/border_router/br_tracker.hpp +++ b/src/core/border_router/br_tracker.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef BR_TRACKER_HPP_ -#define BR_TRACKER_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_BR_TRACKER_HPP_ +#define OT_CORE_BORDER_ROUTER_BR_TRACKER_HPP_ #include "openthread-core-config.h" @@ -142,4 +142,4 @@ private: #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // BR_TRACKER_HPP_ +#endif // OT_CORE_BORDER_ROUTER_BR_TRACKER_HPP_ diff --git a/src/core/border_router/br_types.hpp b/src/core/border_router/br_types.hpp index 2be6a92de..10a048102 100644 --- a/src/core/border_router/br_types.hpp +++ b/src/core/border_router/br_types.hpp @@ -31,8 +31,8 @@ * This file includes common type definitions for Border Router modules. */ -#ifndef BR_TYPES_HPP_ -#define BR_TYPES_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_BR_TYPES_HPP_ +#define OT_CORE_BORDER_ROUTER_BR_TYPES_HPP_ #include "openthread-core-config.h" @@ -671,4 +671,4 @@ TimeMilli CalculateClampedExpirationTime(TimeMilli aUpdateTime, uint32_t aLifeti #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // BR_TYPES_HPP_ +#endif // OT_CORE_BORDER_ROUTER_BR_TYPES_HPP_ diff --git a/src/core/border_router/dhcp6_pd_client.hpp b/src/core/border_router/dhcp6_pd_client.hpp index 8cec296de..5ba898e21 100644 --- a/src/core/border_router/dhcp6_pd_client.hpp +++ b/src/core/border_router/dhcp6_pd_client.hpp @@ -31,8 +31,8 @@ * This file includes definitions for DHCPv6 Prefix Delegation (PD) Client. */ -#ifndef DHCP6_PD_CLIENT_HPP_ -#define DHCP6_PD_CLIENT_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_DHCP6_PD_CLIENT_HPP_ +#define OT_CORE_BORDER_ROUTER_DHCP6_PD_CLIENT_HPP_ #include "openthread-core-config.h" @@ -274,4 +274,4 @@ private: #endif // OT_CONFIG_DHCP6_PD_CLIENT_ENABLE -#endif // DHCP6_PD_CLIENT_HPP_ +#endif // OT_CORE_BORDER_ROUTER_DHCP6_PD_CLIENT_HPP_ diff --git a/src/core/border_router/infra_if.hpp b/src/core/border_router/infra_if.hpp index 1f1aed7f0..0b4dd715b 100644 --- a/src/core/border_router/infra_if.hpp +++ b/src/core/border_router/infra_if.hpp @@ -31,8 +31,8 @@ * This file includes definitions for infrastructure network interface. */ -#ifndef INFRA_IF_HPP_ -#define INFRA_IF_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_INFRA_IF_HPP_ +#define OT_CORE_BORDER_ROUTER_INFRA_IF_HPP_ #include "openthread-core-config.h" @@ -242,4 +242,4 @@ private: #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // INFRA_IF_HPP_ +#endif // OT_CORE_BORDER_ROUTER_INFRA_IF_HPP_ diff --git a/src/core/border_router/multi_ail_detector.hpp b/src/core/border_router/multi_ail_detector.hpp index 27e79a1c6..22fd3952f 100644 --- a/src/core/border_router/multi_ail_detector.hpp +++ b/src/core/border_router/multi_ail_detector.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the multi AIL detector. */ -#ifndef MULTI_AIL_DETECTOR_HPP_ -#define MULTI_AIL_DETECTOR_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_MULTI_AIL_DETECTOR_HPP_ +#define OT_CORE_BORDER_ROUTER_MULTI_AIL_DETECTOR_HPP_ #include "openthread-core-config.h" @@ -189,4 +189,4 @@ private: #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE && OPENTHREAD_CONFIG_BORDER_ROUTING_MULTI_AIL_DETECTION_ENABLE -#endif // MULTI_AIL_DETECTOR_HPP_ +#endif // OT_CORE_BORDER_ROUTER_MULTI_AIL_DETECTOR_HPP_ diff --git a/src/core/border_router/routing_manager.hpp b/src/core/border_router/routing_manager.hpp index 509a327f6..85bc446d7 100644 --- a/src/core/border_router/routing_manager.hpp +++ b/src/core/border_router/routing_manager.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the RA-based routing management. */ -#ifndef ROUTING_MANAGER_HPP_ -#define ROUTING_MANAGER_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_ROUTING_MANAGER_HPP_ +#define OT_CORE_BORDER_ROUTER_ROUTING_MANAGER_HPP_ #include "openthread-core-config.h" @@ -1087,4 +1087,4 @@ DefineMapEnum(otBorderRoutingDhcp6PdState, BorderRouter::RoutingManager::Dhcp6Pd #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // ROUTING_MANAGER_HPP_ +#endif // OT_CORE_BORDER_ROUTER_ROUTING_MANAGER_HPP_ diff --git a/src/core/border_router/rx_ra_tracker.hpp b/src/core/border_router/rx_ra_tracker.hpp index 0b595abc1..350780c2b 100644 --- a/src/core/border_router/rx_ra_tracker.hpp +++ b/src/core/border_router/rx_ra_tracker.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Received RA Tracker. */ -#ifndef RX_RA_TRACKER_HPP_ -#define RX_RA_TRACKER_HPP_ +#ifndef OT_CORE_BORDER_ROUTER_RX_RA_TRACKER_HPP_ +#define OT_CORE_BORDER_ROUTER_RX_RA_TRACKER_HPP_ #include "openthread-core-config.h" @@ -696,4 +696,4 @@ template <> void RxRaTracker::Entry::Free(void); #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // RX_RA_TRACKER_HPP_ +#endif // OT_CORE_BORDER_ROUTER_RX_RA_TRACKER_HPP_ diff --git a/src/core/coap/coap.hpp b/src/core/coap/coap.hpp index c352921a1..d89f2806a 100644 --- a/src/core/coap/coap.hpp +++ b/src/core/coap/coap.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef COAP_HPP_ -#define COAP_HPP_ +#ifndef OT_CORE_COAP_COAP_HPP_ +#define OT_CORE_COAP_COAP_HPP_ #include "openthread-core-config.h" @@ -969,4 +969,4 @@ DefineCoreType(otCoapBlockwiseResource, Coap::ResourceBlockWise); } // namespace ot -#endif // COAP_HPP_ +#endif // OT_CORE_COAP_COAP_HPP_ diff --git a/src/core/coap/coap_message.hpp b/src/core/coap/coap_message.hpp index ec3ffbc21..f0a3d84ac 100644 --- a/src/core/coap/coap_message.hpp +++ b/src/core/coap/coap_message.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing CoAP messages. */ -#ifndef COAP_HEADER_HPP_ -#define COAP_HEADER_HPP_ +#ifndef OT_CORE_COAP_COAP_MESSAGE_HPP_ +#define OT_CORE_COAP_COAP_MESSAGE_HPP_ #include "openthread-core-config.h" @@ -1232,4 +1232,4 @@ inline const Coap::Message *AsCoapMessagePtr(const otMessage *aMessage) } // namespace ot -#endif // COAP_HEADER_HPP_ +#endif // OT_CORE_COAP_COAP_MESSAGE_HPP_ diff --git a/src/core/coap/coap_secure.hpp b/src/core/coap/coap_secure.hpp index 4ac022621..86fa61012 100644 --- a/src/core/coap/coap_secure.hpp +++ b/src/core/coap/coap_secure.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef COAP_SECURE_HPP_ -#define COAP_SECURE_HPP_ +#ifndef OT_CORE_COAP_COAP_SECURE_HPP_ +#define OT_CORE_COAP_COAP_SECURE_HPP_ #include "openthread-core-config.h" @@ -169,4 +169,4 @@ private: #endif // OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE -#endif // COAP_SECURE_HPP_ +#endif // OT_CORE_COAP_COAP_SECURE_HPP_ diff --git a/src/core/common/appender.hpp b/src/core/common/appender.hpp index 9f54b1408..56a50484f 100644 --- a/src/core/common/appender.hpp +++ b/src/core/common/appender.hpp @@ -31,8 +31,8 @@ * This file defines OpenThread `Appender` class. */ -#ifndef APPENDER_HPP_ -#define APPENDER_HPP_ +#ifndef OT_CORE_COMMON_APPENDER_HPP_ +#define OT_CORE_COMMON_APPENDER_HPP_ #include "openthread-core-config.h" @@ -169,4 +169,4 @@ private: } // namespace ot -#endif // APPENDER_HPP_ +#endif // OT_CORE_COMMON_APPENDER_HPP_ diff --git a/src/core/common/array.hpp b/src/core/common/array.hpp index f32772cb4..d307a600b 100644 --- a/src/core/common/array.hpp +++ b/src/core/common/array.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a generic array. */ -#ifndef ARRAY_HPP_ -#define ARRAY_HPP_ +#ifndef OT_CORE_COMMON_ARRAY_HPP_ +#define OT_CORE_COMMON_ARRAY_HPP_ #include "openthread-core-config.h" @@ -571,4 +571,4 @@ private: } // namespace ot -#endif // ARRAY_HPP_ +#endif // OT_CORE_COMMON_ARRAY_HPP_ diff --git a/src/core/common/as_core_type.hpp b/src/core/common/as_core_type.hpp index d10db1dfe..4788bd8d1 100644 --- a/src/core/common/as_core_type.hpp +++ b/src/core/common/as_core_type.hpp @@ -31,8 +31,8 @@ * This file includes helper functions to convert between public OT C structs and corresponding core C++ classes. */ -#ifndef AS_CORE_TYPE_HPP_ -#define AS_CORE_TYPE_HPP_ +#ifndef OT_CORE_COMMON_AS_CORE_TYPE_HPP_ +#define OT_CORE_COMMON_AS_CORE_TYPE_HPP_ #include "openthread-core-config.h" @@ -157,4 +157,4 @@ template const typename MappedEnum::Type MapEnum(E } // namespace ot -#endif // AS_CORE_TYPE_HPP_ +#endif // OT_CORE_COMMON_AS_CORE_TYPE_HPP_ diff --git a/src/core/common/binary_search.hpp b/src/core/common/binary_search.hpp index 7a046efc6..a05080175 100644 --- a/src/core/common/binary_search.hpp +++ b/src/core/common/binary_search.hpp @@ -31,8 +31,8 @@ * This file provides a generic binary search and related helper functions. */ -#ifndef BINARY_SEARCH_HPP_ -#define BINARY_SEARCH_HPP_ +#ifndef OT_CORE_COMMON_BINARY_SEARCH_HPP_ +#define OT_CORE_COMMON_BINARY_SEARCH_HPP_ #include "openthread-core-config.h" @@ -122,4 +122,4 @@ private: } // namespace ot -#endif // BINARY_SEARCH_HPP_ +#endif // OT_CORE_COMMON_BINARY_SEARCH_HPP_ diff --git a/src/core/common/bit_set.hpp b/src/core/common/bit_set.hpp index c26777342..05472da59 100644 --- a/src/core/common/bit_set.hpp +++ b/src/core/common/bit_set.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a bit-set. */ -#ifndef BIT_SET_HPP_ -#define BIT_SET_HPP_ +#ifndef OT_CORE_COMMON_BIT_SET_HPP_ +#define OT_CORE_COMMON_BIT_SET_HPP_ #include "openthread-core-config.h" @@ -137,4 +137,4 @@ private: } // namespace ot -#endif // BIT_SET_HPP_ +#endif // OT_CORE_COMMON_BIT_SET_HPP_ diff --git a/src/core/common/bit_utils.hpp b/src/core/common/bit_utils.hpp index ef74eaccc..9e0080807 100644 --- a/src/core/common/bit_utils.hpp +++ b/src/core/common/bit_utils.hpp @@ -31,8 +31,8 @@ * This file includes definition for bit manipulation utility functions. */ -#ifndef BIT_UTILS_HPP_ -#define BIT_UTILS_HPP_ +#ifndef OT_CORE_COMMON_BIT_UTILS_HPP_ +#define OT_CORE_COMMON_BIT_UTILS_HPP_ #include "common/encoding.hpp" #include "common/numeric_limits.hpp" @@ -329,4 +329,4 @@ UintType ReadBitsBigEndian(UintType aBits) } // namespace ot -#endif // BIT_UTILS_HPP_ +#endif // OT_CORE_COMMON_BIT_UTILS_HPP_ diff --git a/src/core/common/callback.hpp b/src/core/common/callback.hpp index 1da26be76..9988ebc37 100644 --- a/src/core/common/callback.hpp +++ b/src/core/common/callback.hpp @@ -31,8 +31,8 @@ * This file defines OpenThread `Callback` class. */ -#ifndef CALLBACK_HPP_ -#define CALLBACK_HPP_ +#ifndef OT_CORE_COMMON_CALLBACK_HPP_ +#define OT_CORE_COMMON_CALLBACK_HPP_ #include "openthread-core-config.h" @@ -277,4 +277,4 @@ public: } // namespace ot -#endif // CALLBACK_HPP_ +#endif // OT_CORE_COMMON_CALLBACK_HPP_ diff --git a/src/core/common/clearable.hpp b/src/core/common/clearable.hpp index 69ee467be..43fd60f34 100644 --- a/src/core/common/clearable.hpp +++ b/src/core/common/clearable.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Clearable class for OpenThread objects. */ -#ifndef CLEARABLE_HPP_ -#define CLEARABLE_HPP_ +#ifndef OT_CORE_COMMON_CLEARABLE_HPP_ +#define OT_CORE_COMMON_CLEARABLE_HPP_ #include "openthread-core-config.h" @@ -77,4 +77,4 @@ private: } // namespace ot -#endif // CLEARABLE_HPP_ +#endif // OT_CORE_COMMON_CLEARABLE_HPP_ diff --git a/src/core/common/const_cast.hpp b/src/core/common/const_cast.hpp index bd79c0303..16e3aa594 100644 --- a/src/core/common/const_cast.hpp +++ b/src/core/common/const_cast.hpp @@ -31,8 +31,8 @@ * This file includes helper methods to cast between const and non-const objects and/or pointers. */ -#ifndef CONST_CAST_HPP_ -#define CONST_CAST_HPP_ +#ifndef OT_CORE_COMMON_CONST_CAST_HPP_ +#define OT_CORE_COMMON_CONST_CAST_HPP_ #include "openthread-core-config.h" @@ -84,4 +84,4 @@ template Type *AsNonConst(const Type *aPointer) { return const_c } // namespace ot -#endif // CONST_CAST_HPP_ +#endif // OT_CORE_COMMON_CONST_CAST_HPP_ diff --git a/src/core/common/crc.hpp b/src/core/common/crc.hpp index af3cf6412..74dbb3774 100644 --- a/src/core/common/crc.hpp +++ b/src/core/common/crc.hpp @@ -31,8 +31,8 @@ * This file includes definitions for CRC computations. */ -#ifndef CRC_HPP_ -#define CRC_HPP_ +#ifndef OT_CORE_COMMON_CRC_HPP_ +#define OT_CORE_COMMON_CRC_HPP_ #include "openthread-core-config.h" @@ -133,4 +133,4 @@ private: } // namespace ot -#endif // CRC_HPP_ +#endif // OT_CORE_COMMON_CRC_HPP_ diff --git a/src/core/common/data.hpp b/src/core/common/data.hpp index 3afff1efe..98ccca3d9 100644 --- a/src/core/common/data.hpp +++ b/src/core/common/data.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a `Data` and `MutableData`. */ -#ifndef DATA_HPP_ -#define DATA_HPP_ +#ifndef OT_CORE_COMMON_DATA_HPP_ +#define OT_CORE_COMMON_DATA_HPP_ #include "openthread-core-config.h" @@ -364,4 +364,4 @@ public: } // namespace ot -#endif // DATA_HPP_ +#endif // OT_CORE_COMMON_DATA_HPP_ diff --git a/src/core/common/debug.hpp b/src/core/common/debug.hpp index 974b0f0e1..527dfa2de 100644 --- a/src/core/common/debug.hpp +++ b/src/core/common/debug.hpp @@ -31,8 +31,8 @@ * This file includes functions for debugging. */ -#ifndef DEBUG_HPP_ -#define DEBUG_HPP_ +#ifndef OT_CORE_COMMON_DEBUG_HPP_ +#define OT_CORE_COMMON_DEBUG_HPP_ #include "openthread-core-config.h" @@ -131,4 +131,4 @@ #define AssertPointerIsNotNull(aPointer) #endif -#endif // DEBUG_HPP_ +#endif // OT_CORE_COMMON_DEBUG_HPP_ diff --git a/src/core/common/encoding.hpp b/src/core/common/encoding.hpp index 8ef78e595..d0e6b3152 100644 --- a/src/core/common/encoding.hpp +++ b/src/core/common/encoding.hpp @@ -31,8 +31,8 @@ * This file includes definitions for byte-ordering encoding. */ -#ifndef ENCODING_HPP_ -#define ENCODING_HPP_ +#ifndef OT_CORE_COMMON_ENCODING_HPP_ +#define OT_CORE_COMMON_ENCODING_HPP_ #include "openthread-core-config.h" @@ -429,4 +429,4 @@ template <> inline void Write(uint64_t aValue, uint8_t *aBuffer) { WriteUint64(a } // namespace ot -#endif // ENCODING_HPP_ +#endif // OT_CORE_COMMON_ENCODING_HPP_ diff --git a/src/core/common/equatable.hpp b/src/core/common/equatable.hpp index 9f25f4333..15826232d 100644 --- a/src/core/common/equatable.hpp +++ b/src/core/common/equatable.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Equatable class for OpenThread objects. */ -#ifndef EQUATABLE_HPP_ -#define EQUATABLE_HPP_ +#ifndef OT_CORE_COMMON_EQUATABLE_HPP_ +#define OT_CORE_COMMON_EQUATABLE_HPP_ #include "openthread-core-config.h" @@ -111,4 +111,4 @@ private: } // namespace ot -#endif // EQUATABLE_HPP_ +#endif // OT_CORE_COMMON_EQUATABLE_HPP_ diff --git a/src/core/common/error.hpp b/src/core/common/error.hpp index 4ae8bfd98..b9617742a 100644 --- a/src/core/common/error.hpp +++ b/src/core/common/error.hpp @@ -31,8 +31,8 @@ * This file defines the errors used by OpenThread core. */ -#ifndef ERROR_HPP_ -#define ERROR_HPP_ +#ifndef OT_CORE_COMMON_ERROR_HPP_ +#define OT_CORE_COMMON_ERROR_HPP_ #include "openthread-core-config.h" @@ -102,4 +102,4 @@ const char *ErrorToString(Error aError); } // namespace ot -#endif // ERROR_HPP_ +#endif // OT_CORE_COMMON_ERROR_HPP_ diff --git a/src/core/common/frame_builder.hpp b/src/core/common/frame_builder.hpp index 08089138b..2fb733cd9 100644 --- a/src/core/common/frame_builder.hpp +++ b/src/core/common/frame_builder.hpp @@ -31,8 +31,8 @@ * This file defines OpenThread `FrameBuilder` class. */ -#ifndef FRAME_BUILDER_HPP_ -#define FRAME_BUILDER_HPP_ +#ifndef OT_CORE_COMMON_FRAME_BUILDER_HPP_ +#define OT_CORE_COMMON_FRAME_BUILDER_HPP_ #include "openthread-core-config.h" @@ -329,4 +329,4 @@ private: } // namespace ot -#endif // FRAME_BUILDER_HPP_ +#endif // OT_CORE_COMMON_FRAME_BUILDER_HPP_ diff --git a/src/core/common/frame_data.hpp b/src/core/common/frame_data.hpp index 591e5b257..419ca80f4 100644 --- a/src/core/common/frame_data.hpp +++ b/src/core/common/frame_data.hpp @@ -31,8 +31,8 @@ * This file includes definitions for `FrameData`. */ -#ifndef FRAME_DATA_HPP_ -#define FRAME_DATA_HPP_ +#ifndef OT_CORE_COMMON_FRAME_DATA_HPP_ +#define OT_CORE_COMMON_FRAME_DATA_HPP_ #include "openthread-core-config.h" @@ -164,4 +164,4 @@ public: } // namespace ot -#endif // FRAME_DATA_HPP_ +#endif // OT_CORE_COMMON_FRAME_DATA_HPP_ diff --git a/src/core/common/heap.hpp b/src/core/common/heap.hpp index 6b93b5efc..e68732856 100644 --- a/src/core/common/heap.hpp +++ b/src/core/common/heap.hpp @@ -31,8 +31,8 @@ * This file includes definitions for `Heap`. */ -#ifndef HEAP_HPP_ -#define HEAP_HPP_ +#ifndef OT_CORE_COMMON_HEAP_HPP_ +#define OT_CORE_COMMON_HEAP_HPP_ #include "openthread-core-config.h" @@ -64,4 +64,4 @@ void Free(void *aPointer); } // namespace Heap } // namespace ot -#endif // HEAP_HPP_ +#endif // OT_CORE_COMMON_HEAP_HPP_ diff --git a/src/core/common/heap_allocatable.hpp b/src/core/common/heap_allocatable.hpp index 94ae15fc6..a90a0ad68 100644 --- a/src/core/common/heap_allocatable.hpp +++ b/src/core/common/heap_allocatable.hpp @@ -31,8 +31,8 @@ * This file includes definitions for `Heap::Allocatable`. */ -#ifndef HEAP_ALLOCATABLE_HPP_ -#define HEAP_ALLOCATABLE_HPP_ +#ifndef OT_CORE_COMMON_HEAP_ALLOCATABLE_HPP_ +#define OT_CORE_COMMON_HEAP_ALLOCATABLE_HPP_ #include "openthread-core-config.h" @@ -127,4 +127,4 @@ protected: } // namespace Heap } // namespace ot -#endif // HEAP_ALLOCATABLE_HPP_ +#endif // OT_CORE_COMMON_HEAP_ALLOCATABLE_HPP_ diff --git a/src/core/common/heap_array.hpp b/src/core/common/heap_array.hpp index ea835acbc..5e355e845 100644 --- a/src/core/common/heap_array.hpp +++ b/src/core/common/heap_array.hpp @@ -31,8 +31,8 @@ * This file includes definitions for `Heap::Array` (a heap allocated array of flexible length). */ -#ifndef HEAP_ARRAY_HPP_ -#define HEAP_ARRAY_HPP_ +#ifndef OT_CORE_COMMON_HEAP_ARRAY_HPP_ +#define OT_CORE_COMMON_HEAP_ARRAY_HPP_ #include "openthread-core-config.h" @@ -533,4 +533,4 @@ private: } // namespace Heap } // namespace ot -#endif // HEAP_ARRAY_HPP_ +#endif // OT_CORE_COMMON_HEAP_ARRAY_HPP_ diff --git a/src/core/common/heap_data.hpp b/src/core/common/heap_data.hpp index ec6cc859d..76d1e40fb 100644 --- a/src/core/common/heap_data.hpp +++ b/src/core/common/heap_data.hpp @@ -31,8 +31,8 @@ * This file includes definitions for `Heap::Data` (heap allocated data). */ -#ifndef HEAP_DATA_HPP_ -#define HEAP_DATA_HPP_ +#ifndef OT_CORE_COMMON_HEAP_DATA_HPP_ +#define OT_CORE_COMMON_HEAP_DATA_HPP_ #include "openthread-core-config.h" @@ -211,4 +211,4 @@ private: } // namespace Heap } // namespace ot -#endif // HEAP_DATA_HPP_ +#endif // OT_CORE_COMMON_HEAP_DATA_HPP_ diff --git a/src/core/common/heap_string.hpp b/src/core/common/heap_string.hpp index 30ecda210..0a019e50a 100644 --- a/src/core/common/heap_string.hpp +++ b/src/core/common/heap_string.hpp @@ -31,8 +31,8 @@ * This file includes definitions for `Heap::String` (a heap allocated string). */ -#ifndef HEAP_STRING_HPP_ -#define HEAP_STRING_HPP_ +#ifndef OT_CORE_COMMON_HEAP_STRING_HPP_ +#define OT_CORE_COMMON_HEAP_STRING_HPP_ #include "openthread-core-config.h" @@ -192,4 +192,4 @@ private: } // namespace Heap } // namespace ot -#endif // HEAP_STRING_HPP_ +#endif // OT_CORE_COMMON_HEAP_STRING_HPP_ diff --git a/src/core/common/iterator_utils.hpp b/src/core/common/iterator_utils.hpp index b2049ab4c..697a9cfbb 100644 --- a/src/core/common/iterator_utils.hpp +++ b/src/core/common/iterator_utils.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a generic item-pointer iterator class. */ -#ifndef ITERATOR_UTILS_HPP_ -#define ITERATOR_UTILS_HPP_ +#ifndef OT_CORE_COMMON_ITERATOR_UTILS_HPP_ +#define OT_CORE_COMMON_ITERATOR_UTILS_HPP_ namespace ot { @@ -154,4 +154,4 @@ protected: } // namespace ot -#endif // ITERATOR_UTILS_HPP_ +#endif // OT_CORE_COMMON_ITERATOR_UTILS_HPP_ diff --git a/src/core/common/linked_list.hpp b/src/core/common/linked_list.hpp index 25e57b5b2..139920cbe 100644 --- a/src/core/common/linked_list.hpp +++ b/src/core/common/linked_list.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a generic singly linked list. */ -#ifndef LINKED_LIST_HPP_ -#define LINKED_LIST_HPP_ +#ifndef OT_CORE_COMMON_LINKED_LIST_HPP_ +#define OT_CORE_COMMON_LINKED_LIST_HPP_ #include "openthread-core-config.h" @@ -613,4 +613,4 @@ private: } // namespace ot -#endif // LINKED_LIST_HPP_ +#endif // OT_CORE_COMMON_LINKED_LIST_HPP_ diff --git a/src/core/common/locator.hpp b/src/core/common/locator.hpp index c05ed718c..5fa81d49f 100644 --- a/src/core/common/locator.hpp +++ b/src/core/common/locator.hpp @@ -31,8 +31,8 @@ * This file includes definitions for locator class for OpenThread objects. */ -#ifndef LOCATOR_HPP_ -#define LOCATOR_HPP_ +#ifndef OT_CORE_COMMON_LOCATOR_HPP_ +#define OT_CORE_COMMON_LOCATOR_HPP_ #include "openthread-core-config.h" @@ -187,4 +187,4 @@ protected: } // namespace ot -#endif // LOCATOR_HPP_ +#endif // OT_CORE_COMMON_LOCATOR_HPP_ diff --git a/src/core/common/log.hpp b/src/core/common/log.hpp index 9819c3d36..b43f24132 100644 --- a/src/core/common/log.hpp +++ b/src/core/common/log.hpp @@ -31,8 +31,8 @@ * This file includes logging related definitions. */ -#ifndef LOG_HPP_ -#define LOG_HPP_ +#ifndef OT_CORE_COMMON_LOG_HPP_ +#define OT_CORE_COMMON_LOG_HPP_ #include "openthread-core-config.h" @@ -401,4 +401,4 @@ Error GenerateNextHexDumpLine(HexDumpInfo &aInfo); } // namespace ot -#endif // LOG_HPP_ +#endif // OT_CORE_COMMON_LOG_HPP_ diff --git a/src/core/common/logging.hpp b/src/core/common/logging.hpp index 56016bced..54f37fc5d 100644 --- a/src/core/common/logging.hpp +++ b/src/core/common/logging.hpp @@ -31,12 +31,12 @@ * This file includes logging related macro/function definitions. */ -#ifndef LOGGING_HPP_ -#define LOGGING_HPP_ +#ifndef OT_CORE_COMMON_LOGGING_HPP_ +#define OT_CORE_COMMON_LOGGING_HPP_ #include "openthread-core-config.h" #include #include -#endif // LOGGING_HPP_ +#endif // OT_CORE_COMMON_LOGGING_HPP_ diff --git a/src/core/common/message.hpp b/src/core/common/message.hpp index 837b8fbbe..3b9a40065 100644 --- a/src/core/common/message.hpp +++ b/src/core/common/message.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the message buffer pool and message buffers. */ -#ifndef MESSAGE_HPP_ -#define MESSAGE_HPP_ +#ifndef OT_CORE_COMMON_MESSAGE_HPP_ +#define OT_CORE_COMMON_MESSAGE_HPP_ #include "openthread-core-config.h" @@ -1949,4 +1949,4 @@ DefineMapEnum(otMessageOrigin, Message::Origin); } // namespace ot -#endif // MESSAGE_HPP_ +#endif // OT_CORE_COMMON_MESSAGE_HPP_ diff --git a/src/core/common/non_copyable.hpp b/src/core/common/non_copyable.hpp index afb24b1e2..7650b1ae9 100644 --- a/src/core/common/non_copyable.hpp +++ b/src/core/common/non_copyable.hpp @@ -31,8 +31,8 @@ * This file includes a common base class for disabling copying. */ -#ifndef NON_COPYABLE_HPP_ -#define NON_COPYABLE_HPP_ +#ifndef OT_CORE_COMMON_NON_COPYABLE_HPP_ +#define OT_CORE_COMMON_NON_COPYABLE_HPP_ namespace ot { @@ -51,4 +51,4 @@ protected: } // namespace ot -#endif // NON_COPYABLE_HPP_ +#endif // OT_CORE_COMMON_NON_COPYABLE_HPP_ diff --git a/src/core/common/notifier.hpp b/src/core/common/notifier.hpp index 8a9337695..60a166c69 100644 --- a/src/core/common/notifier.hpp +++ b/src/core/common/notifier.hpp @@ -31,8 +31,8 @@ * This file defines OpenThread Notifier class. */ -#ifndef NOTIFIER_HPP_ -#define NOTIFIER_HPP_ +#ifndef OT_CORE_COMMON_NOTIFIER_HPP_ +#define OT_CORE_COMMON_NOTIFIER_HPP_ #include "openthread-core-config.h" @@ -316,4 +316,4 @@ private: } // namespace ot -#endif // NOTIFIER_HPP_ +#endif // OT_CORE_COMMON_NOTIFIER_HPP_ diff --git a/src/core/common/num_utils.hpp b/src/core/common/num_utils.hpp index 4d42a5b9d..61fad4290 100644 --- a/src/core/common/num_utils.hpp +++ b/src/core/common/num_utils.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generic number utility functions (min, max, clamp). */ -#ifndef NUM_UTILS_HPP_ -#define NUM_UTILS_HPP_ +#ifndef OT_CORE_COMMON_NUM_UTILS_HPP_ +#define OT_CORE_COMMON_NUM_UTILS_HPP_ #include "common/code_utils.hpp" #include "common/error.hpp" @@ -303,4 +303,4 @@ inline unsigned long ToUlong(uint32_t aUint32) { return static_cast @@ -99,4 +99,4 @@ template <> struct NumericLimits } // namespace ot -#endif // NUMERIC_LIMITS_HPP_ +#endif // OT_CORE_COMMON_NUMERIC_LIMITS_HPP_ diff --git a/src/core/common/offset_range.hpp b/src/core/common/offset_range.hpp index 27ee34759..104321715 100644 --- a/src/core/common/offset_range.hpp +++ b/src/core/common/offset_range.hpp @@ -31,8 +31,8 @@ * This file includes definitions for an offset range. */ -#ifndef OFFSET_RANGE_HPP_ -#define OFFSET_RANGE_HPP_ +#ifndef OT_CORE_COMMON_OFFSET_RANGE_HPP_ +#define OT_CORE_COMMON_OFFSET_RANGE_HPP_ #include "openthread-core-config.h" @@ -157,4 +157,4 @@ private: } // namespace ot -#endif // OFFSET_RANGE_HPP_ +#endif // OT_CORE_COMMON_OFFSET_RANGE_HPP_ diff --git a/src/core/common/owned_ptr.hpp b/src/core/common/owned_ptr.hpp index 2004fcd25..689a73ebb 100644 --- a/src/core/common/owned_ptr.hpp +++ b/src/core/common/owned_ptr.hpp @@ -31,8 +31,8 @@ * This file includes definitions for an owned smart pointer. */ -#ifndef OWNED_PTR_HPP_ -#define OWNED_PTR_HPP_ +#ifndef OT_CORE_COMMON_OWNED_PTR_HPP_ +#define OT_CORE_COMMON_OWNED_PTR_HPP_ #include "openthread-core-config.h" @@ -177,4 +177,4 @@ private: } // namespace ot -#endif // OWNED_PTR_HPP_ +#endif // OT_CORE_COMMON_OWNED_PTR_HPP_ diff --git a/src/core/common/owning_list.hpp b/src/core/common/owning_list.hpp index 13e88cf20..915ea111e 100644 --- a/src/core/common/owning_list.hpp +++ b/src/core/common/owning_list.hpp @@ -32,8 +32,8 @@ * the list. */ -#ifndef OWNING_LIST_HPP_ -#define OWNING_LIST_HPP_ +#ifndef OT_CORE_COMMON_OWNING_LIST_HPP_ +#define OT_CORE_COMMON_OWNING_LIST_HPP_ #include "openthread-core-config.h" @@ -162,4 +162,4 @@ public: } // namespace ot -#endif // OWNING_LIST_HPP_ +#endif // OT_CORE_COMMON_OWNING_LIST_HPP_ diff --git a/src/core/common/pool.hpp b/src/core/common/pool.hpp index 946b232f4..7b479d0ee 100644 --- a/src/core/common/pool.hpp +++ b/src/core/common/pool.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a generic object pool. */ -#ifndef POOL_HPP_ -#define POOL_HPP_ +#ifndef OT_CORE_COMMON_POOL_HPP_ +#define OT_CORE_COMMON_POOL_HPP_ #include "openthread-core-config.h" @@ -185,4 +185,4 @@ private: } // namespace ot -#endif // POOL_HPP_ +#endif // OT_CORE_COMMON_POOL_HPP_ diff --git a/src/core/common/preference.hpp b/src/core/common/preference.hpp index 2c4c052cd..e85ba4a13 100644 --- a/src/core/common/preference.hpp +++ b/src/core/common/preference.hpp @@ -32,8 +32,8 @@ * Route Preference in RFC-4191. */ -#ifndef PREFERENCE_HPP_ -#define PREFERENCE_HPP_ +#ifndef OT_CORE_COMMON_PREFERENCE_HPP_ +#define OT_CORE_COMMON_PREFERENCE_HPP_ #include "openthread-core-config.h" @@ -126,4 +126,4 @@ private: } // namespace ot -#endif // PREFERENCE_HPP_ +#endif // OT_CORE_COMMON_PREFERENCE_HPP_ diff --git a/src/core/common/ptr_wrapper.hpp b/src/core/common/ptr_wrapper.hpp index 7f42be147..cfa4c2cd9 100644 --- a/src/core/common/ptr_wrapper.hpp +++ b/src/core/common/ptr_wrapper.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a pointer wrapper. */ -#ifndef PTR_WRAPPER_HPP_ -#define PTR_WRAPPER_HPP_ +#ifndef OT_CORE_COMMON_PTR_WRAPPER_HPP_ +#define OT_CORE_COMMON_PTR_WRAPPER_HPP_ #include "openthread-core-config.h" @@ -169,4 +169,4 @@ protected: } // namespace ot -#endif // PTR_WRAPPER_HPP_ +#endif // OT_CORE_COMMON_PTR_WRAPPER_HPP_ diff --git a/src/core/common/random.hpp b/src/core/common/random.hpp index 3f63d9908..e42f8920d 100644 --- a/src/core/common/random.hpp +++ b/src/core/common/random.hpp @@ -31,8 +31,8 @@ * This file includes definitions for OpenThread random number generation. */ -#ifndef RANDOM_HPP_ -#define RANDOM_HPP_ +#ifndef OT_CORE_COMMON_RANDOM_HPP_ +#define OT_CORE_COMMON_RANDOM_HPP_ #include "openthread-core-config.h" @@ -227,4 +227,4 @@ template Error Fill(ObjectType &aObject) } // namespace Random } // namespace ot -#endif // RANDOM_HPP_ +#endif // OT_CORE_COMMON_RANDOM_HPP_ diff --git a/src/core/common/retain_ptr.hpp b/src/core/common/retain_ptr.hpp index b534957dc..7fa8b858f 100644 --- a/src/core/common/retain_ptr.hpp +++ b/src/core/common/retain_ptr.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a retain (reference counted) smart pointer. */ -#ifndef RETAIN_PTR_HPP_ -#define RETAIN_PTR_HPP_ +#ifndef OT_CORE_COMMON_RETAIN_PTR_HPP_ +#define OT_CORE_COMMON_RETAIN_PTR_HPP_ #include "openthread-core-config.h" @@ -205,4 +205,4 @@ private: } // namespace ot -#endif // RETAIN_PTR_HPP_ +#endif // OT_CORE_COMMON_RETAIN_PTR_HPP_ diff --git a/src/core/common/serial_number.hpp b/src/core/common/serial_number.hpp index 79854fc15..64bc10da0 100644 --- a/src/core/common/serial_number.hpp +++ b/src/core/common/serial_number.hpp @@ -31,8 +31,8 @@ * This file includes definitions for serial number comparison similar to RFC-1982. */ -#ifndef SERIAL_NUMBER_HPP_ -#define SERIAL_NUMBER_HPP_ +#ifndef OT_CORE_COMMON_SERIAL_NUMBER_HPP_ +#define OT_CORE_COMMON_SERIAL_NUMBER_HPP_ #include "openthread-core-config.h" @@ -93,4 +93,4 @@ public: } // namespace ot -#endif // SERIAL_NUMBER_HPP_ +#endif // OT_CORE_COMMON_SERIAL_NUMBER_HPP_ diff --git a/src/core/common/settings.hpp b/src/core/common/settings.hpp index 27836ae0b..00994327b 100644 --- a/src/core/common/settings.hpp +++ b/src/core/common/settings.hpp @@ -31,8 +31,8 @@ * This file includes definitions for non-volatile storage of settings. */ -#ifndef SETTINGS_HPP_ -#define SETTINGS_HPP_ +#ifndef OT_CORE_COMMON_SETTINGS_HPP_ +#define OT_CORE_COMMON_SETTINGS_HPP_ #include "openthread-core-config.h" @@ -1132,4 +1132,4 @@ private: } // namespace ot -#endif // SETTINGS_HPP_ +#endif // OT_CORE_COMMON_SETTINGS_HPP_ diff --git a/src/core/common/settings_driver.hpp b/src/core/common/settings_driver.hpp index df1909e19..e9a048022 100644 --- a/src/core/common/settings_driver.hpp +++ b/src/core/common/settings_driver.hpp @@ -31,8 +31,8 @@ * This file includes definitions for settings driver. */ -#ifndef SETTINGS_DRIVER_HPP_ -#define SETTINGS_DRIVER_HPP_ +#ifndef OT_CORE_COMMON_SETTINGS_DRIVER_HPP_ +#define OT_CORE_COMMON_SETTINGS_DRIVER_HPP_ #include "openthread-core-config.h" @@ -240,4 +240,4 @@ private: } // namespace ot -#endif // SETTINGS_DRIVER_HPP_ +#endif // OT_CORE_COMMON_SETTINGS_DRIVER_HPP_ diff --git a/src/core/common/string.hpp b/src/core/common/string.hpp index c92645b91..d8c3adf99 100644 --- a/src/core/common/string.hpp +++ b/src/core/common/string.hpp @@ -31,8 +31,8 @@ * This file defines OpenThread String class. */ -#ifndef STRING_HPP_ -#define STRING_HPP_ +#ifndef OT_CORE_COMMON_STRING_HPP_ +#define OT_CORE_COMMON_STRING_HPP_ #include "openthread-core-config.h" @@ -582,4 +582,4 @@ public: } // namespace ot -#endif // STRING_HPP_ +#endif // OT_CORE_COMMON_STRING_HPP_ diff --git a/src/core/common/tasklet.hpp b/src/core/common/tasklet.hpp index 5dd1c6ad1..5370fe8d3 100644 --- a/src/core/common/tasklet.hpp +++ b/src/core/common/tasklet.hpp @@ -31,8 +31,8 @@ * This file includes definitions for tasklets and the tasklet scheduler. */ -#ifndef TASKLET_HPP_ -#define TASKLET_HPP_ +#ifndef OT_CORE_COMMON_TASKLET_HPP_ +#define OT_CORE_COMMON_TASKLET_HPP_ #include "openthread-core-config.h" @@ -211,4 +211,4 @@ private: } // namespace ot -#endif // TASKLET_HPP_ +#endif // OT_CORE_COMMON_TASKLET_HPP_ diff --git a/src/core/common/time.hpp b/src/core/common/time.hpp index 70722185b..46cb419ec 100644 --- a/src/core/common/time.hpp +++ b/src/core/common/time.hpp @@ -31,8 +31,8 @@ * This file includes definitions for time instance. */ -#ifndef TIME_HPP_ -#define TIME_HPP_ +#ifndef OT_CORE_COMMON_TIME_HPP_ +#define OT_CORE_COMMON_TIME_HPP_ #include "openthread-core-config.h" @@ -272,4 +272,4 @@ typedef Time TimeMicro; } // namespace ot -#endif // TIME_HPP_ +#endif // OT_CORE_COMMON_TIME_HPP_ diff --git a/src/core/common/time_ticker.hpp b/src/core/common/time_ticker.hpp index f05fde339..5b70fc57d 100644 --- a/src/core/common/time_ticker.hpp +++ b/src/core/common/time_ticker.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a time ticker. */ -#ifndef TIME_TICKER_HPP_ -#define TIME_TICKER_HPP_ +#ifndef OT_CORE_COMMON_TIME_TICKER_HPP_ +#define OT_CORE_COMMON_TIME_TICKER_HPP_ #include "openthread-core-config.h" @@ -122,4 +122,4 @@ private: } // namespace ot -#endif // TIMER_HPP_ +#endif // OT_CORE_COMMON_TIME_TICKER_HPP_ diff --git a/src/core/common/timer.hpp b/src/core/common/timer.hpp index b40473816..ca3936fae 100644 --- a/src/core/common/timer.hpp +++ b/src/core/common/timer.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the multiplexed timer service. */ -#ifndef TIMER_HPP_ -#define TIMER_HPP_ +#ifndef OT_CORE_COMMON_TIMER_HPP_ +#define OT_CORE_COMMON_TIMER_HPP_ #include "openthread-core-config.h" @@ -541,4 +541,4 @@ private: } // namespace ot -#endif // TIMER_HPP_ +#endif // OT_CORE_COMMON_TIMER_HPP_ diff --git a/src/core/common/tlvs.hpp b/src/core/common/tlvs.hpp index 1098fd818..56261538e 100644 --- a/src/core/common/tlvs.hpp +++ b/src/core/common/tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing MLE TLVs. */ -#ifndef TLVS_HPP_ -#define TLVS_HPP_ +#ifndef OT_CORE_COMMON_TLVS_HPP_ +#define OT_CORE_COMMON_TLVS_HPP_ #include "openthread-core-config.h" @@ -841,4 +841,4 @@ public: } // namespace ot -#endif // TLVS_HPP_ +#endif // OT_CORE_COMMON_TLVS_HPP_ diff --git a/src/core/common/trickle_timer.hpp b/src/core/common/trickle_timer.hpp index 3887ff05d..5740f3c96 100644 --- a/src/core/common/trickle_timer.hpp +++ b/src/core/common/trickle_timer.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the trickle timer logic. */ -#ifndef TRICKLE_TIMER_HPP_ -#define TRICKLE_TIMER_HPP_ +#ifndef OT_CORE_COMMON_TRICKLE_TIMER_HPP_ +#define OT_CORE_COMMON_TRICKLE_TIMER_HPP_ #include "openthread-core-config.h" @@ -211,4 +211,4 @@ private: } // namespace ot -#endif // TRICKLE_TIMER_HPP_ +#endif // OT_CORE_COMMON_TRICKLE_TIMER_HPP_ diff --git a/src/core/common/type_traits.hpp b/src/core/common/type_traits.hpp index 676bcdd85..fe42b5847 100644 --- a/src/core/common/type_traits.hpp +++ b/src/core/common/type_traits.hpp @@ -31,8 +31,8 @@ * This file includes type traits definitions. */ -#ifndef OT_TYPE_TRAITS_HPP_ -#define OT_TYPE_TRAITS_HPP_ +#ifndef OT_CORE_COMMON_TYPE_TRAITS_HPP_ +#define OT_CORE_COMMON_TYPE_TRAITS_HPP_ #include @@ -220,4 +220,4 @@ struct FirstArgTypeOf } // namespace TypeTraits } // namespace ot -#endif // OT_TYPE_TRAITS_HPP_ +#endif // OT_CORE_COMMON_TYPE_TRAITS_HPP_ diff --git a/src/core/common/uptime.hpp b/src/core/common/uptime.hpp index ed4bcbe2b..ea8787053 100644 --- a/src/core/common/uptime.hpp +++ b/src/core/common/uptime.hpp @@ -31,8 +31,8 @@ * This file includes definitions for tracking device's uptime. */ -#ifndef UPTIME_HPP_ -#define UPTIME_HPP_ +#ifndef OT_CORE_COMMON_UPTIME_HPP_ +#define OT_CORE_COMMON_UPTIME_HPP_ #include "openthread-core-config.h" @@ -116,4 +116,4 @@ void UptimeToString(UptimeMsec aUptime, StringWriter &aWriter, bool aIncludeMsec #endif // OPENTHREAD_CONFIG_UPTIME_ENABLE -#endif // UPTIME_HPP_ +#endif // OT_CORE_COMMON_UPTIME_HPP_ diff --git a/src/core/config/announce_sender.h b/src/core/config/announce_sender.h index 4544cb48a..11e279631 100644 --- a/src/core/config/announce_sender.h +++ b/src/core/config/announce_sender.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Announce Sender. */ -#ifndef CONFIG_ANNOUNCE_SENDER_H_ -#define CONFIG_ANNOUNCE_SENDER_H_ +#ifndef OT_CORE_CONFIG_ANNOUNCE_SENDER_H_ +#define OT_CORE_CONFIG_ANNOUNCE_SENDER_H_ /** * @addtogroup config-announce-sender @@ -98,4 +98,4 @@ * @} */ -#endif // CONFIG_ANNOUNCE_SENDER_H_ +#endif // OT_CORE_CONFIG_ANNOUNCE_SENDER_H_ diff --git a/src/core/config/backbone_router.h b/src/core/config/backbone_router.h index 910663e32..2e5279775 100644 --- a/src/core/config/backbone_router.h +++ b/src/core/config/backbone_router.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Backbone Router services. */ -#ifndef CONFIG_BACKBONE_ROUTER_H_ -#define CONFIG_BACKBONE_ROUTER_H_ +#ifndef OT_CORE_CONFIG_BACKBONE_ROUTER_H_ +#define OT_CORE_CONFIG_BACKBONE_ROUTER_H_ /** * @addtogroup config-backbone-router @@ -120,4 +120,4 @@ * @} */ -#endif // CONFIG_BACKBONE_ROUTER_H_ +#endif // OT_CORE_CONFIG_BACKBONE_ROUTER_H_ diff --git a/src/core/config/border_agent.h b/src/core/config/border_agent.h index 14385d653..bbeffc914 100644 --- a/src/core/config/border_agent.h +++ b/src/core/config/border_agent.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Border Agent. */ -#ifndef CONFIG_BORDER_AGENT_H_ -#define CONFIG_BORDER_AGENT_H_ +#ifndef OT_CORE_CONFIG_BORDER_AGENT_H_ +#define OT_CORE_CONFIG_BORDER_AGENT_H_ /** * @addtogroup config-border-agent @@ -159,4 +159,4 @@ * @} */ -#endif // CONFIG_BORDER_AGENT_H_ +#endif // OT_CORE_CONFIG_BORDER_AGENT_H_ diff --git a/src/core/config/border_router.h b/src/core/config/border_router.h index 2696a3fc1..5235ea8b9 100644 --- a/src/core/config/border_router.h +++ b/src/core/config/border_router.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Border Router services. */ -#ifndef CONFIG_BORDER_ROUTER_H_ -#define CONFIG_BORDER_ROUTER_H_ +#ifndef OT_CORE_CONFIG_BORDER_ROUTER_H_ +#define OT_CORE_CONFIG_BORDER_ROUTER_H_ /** * @addtogroup config-border-router @@ -92,4 +92,4 @@ * @} */ -#endif // CONFIG_BORDER_ROUTER_H_ +#endif // OT_CORE_CONFIG_BORDER_ROUTER_H_ diff --git a/src/core/config/border_routing.h b/src/core/config/border_routing.h index 5963ed4ba..c76b2f64a 100644 --- a/src/core/config/border_routing.h +++ b/src/core/config/border_routing.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Border Routing Manager. */ -#ifndef CONFIG_BORDER_ROUTING_H_ -#define CONFIG_BORDER_ROUTING_H_ +#ifndef OT_CORE_CONFIG_BORDER_ROUTING_H_ +#define OT_CORE_CONFIG_BORDER_ROUTING_H_ /** * @addtogroup config-border-routing @@ -279,4 +279,4 @@ * @} */ -#endif // CONFIG_BORDER_ROUTING_H_ +#endif // OT_CORE_CONFIG_BORDER_ROUTING_H_ diff --git a/src/core/config/channel_manager.h b/src/core/config/channel_manager.h index db7f87362..e99654faf 100644 --- a/src/core/config/channel_manager.h +++ b/src/core/config/channel_manager.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Channel Manager. */ -#ifndef CONFIG_CHANNEL_MANAGER_H_ -#define CONFIG_CHANNEL_MANAGER_H_ +#ifndef OT_CORE_CONFIG_CHANNEL_MANAGER_H_ +#define OT_CORE_CONFIG_CHANNEL_MANAGER_H_ /** * @addtogroup config-channel-manager @@ -152,4 +152,4 @@ * @} */ -#endif // CONFIG_CHANNEL_MANAGER_H_ +#endif // OT_CORE_CONFIG_CHANNEL_MANAGER_H_ diff --git a/src/core/config/channel_monitor.h b/src/core/config/channel_monitor.h index cf14c074f..c8a4ddee7 100644 --- a/src/core/config/channel_monitor.h +++ b/src/core/config/channel_monitor.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Channel Monitor. */ -#ifndef CONFIG_CHANNEL_MONITOR_H_ -#define CONFIG_CHANNEL_MONITOR_H_ +#ifndef OT_CORE_CONFIG_CHANNEL_MONITOR_H_ +#define OT_CORE_CONFIG_CHANNEL_MONITOR_H_ /** * @addtogroup config-channel-monitor @@ -114,4 +114,4 @@ * @} */ -#endif // CONFIG_CHANNEL_MONITOR_H_ +#endif // OT_CORE_CONFIG_CHANNEL_MONITOR_H_ diff --git a/src/core/config/child_supervision.h b/src/core/config/child_supervision.h index 3462bff8f..dbcfb105d 100644 --- a/src/core/config/child_supervision.h +++ b/src/core/config/child_supervision.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Child Supervision. */ -#ifndef CONFIG_CHILD_SUPERVISION_H_ -#define CONFIG_CHILD_SUPERVISION_H_ +#ifndef OT_CORE_CONFIG_CHILD_SUPERVISION_H_ +#define OT_CORE_CONFIG_CHILD_SUPERVISION_H_ /** * @addtogroup config-child-supervision @@ -95,4 +95,4 @@ * @} */ -#endif // CONFIG_CHILD_SUPERVISION_H_ +#endif // OT_CORE_CONFIG_CHILD_SUPERVISION_H_ diff --git a/src/core/config/coap.h b/src/core/config/coap.h index 0569b7cc4..a94581ba7 100644 --- a/src/core/config/coap.h +++ b/src/core/config/coap.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for CoAP. */ -#ifndef CONFIG_COAP_H_ -#define CONFIG_COAP_H_ +#ifndef OT_CORE_CONFIG_COAP_H_ +#define OT_CORE_CONFIG_COAP_H_ /** * @addtogroup config-coap @@ -103,4 +103,4 @@ * @} */ -#endif // CONFIG_COAP_H_ +#endif // OT_CORE_CONFIG_COAP_H_ diff --git a/src/core/config/commissioner.h b/src/core/config/commissioner.h index 331f5515b..5589d24cf 100644 --- a/src/core/config/commissioner.h +++ b/src/core/config/commissioner.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Commissioner. */ -#ifndef CONFIG_COMMISSIONER_H_ -#define CONFIG_COMMISSIONER_H_ +#ifndef OT_CORE_CONFIG_COMMISSIONER_H_ +#define OT_CORE_CONFIG_COMMISSIONER_H_ /** * @addtogroup config-commissioner @@ -75,4 +75,4 @@ * @} */ -#endif // CONFIG_COMMISSIONER_H_ +#endif // OT_CORE_CONFIG_COMMISSIONER_H_ diff --git a/src/core/config/crypto.h b/src/core/config/crypto.h index ec741ca6b..a3607b670 100644 --- a/src/core/config/crypto.h +++ b/src/core/config/crypto.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef CONFIG_CRYPTO_H_ -#define CONFIG_CRYPTO_H_ +#ifndef OT_CORE_CONFIG_CRYPTO_H_ +#define OT_CORE_CONFIG_CRYPTO_H_ /** * @addtogroup config-crypto @@ -103,4 +103,4 @@ * @} */ -#endif // CONFIG_CRYPTO_H_ +#endif // OT_CORE_CONFIG_CRYPTO_H_ diff --git a/src/core/config/dataset_updater.h b/src/core/config/dataset_updater.h index 0c30f28e3..fb501089f 100644 --- a/src/core/config/dataset_updater.h +++ b/src/core/config/dataset_updater.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Dataset Updater. */ -#ifndef CONFIG_DATASET_UPDATER_H_ -#define CONFIG_DATASET_UPDATER_H_ +#ifndef OT_CORE_CONFIG_DATASET_UPDATER_H_ +#define OT_CORE_CONFIG_DATASET_UPDATER_H_ /** * @addtogroup config-dataset-updater @@ -76,4 +76,4 @@ * @} */ -#endif // CONFIG_DATASET_UPDATER_H_ +#endif // OT_CORE_CONFIG_DATASET_UPDATER_H_ diff --git a/src/core/config/dhcp6_client.h b/src/core/config/dhcp6_client.h index 1eca9996a..91cfdbf25 100644 --- a/src/core/config/dhcp6_client.h +++ b/src/core/config/dhcp6_client.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for DHCPv6 Client. */ -#ifndef CONFIG_DHCP6_CLIENT_H_ -#define CONFIG_DHCP6_CLIENT_H_ +#ifndef OT_CORE_CONFIG_DHCP6_CLIENT_H_ +#define OT_CORE_CONFIG_DHCP6_CLIENT_H_ /** * @addtogroup config-dhcpv6-client @@ -74,4 +74,4 @@ * @} */ -#endif // CONFIG_DHCP6_CLIENT_H_ +#endif // OT_CORE_CONFIG_DHCP6_CLIENT_H_ diff --git a/src/core/config/dhcp6_server.h b/src/core/config/dhcp6_server.h index d5d22093c..c1f139f9b 100644 --- a/src/core/config/dhcp6_server.h +++ b/src/core/config/dhcp6_server.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for DHCPv6 Server. */ -#ifndef CONFIG_DHCP6_SERVER_H_ -#define CONFIG_DHCP6_SERVER_H_ +#ifndef OT_CORE_CONFIG_DHCP6_SERVER_H_ +#define OT_CORE_CONFIG_DHCP6_SERVER_H_ /** * @addtogroup config-dhcpv6-server @@ -65,4 +65,4 @@ * @} */ -#endif // CONFIG_DHCP6_SERVER_H_ +#endif // OT_CORE_CONFIG_DHCP6_SERVER_H_ diff --git a/src/core/config/diag.h b/src/core/config/diag.h index d0d1e8ea0..29d9f6d38 100644 --- a/src/core/config/diag.h +++ b/src/core/config/diag.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the DIAG service. */ -#ifndef CONFIG_DIAG_H_ -#define CONFIG_DIAG_H_ +#ifndef OT_CORE_CONFIG_DIAG_H_ +#define OT_CORE_CONFIG_DIAG_H_ /** * @addtogroup config-diag @@ -83,4 +83,4 @@ * @} */ -#endif // CONFIG_DIAG_H_ +#endif // OT_CORE_CONFIG_DIAG_H_ diff --git a/src/core/config/dns_client.h b/src/core/config/dns_client.h index 4b86cb149..29333892f 100644 --- a/src/core/config/dns_client.h +++ b/src/core/config/dns_client.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the DNS Client. */ -#ifndef CONFIG_DNS_CLIENT_H_ -#define CONFIG_DNS_CLIENT_H_ +#ifndef OT_CORE_CONFIG_DNS_CLIENT_H_ +#define OT_CORE_CONFIG_DNS_CLIENT_H_ /** * @addtogroup config-dns-client @@ -203,4 +203,4 @@ * @} */ -#endif // CONFIG_DNS_CLIENT_H_ +#endif // OT_CORE_CONFIG_DNS_CLIENT_H_ diff --git a/src/core/config/dns_dso.h b/src/core/config/dns_dso.h index 044139755..bf0c9821d 100644 --- a/src/core/config/dns_dso.h +++ b/src/core/config/dns_dso.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the DNS Stateful Operations (DSO). */ -#ifndef CONFIG_DNS_DSO_H_ -#define CONFIG_DNS_DSO_H_ +#ifndef OT_CORE_CONFIG_DNS_DSO_H_ +#define OT_CORE_CONFIG_DNS_DSO_H_ /** * @addtogroup config-dns-dso @@ -94,4 +94,4 @@ * @} */ -#endif // CONFIG_DNS_DSO_H_ +#endif // OT_CORE_CONFIG_DNS_DSO_H_ diff --git a/src/core/config/dnssd_server.h b/src/core/config/dnssd_server.h index 3c5f950c0..953b41714 100644 --- a/src/core/config/dnssd_server.h +++ b/src/core/config/dnssd_server.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the DNS-SD Server. */ -#ifndef CONFIG_DNSSD_SERVER_H_ -#define CONFIG_DNSSD_SERVER_H_ +#ifndef OT_CORE_CONFIG_DNSSD_SERVER_H_ +#define OT_CORE_CONFIG_DNSSD_SERVER_H_ /** * @addtogroup config-dnssd-server @@ -113,4 +113,4 @@ * @} */ -#endif // CONFIG_DNSSD_SERVER_H_ +#endif // OT_CORE_CONFIG_DNSSD_SERVER_H_ diff --git a/src/core/config/history_tracker.h b/src/core/config/history_tracker.h index 29c7afbcf..b050253c4 100644 --- a/src/core/config/history_tracker.h +++ b/src/core/config/history_tracker.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for History Tracker module. */ -#ifndef CONFIG_HISTORY_TRACKER_H_ -#define CONFIG_HISTORY_TRACKER_H_ +#ifndef OT_CORE_CONFIG_HISTORY_TRACKER_H_ +#define OT_CORE_CONFIG_HISTORY_TRACKER_H_ /** * @addtogroup config-history-tracker @@ -249,4 +249,4 @@ * @} */ -#endif // CONFIG_HISTORY_TRACKER_H_ +#endif // OT_CORE_CONFIG_HISTORY_TRACKER_H_ diff --git a/src/core/config/ip6.h b/src/core/config/ip6.h index e4f6aae52..6a158ee8f 100644 --- a/src/core/config/ip6.h +++ b/src/core/config/ip6.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the IP6 service. */ -#ifndef CONFIG_IP6_H_ -#define CONFIG_IP6_H_ +#ifndef OT_CORE_CONFIG_IP6_H_ +#define OT_CORE_CONFIG_IP6_H_ /** * @addtogroup config-ip6 @@ -225,4 +225,4 @@ * @} */ -#endif // CONFIG_IP6_H_ +#endif // OT_CORE_CONFIG_IP6_H_ diff --git a/src/core/config/joiner.h b/src/core/config/joiner.h index d62a9399a..b428d2930 100644 --- a/src/core/config/joiner.h +++ b/src/core/config/joiner.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Joiner. */ -#ifndef CONFIG_JOINER_H_ -#define CONFIG_JOINER_H_ +#ifndef OT_CORE_CONFIG_JOINER_H_ +#define OT_CORE_CONFIG_JOINER_H_ /** * @addtogroup config-joiner @@ -65,4 +65,4 @@ * @} */ -#endif // CONFIG_JOINER_H_ +#endif // OT_CORE_CONFIG_JOINER_H_ diff --git a/src/core/config/link_metrics_manager.h b/src/core/config/link_metrics_manager.h index 81cd0ee2b..c1143b512 100644 --- a/src/core/config/link_metrics_manager.h +++ b/src/core/config/link_metrics_manager.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Link Metrics Manager. */ -#ifndef CONFIG_LINK_METRICS_MANAGER_H_ -#define CONFIG_LINK_METRICS_MANAGER_H_ +#ifndef OT_CORE_CONFIG_LINK_METRICS_MANAGER_H_ +#define OT_CORE_CONFIG_LINK_METRICS_MANAGER_H_ /** * @addtogroup config-link-metrics-manager @@ -65,4 +65,4 @@ * @} */ -#endif // CONFIG_LINK_METRICS_MANAGER_H_ +#endif // OT_CORE_CONFIG_LINK_METRICS_MANAGER_H_ diff --git a/src/core/config/link_quality.h b/src/core/config/link_quality.h index 7ad0b33a9..6200f87fc 100644 --- a/src/core/config/link_quality.h +++ b/src/core/config/link_quality.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Link Quality service. */ -#ifndef CONFIG_LINK_QUALITY_H_ -#define CONFIG_LINK_QUALITY_H_ +#ifndef OT_CORE_CONFIG_LINK_QUALITY_H_ +#define OT_CORE_CONFIG_LINK_QUALITY_H_ /** * @addtogroup config-link-quality @@ -83,4 +83,4 @@ * @} */ -#endif // CONFIG_LINK_QUALITY_H_ +#endif // OT_CORE_CONFIG_LINK_QUALITY_H_ diff --git a/src/core/config/link_raw.h b/src/core/config/link_raw.h index 73e2c7d09..5b57aaab2 100644 --- a/src/core/config/link_raw.h +++ b/src/core/config/link_raw.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Link Raw service. */ -#ifndef CONFIG_LINK_RAW_H_ -#define CONFIG_LINK_RAW_H_ +#ifndef OT_CORE_CONFIG_LINK_RAW_H_ +#define OT_CORE_CONFIG_LINK_RAW_H_ /** * @addtogroup config-link-raw @@ -56,4 +56,4 @@ * @} */ -#endif // CONFIG_LINK_RAW_H_ +#endif // OT_CORE_CONFIG_LINK_RAW_H_ diff --git a/src/core/config/logging.h b/src/core/config/logging.h index 8902a901b..4c278ee15 100644 --- a/src/core/config/logging.h +++ b/src/core/config/logging.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the logging service. */ -#ifndef CONFIG_LOGGING_H_ -#define CONFIG_LOGGING_H_ +#ifndef OT_CORE_CONFIG_LOGGING_H_ +#define OT_CORE_CONFIG_LOGGING_H_ #include @@ -187,4 +187,4 @@ * @} */ -#endif // CONFIG_LOGGING_H_ +#endif // OT_CORE_CONFIG_LOGGING_H_ diff --git a/src/core/config/mac.h b/src/core/config/mac.h index d2359a91d..896455c02 100644 --- a/src/core/config/mac.h +++ b/src/core/config/mac.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the MAC. */ -#ifndef CONFIG_MAC_H_ -#define CONFIG_MAC_H_ +#ifndef OT_CORE_CONFIG_MAC_H_ +#define OT_CORE_CONFIG_MAC_H_ /** * @addtogroup config-mac @@ -562,4 +562,4 @@ * @} */ -#endif // CONFIG_MAC_H_ +#endif // OT_CORE_CONFIG_MAC_H_ diff --git a/src/core/config/mdns.h b/src/core/config/mdns.h index 508e2f787..2c733507d 100644 --- a/src/core/config/mdns.h +++ b/src/core/config/mdns.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Multicast DNS (mDNS). */ -#ifndef CONFIG_MULTICAST_DNS_H_ -#define CONFIG_MULTICAST_DNS_H_ +#ifndef OT_CORE_CONFIG_MDNS_H_ +#define OT_CORE_CONFIG_MDNS_H_ /** * @addtogroup config-mdns @@ -155,4 +155,4 @@ * @} */ -#endif // CONFIG_MULTICAST_DNS_H_ +#endif // OT_CORE_CONFIG_MDNS_H_ diff --git a/src/core/config/mesh_diag.h b/src/core/config/mesh_diag.h index 668d8e741..da936c63b 100644 --- a/src/core/config/mesh_diag.h +++ b/src/core/config/mesh_diag.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Mesh Diagnostic module. */ -#ifndef CONFIG_MESH_DIAG_H_ -#define CONFIG_MESH_DIAG_H_ +#ifndef OT_CORE_CONFIG_MESH_DIAG_H_ +#define OT_CORE_CONFIG_MESH_DIAG_H_ /** * @addtogroup config-mesh-diag @@ -69,4 +69,4 @@ * @} */ -#endif // CONFIG_MESH_DIAG_H_ +#endif // OT_CORE_CONFIG_MESH_DIAG_H_ diff --git a/src/core/config/mesh_forwarder.h b/src/core/config/mesh_forwarder.h index 0087ba069..c8f9793ff 100644 --- a/src/core/config/mesh_forwarder.h +++ b/src/core/config/mesh_forwarder.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Mesh Forwarder. */ -#ifndef CONFIG_MESH_FORWARDER_H_ -#define CONFIG_MESH_FORWARDER_H_ +#ifndef OT_CORE_CONFIG_MESH_FORWARDER_H_ +#define OT_CORE_CONFIG_MESH_FORWARDER_H_ /** * @addtogroup config-mesh-forwarder @@ -201,4 +201,4 @@ * @} */ -#endif // CONFIG_MESH_FORWARDER_H_ +#endif // OT_CORE_CONFIG_MESH_FORWARDER_H_ diff --git a/src/core/config/misc.h b/src/core/config/misc.h index 101eafa09..f83e63cb4 100644 --- a/src/core/config/misc.h +++ b/src/core/config/misc.h @@ -31,8 +31,8 @@ * This file includes miscellaneous compile-time configuration constants for OpenThread. */ -#ifndef CONFIG_MISC_H_ -#define CONFIG_MISC_H_ +#ifndef OT_CORE_CONFIG_MISC_H_ +#define OT_CORE_CONFIG_MISC_H_ /** * @addtogroup config-misc @@ -651,4 +651,4 @@ * @} */ -#endif // CONFIG_MISC_H_ +#endif // OT_CORE_CONFIG_MISC_H_ diff --git a/src/core/config/mle.h b/src/core/config/mle.h index 506c5289a..ac74e6ee4 100644 --- a/src/core/config/mle.h +++ b/src/core/config/mle.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the MLE service. */ -#ifndef CONFIG_MLE_H_ -#define CONFIG_MLE_H_ +#ifndef OT_CORE_CONFIG_MLE_H_ +#define OT_CORE_CONFIG_MLE_H_ /** * @addtogroup config-mle @@ -351,4 +351,4 @@ * @} */ -#endif // CONFIG_MLE_H_ +#endif // OT_CORE_CONFIG_MLE_H_ diff --git a/src/core/config/nat64.h b/src/core/config/nat64.h index 38bed6d49..76e4eb179 100644 --- a/src/core/config/nat64.h +++ b/src/core/config/nat64.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for NAT64. */ -#ifndef CONFIG_NAT64_H_ -#define CONFIG_NAT64_H_ +#ifndef OT_CORE_CONFIG_NAT64_H_ +#define OT_CORE_CONFIG_NAT64_H_ /** * @addtogroup config-nat64 @@ -103,4 +103,4 @@ * @} */ -#endif +#endif // OT_CORE_CONFIG_NAT64_H_ diff --git a/src/core/config/netdata_publisher.h b/src/core/config/netdata_publisher.h index 223636626..c3a088e4b 100644 --- a/src/core/config/netdata_publisher.h +++ b/src/core/config/netdata_publisher.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Network Data Publisher. */ -#ifndef CONFIG_NETDATA_PUBLISHER_H_ -#define CONFIG_NETDATA_PUBLISHER_H_ +#ifndef OT_CORE_CONFIG_NETDATA_PUBLISHER_H_ +#define OT_CORE_CONFIG_NETDATA_PUBLISHER_H_ /** * @addtogroup config-netdata-publisher @@ -159,4 +159,4 @@ * @} */ -#endif // CONFIG_NETDATA_PUBLISHER_H_ +#endif // OT_CORE_CONFIG_NETDATA_PUBLISHER_H_ diff --git a/src/core/config/network_diagnostic.h b/src/core/config/network_diagnostic.h index 425a16d9c..b67a2d0ce 100644 --- a/src/core/config/network_diagnostic.h +++ b/src/core/config/network_diagnostic.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Network Diagnostics. */ -#ifndef CONFIG_NETWORK_DIAGNOSTIC_H_ -#define CONFIG_NETWORK_DIAGNOSTIC_H_ +#ifndef OT_CORE_CONFIG_NETWORK_DIAGNOSTIC_H_ +#define OT_CORE_CONFIG_NETWORK_DIAGNOSTIC_H_ /** * @addtogroup config-network-diagnostic @@ -101,4 +101,4 @@ * @} */ -#endif // CONFIG_NETWORK_DIAGNOSTIC_H_ +#endif // OT_CORE_CONFIG_NETWORK_DIAGNOSTIC_H_ diff --git a/src/core/config/openthread-core-config-check.h b/src/core/config/openthread-core-config-check.h index b339a1722..b6fa3f84c 100644 --- a/src/core/config/openthread-core-config-check.h +++ b/src/core/config/openthread-core-config-check.h @@ -37,8 +37,8 @@ * configuration parameter for details about behavior of each option before use. */ -#ifndef OPENTHREAD_CORE_CONFIG_CHECK_H_ -#define OPENTHREAD_CORE_CONFIG_CHECK_H_ +#ifndef OT_CORE_CONFIG_OPENTHREAD_CORE_CONFIG_CHECK_H_ +#define OT_CORE_CONFIG_OPENTHREAD_CORE_CONFIG_CHECK_H_ #if defined(OPENTHREAD_CONFIG_DISABLE_CCA_ON_LAST_ATTEMPT) || \ defined(OPENTHREAD_CONFIG_DISABLE_CSMA_CA_ON_LAST_ATTEMPT) || \ @@ -698,4 +698,4 @@ #error "OPENTHREAD_CONFIG_DTLS_ENABLE was replaced by OPENTHREAD_CONFIG_SECURE_TRANSPORT_ENABLE" #endif -#endif // OPENTHREAD_CORE_CONFIG_CHECK_H_ +#endif // OT_CORE_CONFIG_OPENTHREAD_CORE_CONFIG_CHECK_H_ diff --git a/src/core/config/p2p.h b/src/core/config/p2p.h index 9f3debb7d..d043417ba 100644 --- a/src/core/config/p2p.h +++ b/src/core/config/p2p.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the peer-to-peer (P2P). */ -#ifndef CONFIG_P2P_H_ -#define CONFIG_P2P_H_ +#ifndef OT_CORE_CONFIG_P2P_H_ +#define OT_CORE_CONFIG_P2P_H_ /** * @addtogroup config-p2p @@ -65,4 +65,4 @@ * @} */ -#endif // CONFIG_P2P_H_ +#endif // OT_CORE_CONFIG_P2P_H_ diff --git a/src/core/config/parent_search.h b/src/core/config/parent_search.h index 9caf5a120..3e0898693 100644 --- a/src/core/config/parent_search.h +++ b/src/core/config/parent_search.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for Parent Search. */ -#ifndef CONFIG_PARENT_SEARCH_H_ -#define CONFIG_PARENT_SEARCH_H_ +#ifndef OT_CORE_CONFIG_PARENT_SEARCH_H_ +#define OT_CORE_CONFIG_PARENT_SEARCH_H_ /** * @addtogroup config-parent-search @@ -149,4 +149,4 @@ * @} */ -#endif // CONFIG_PARENT_SEARCH_H_ +#endif // OT_CORE_CONFIG_PARENT_SEARCH_H_ diff --git a/src/core/config/ping_sender.h b/src/core/config/ping_sender.h index 7a3f0606a..2dd5e0c8c 100644 --- a/src/core/config/ping_sender.h +++ b/src/core/config/ping_sender.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for ping sender module. */ -#ifndef CONFIG_PING_SENDER_H_ -#define CONFIG_PING_SENDER_H_ +#ifndef OT_CORE_CONFIG_PING_SENDER_H_ +#define OT_CORE_CONFIG_PING_SENDER_H_ /** * @addtogroup config-ping-sender @@ -96,4 +96,4 @@ * @} */ -#endif // CONFIG_PING_SENDER_H_ +#endif // OT_CORE_CONFIG_PING_SENDER_H_ diff --git a/src/core/config/platform.h b/src/core/config/platform.h index bba3c9ced..f00bef8ca 100644 --- a/src/core/config/platform.h +++ b/src/core/config/platform.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for platform-specific services. */ -#ifndef CONFIG_PLATFORM_H_ -#define CONFIG_PLATFORM_H_ +#ifndef OT_CORE_CONFIG_PLATFORM_H_ +#define OT_CORE_CONFIG_PLATFORM_H_ #include "config/srp_server.h" @@ -199,4 +199,4 @@ * @} */ -#endif // CONFIG_PLATFORM_H_ +#endif // OT_CORE_CONFIG_PLATFORM_H_ diff --git a/src/core/config/power_calibration.h b/src/core/config/power_calibration.h index d19b132bf..53c5b62a9 100644 --- a/src/core/config/power_calibration.h +++ b/src/core/config/power_calibration.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for power calibration module. */ -#ifndef CONFIG_POWER_CALIBRATION_H_ -#define CONFIG_POWER_CALIBRATION_H_ +#ifndef OT_CORE_CONFIG_POWER_CALIBRATION_H_ +#define OT_CORE_CONFIG_POWER_CALIBRATION_H_ /** * @addtogroup config-power-calibration @@ -74,4 +74,4 @@ * @} */ -#endif // CONFIG_POWER_CALIBRATION_H_ +#endif // OT_CORE_CONFIG_POWER_CALIBRATION_H_ diff --git a/src/core/config/radio_link.h b/src/core/config/radio_link.h index af9ede467..e8d2a6820 100644 --- a/src/core/config/radio_link.h +++ b/src/core/config/radio_link.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the radio links. */ -#ifndef CONFIG_RADIO_LINK_H_ -#define CONFIG_RADIO_LINK_H_ +#ifndef OT_CORE_CONFIG_RADIO_LINK_H_ +#define OT_CORE_CONFIG_RADIO_LINK_H_ /** * @addtogroup config-radio-link @@ -101,4 +101,4 @@ * @} */ -#endif // CONFIG_RADIO_LINK_H_ +#endif // OT_CORE_CONFIG_RADIO_LINK_H_ diff --git a/src/core/config/secure_transport.h b/src/core/config/secure_transport.h index cfb04076d..2db62b6a5 100644 --- a/src/core/config/secure_transport.h +++ b/src/core/config/secure_transport.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for TLS/DTLS. */ -#ifndef CONFIG_SECURE_TRANSPORT_H_ -#define CONFIG_SECURE_TRANSPORT_H_ +#ifndef OT_CORE_CONFIG_SECURE_TRANSPORT_H_ +#define OT_CORE_CONFIG_SECURE_TRANSPORT_H_ /** * @addtogroup config-secure-transport @@ -72,4 +72,4 @@ * @} */ -#endif // CONFIG_SECURE_TRANSPORT_H_ +#endif // OT_CORE_CONFIG_SECURE_TRANSPORT_H_ diff --git a/src/core/config/sntp_client.h b/src/core/config/sntp_client.h index 04981c7b2..d3113b02b 100644 --- a/src/core/config/sntp_client.h +++ b/src/core/config/sntp_client.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the SNTP Client. */ -#ifndef CONFIG_SNTP_CLIENT_H_ -#define CONFIG_SNTP_CLIENT_H_ +#ifndef OT_CORE_CONFIG_SNTP_CLIENT_H_ +#define OT_CORE_CONFIG_SNTP_CLIENT_H_ /** * @addtogroup config-sntp-client @@ -74,4 +74,4 @@ * @} */ -#endif // CONFIG_SNTP_CLIENT_H_ +#endif // OT_CORE_CONFIG_SNTP_CLIENT_H_ diff --git a/src/core/config/srp_client.h b/src/core/config/srp_client.h index 29cf2e1eb..34423dc11 100644 --- a/src/core/config/srp_client.h +++ b/src/core/config/srp_client.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the SRP (Service Registration Protocol) Client. */ -#ifndef CONFIG_SRP_CLIENT_H_ -#define CONFIG_SRP_CLIENT_H_ +#ifndef OT_CORE_CONFIG_SRP_CLIENT_H_ +#define OT_CORE_CONFIG_SRP_CLIENT_H_ /** * @addtogroup config-srp-client @@ -360,4 +360,4 @@ * @} */ -#endif // CONFIG_SRP_CLIENT_H_ +#endif // OT_CORE_CONFIG_SRP_CLIENT_H_ diff --git a/src/core/config/srp_server.h b/src/core/config/srp_server.h index 82c9ba053..18170ff35 100644 --- a/src/core/config/srp_server.h +++ b/src/core/config/srp_server.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the SRP (Service Registration Protocol) Server. */ -#ifndef CONFIG_SRP_SERVER_H_ -#define CONFIG_SRP_SERVER_H_ +#ifndef OT_CORE_CONFIG_SRP_SERVER_H_ +#define OT_CORE_CONFIG_SRP_SERVER_H_ /** * @addtogroup config-srp-server @@ -142,4 +142,4 @@ * @} */ -#endif // CONFIG_SRP_SERVER_H_ +#endif // OT_CORE_CONFIG_SRP_SERVER_H_ diff --git a/src/core/config/time_sync.h b/src/core/config/time_sync.h index 78909d5d4..6464f8218 100644 --- a/src/core/config/time_sync.h +++ b/src/core/config/time_sync.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Time Sync service. */ -#ifndef CONFIG_TIME_SYNC_H_ -#define CONFIG_TIME_SYNC_H_ +#ifndef OT_CORE_CONFIG_TIME_SYNC_H_ +#define OT_CORE_CONFIG_TIME_SYNC_H_ /** * @addtogroup config-time-sync @@ -101,4 +101,4 @@ * @} */ -#endif // CONFIG_TIME_SYNC_H_ +#endif // OT_CORE_CONFIG_TIME_SYNC_H_ diff --git a/src/core/config/tmf.h b/src/core/config/tmf.h index b51558a5f..2936904fc 100644 --- a/src/core/config/tmf.h +++ b/src/core/config/tmf.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Thread Management Framework service. */ -#ifndef CONFIG_TMF_H_ -#define CONFIG_TMF_H_ +#ifndef OT_CORE_CONFIG_TMF_H_ +#define OT_CORE_CONFIG_TMF_H_ /** * @addtogroup config-tmf @@ -243,4 +243,4 @@ * @} */ -#endif // CONFIG_TMF_H_ +#endif // OT_CORE_CONFIG_TMF_H_ diff --git a/src/core/config/trel.h b/src/core/config/trel.h index f7b9d2a7c..45b2b56a8 100644 --- a/src/core/config/trel.h +++ b/src/core/config/trel.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for TREL. */ -#ifndef CONFIG_TREL_H_ -#define CONFIG_TREL_H_ +#ifndef OT_CORE_CONFIG_TREL_H_ +#define OT_CORE_CONFIG_TREL_H_ /** * @addtogroup config-trel @@ -82,4 +82,4 @@ * @} */ -#endif // CONFIG_TREL_H_ +#endif // OT_CORE_CONFIG_TREL_H_ diff --git a/src/core/config/wakeup.h b/src/core/config/wakeup.h index 08636f782..66ecaad68 100644 --- a/src/core/config/wakeup.h +++ b/src/core/config/wakeup.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the Wake-up Coordinator and Wake-up End Device roles. */ -#ifndef CONFIG_WAKEUP_H_ -#define CONFIG_WAKEUP_H_ +#ifndef OT_CORE_CONFIG_WAKEUP_H_ +#define OT_CORE_CONFIG_WAKEUP_H_ /** * @addtogroup config-wakeup @@ -148,4 +148,4 @@ * @} */ -#endif // CONFIG_WAKEUP_H_ +#endif // OT_CORE_CONFIG_WAKEUP_H_ diff --git a/src/core/crypto/aes_ccm.hpp b/src/core/crypto/aes_ccm.hpp index 8f8af575a..675ac03f5 100644 --- a/src/core/crypto/aes_ccm.hpp +++ b/src/core/crypto/aes_ccm.hpp @@ -31,8 +31,8 @@ * This file includes definitions for performing AES-CCM computations. */ -#ifndef AES_CCM_HPP_ -#define AES_CCM_HPP_ +#ifndef OT_CORE_CRYPTO_AES_CCM_HPP_ +#define OT_CORE_CRYPTO_AES_CCM_HPP_ #include "openthread-core-config.h" @@ -209,4 +209,4 @@ private: } // namespace Crypto } // namespace ot -#endif // AES_CCM_HPP_ +#endif // OT_CORE_CRYPTO_AES_CCM_HPP_ diff --git a/src/core/crypto/aes_ecb.hpp b/src/core/crypto/aes_ecb.hpp index aa08e6626..ef29ef2fa 100644 --- a/src/core/crypto/aes_ecb.hpp +++ b/src/core/crypto/aes_ecb.hpp @@ -31,8 +31,8 @@ * This file includes definitions for performing AES-ECB computations. */ -#ifndef AES_ECB_HPP_ -#define AES_ECB_HPP_ +#ifndef OT_CORE_CRYPTO_AES_ECB_HPP_ +#define OT_CORE_CRYPTO_AES_ECB_HPP_ #include "openthread-core-config.h" @@ -96,4 +96,4 @@ private: } // namespace Crypto } // namespace ot -#endif // AES_ECB_HPP_ +#endif // OT_CORE_CRYPTO_AES_ECB_HPP_ diff --git a/src/core/crypto/context_size.hpp b/src/core/crypto/context_size.hpp index c36f2b210..8d4afff7c 100644 --- a/src/core/crypto/context_size.hpp +++ b/src/core/crypto/context_size.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef CRYPTO_CONTEXT_HPP_ -#define CRYPTO_CONTEXT_HPP_ +#ifndef OT_CORE_CRYPTO_CONTEXT_SIZE_HPP_ +#define OT_CORE_CRYPTO_CONTEXT_SIZE_HPP_ #include "openthread-core-config.h" @@ -70,4 +70,4 @@ constexpr uint16_t kSha256ContextSize = OPENTHREAD_CONFIG_SHA256_CONTEXT_SIZ } // namespace Crypto } // namespace ot -#endif // CRYPTO_CONTEXT_HPP_ +#endif // OT_CORE_CRYPTO_CONTEXT_SIZE_HPP_ diff --git a/src/core/crypto/ecdsa.hpp b/src/core/crypto/ecdsa.hpp index 61f82ce4f..648db47e5 100644 --- a/src/core/crypto/ecdsa.hpp +++ b/src/core/crypto/ecdsa.hpp @@ -31,8 +31,8 @@ * This file includes definitions for performing ECDSA signing. */ -#ifndef ECDSA_HPP_ -#define ECDSA_HPP_ +#ifndef OT_CORE_CRYPTO_ECDSA_HPP_ +#define OT_CORE_CRYPTO_ECDSA_HPP_ #include "openthread-core-config.h" @@ -345,4 +345,4 @@ DefineCoreType(otPlatCryptoEcdsaPublicKey, Crypto::Ecdsa::P256::PublicKey); #endif // OPENTHREAD_CONFIG_ECDSA_ENABLE -#endif // ECDSA_HPP_ +#endif // OT_CORE_CRYPTO_ECDSA_HPP_ diff --git a/src/core/crypto/hkdf_sha256.hpp b/src/core/crypto/hkdf_sha256.hpp index 1f99a7545..b2fed0c81 100644 --- a/src/core/crypto/hkdf_sha256.hpp +++ b/src/core/crypto/hkdf_sha256.hpp @@ -32,8 +32,8 @@ * SHA-256. */ -#ifndef HKDF_SHA256_HPP_ -#define HKDF_SHA256_HPP_ +#ifndef OT_CORE_CRYPTO_HKDF_SHA256_HPP_ +#define OT_CORE_CRYPTO_HKDF_SHA256_HPP_ #include "openthread-core-config.h" @@ -104,4 +104,4 @@ private: } // namespace Crypto } // namespace ot -#endif // HKDF_SHA256_HPP_ +#endif // OT_CORE_CRYPTO_HKDF_SHA256_HPP_ diff --git a/src/core/crypto/hmac_sha256.hpp b/src/core/crypto/hmac_sha256.hpp index 20586e2f1..dcfb25406 100644 --- a/src/core/crypto/hmac_sha256.hpp +++ b/src/core/crypto/hmac_sha256.hpp @@ -31,8 +31,8 @@ * This file includes definitions for performing HMAC SHA-256 computations. */ -#ifndef HMAC_SHA256_HPP_ -#define HMAC_SHA256_HPP_ +#ifndef OT_CORE_CRYPTO_HMAC_SHA256_HPP_ +#define OT_CORE_CRYPTO_HMAC_SHA256_HPP_ #include "openthread-core-config.h" @@ -134,4 +134,4 @@ private: } // namespace Crypto } // namespace ot -#endif // HMAC_SHA256_HPP_ +#endif // OT_CORE_CRYPTO_HMAC_SHA256_HPP_ diff --git a/src/core/crypto/mbedtls.hpp b/src/core/crypto/mbedtls.hpp index 344fc6b59..17dba846a 100644 --- a/src/core/crypto/mbedtls.hpp +++ b/src/core/crypto/mbedtls.hpp @@ -31,8 +31,8 @@ * This file includes definitions for using mbedTLS. */ -#ifndef OT_MBEDTLS_HPP_ -#define OT_MBEDTLS_HPP_ +#ifndef OT_CORE_CRYPTO_MBEDTLS_HPP_ +#define OT_CORE_CRYPTO_MBEDTLS_HPP_ #include "openthread-core-config.h" @@ -107,4 +107,4 @@ public: } // namespace Crypto } // namespace ot -#endif // OT_MBEDTLS_HPP_ +#endif // OT_CORE_CRYPTO_MBEDTLS_HPP_ diff --git a/src/core/crypto/sha256.hpp b/src/core/crypto/sha256.hpp index a30bd3c6a..2e6c272a7 100644 --- a/src/core/crypto/sha256.hpp +++ b/src/core/crypto/sha256.hpp @@ -31,8 +31,8 @@ * This file includes definitions for performing SHA-256 computations. */ -#ifndef SHA256_HPP_ -#define SHA256_HPP_ +#ifndef OT_CORE_CRYPTO_SHA256_HPP_ +#define OT_CORE_CRYPTO_SHA256_HPP_ #include "openthread-core-config.h" @@ -149,4 +149,4 @@ DefineCoreType(otCryptoSha256Hash, Crypto::Sha256::Hash); } // namespace ot -#endif // SHA256_HPP_ +#endif // OT_CORE_CRYPTO_SHA256_HPP_ diff --git a/src/core/crypto/storage.hpp b/src/core/crypto/storage.hpp index 5649c08d2..243923c8e 100644 --- a/src/core/crypto/storage.hpp +++ b/src/core/crypto/storage.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Crypto Internal Trusted Storage (ITS) APIs. */ -#ifndef STORAGE_HPP_ -#define STORAGE_HPP_ +#ifndef OT_CORE_CRYPTO_STORAGE_HPP_ +#define OT_CORE_CRYPTO_STORAGE_HPP_ #include "openthread-core-config.h" @@ -394,4 +394,4 @@ DefineCoreType(otCryptoKey, Crypto::Key); } // namespace ot -#endif // STORAGE_HPP_ +#endif // OT_CORE_CRYPTO_STORAGE_HPP_ diff --git a/src/core/diags/factory_diags.hpp b/src/core/diags/factory_diags.hpp index 53faaf63d..4f8347f38 100644 --- a/src/core/diags/factory_diags.hpp +++ b/src/core/diags/factory_diags.hpp @@ -31,8 +31,8 @@ * This file contains definitions for the diagnostics module. */ -#ifndef FACTORY_DIAGS_HPP_ -#define FACTORY_DIAGS_HPP_ +#ifndef OT_CORE_DIAGS_FACTORY_DIAGS_HPP_ +#define OT_CORE_DIAGS_FACTORY_DIAGS_HPP_ #include "openthread-core-config.h" @@ -285,4 +285,4 @@ private: #endif // #if OPENTHREAD_CONFIG_DIAG_ENABLE -#endif // FACTORY_DIAGS_HPP_ +#endif // OT_CORE_DIAGS_FACTORY_DIAGS_HPP_ diff --git a/src/core/instance/extension.hpp b/src/core/instance/extension.hpp index 3f9e09b67..068782848 100644 --- a/src/core/instance/extension.hpp +++ b/src/core/instance/extension.hpp @@ -31,8 +31,8 @@ * This file includes definitions for OpenThread vendor extension hooks. */ -#ifndef EXTENSION_HPP_ -#define EXTENSION_HPP_ +#ifndef OT_CORE_INSTANCE_EXTENSION_HPP_ +#define OT_CORE_INSTANCE_EXTENSION_HPP_ #include "openthread-core-config.h" @@ -123,4 +123,4 @@ protected: #endif // #if OPENTHREAD_ENABLE_VENDOR_EXTENSION -#endif // EXTENSION_HPP_ +#endif // OT_CORE_INSTANCE_EXTENSION_HPP_ diff --git a/src/core/instance/instance.hpp b/src/core/instance/instance.hpp index 3974855f0..006201fdc 100644 --- a/src/core/instance/instance.hpp +++ b/src/core/instance/instance.hpp @@ -31,8 +31,8 @@ * This file defines OpenThread instance class. */ -#ifndef INSTANCE_HPP_ -#define INSTANCE_HPP_ +#ifndef OT_CORE_INSTANCE_INSTANCE_HPP_ +#define OT_CORE_INSTANCE_INSTANCE_HPP_ #include "openthread-core-config.h" @@ -1231,4 +1231,4 @@ void TimerMicroIn::HandleTimer(Timer &aTimer) } // namespace ot -#endif // INSTANCE_HPP_ +#endif // OT_CORE_INSTANCE_INSTANCE_HPP_ diff --git a/src/core/mac/channel_mask.hpp b/src/core/mac/channel_mask.hpp index e7dd47cc2..19fef7df0 100644 --- a/src/core/mac/channel_mask.hpp +++ b/src/core/mac/channel_mask.hpp @@ -31,8 +31,8 @@ * This file includes definitions for MAC Channel Mask */ -#ifndef MAC_CHANNEL_MASK_HPP_ -#define MAC_CHANNEL_MASK_HPP_ +#ifndef OT_CORE_MAC_CHANNEL_MASK_HPP_ +#define OT_CORE_MAC_CHANNEL_MASK_HPP_ #include "openthread-core-config.h" @@ -237,4 +237,4 @@ private: } // namespace Mac } // namespace ot -#endif // MAC_CHANNEL_MASK_HPP_ +#endif // OT_CORE_MAC_CHANNEL_MASK_HPP_ diff --git a/src/core/mac/data_poll_handler.hpp b/src/core/mac/data_poll_handler.hpp index 755f735ed..42df28b38 100644 --- a/src/core/mac/data_poll_handler.hpp +++ b/src/core/mac/data_poll_handler.hpp @@ -31,8 +31,8 @@ * This file includes definitions for handling of data polls and indirect frame transmission. */ -#ifndef DATA_POLL_HANDLER_HPP_ -#define DATA_POLL_HANDLER_HPP_ +#ifndef OT_CORE_MAC_DATA_POLL_HANDLER_HPP_ +#define OT_CORE_MAC_DATA_POLL_HANDLER_HPP_ #include "openthread-core-config.h" @@ -207,4 +207,4 @@ private: } // namespace ot -#endif // DATA_POLL_HANDLER_HPP_ +#endif // OT_CORE_MAC_DATA_POLL_HANDLER_HPP_ diff --git a/src/core/mac/data_poll_sender.hpp b/src/core/mac/data_poll_sender.hpp index 1c532ab51..01bb15f1b 100644 --- a/src/core/mac/data_poll_sender.hpp +++ b/src/core/mac/data_poll_sender.hpp @@ -31,8 +31,8 @@ * This file includes definitions for data poll (mac data request command) sender. */ -#ifndef DATA_POLL_MANAGER_HPP_ -#define DATA_POLL_MANAGER_HPP_ +#ifndef OT_CORE_MAC_DATA_POLL_SENDER_HPP_ +#define OT_CORE_MAC_DATA_POLL_SENDER_HPP_ #include "openthread-core-config.h" @@ -287,4 +287,4 @@ private: } // namespace ot -#endif // DATA_POLL_MANAGER_HPP_ +#endif // OT_CORE_MAC_DATA_POLL_SENDER_HPP_ diff --git a/src/core/mac/link_raw.hpp b/src/core/mac/link_raw.hpp index 162ff56e3..1d715133e 100644 --- a/src/core/mac/link_raw.hpp +++ b/src/core/mac/link_raw.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Raw Link-Layer class. */ -#ifndef LINK_RAW_HPP_ -#define LINK_RAW_HPP_ +#ifndef OT_CORE_MAC_LINK_RAW_HPP_ +#define OT_CORE_MAC_LINK_RAW_HPP_ #include "openthread-core-config.h" @@ -308,4 +308,4 @@ private: #endif // OPENTHREAD_RADIO || OPENTHREAD_CONFIG_LINK_RAW_ENABLE -#endif // LINK_RAW_HPP_ +#endif // OT_CORE_MAC_LINK_RAW_HPP_ diff --git a/src/core/mac/mac.hpp b/src/core/mac/mac.hpp index ec79e9f69..790823b73 100644 --- a/src/core/mac/mac.hpp +++ b/src/core/mac/mac.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the IEEE 802.15.4 MAC. */ -#ifndef MAC_HPP_ -#define MAC_HPP_ +#ifndef OT_CORE_MAC_MAC_HPP_ +#define OT_CORE_MAC_MAC_HPP_ #include "openthread-core-config.h" @@ -958,4 +958,4 @@ private: } // namespace Mac } // namespace ot -#endif // MAC_HPP_ +#endif // OT_CORE_MAC_MAC_HPP_ diff --git a/src/core/mac/mac_filter.hpp b/src/core/mac/mac_filter.hpp index 9bdcf651d..f1bb210e8 100644 --- a/src/core/mac/mac_filter.hpp +++ b/src/core/mac/mac_filter.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IEEE 802.15.4 frame filtering based on MAC address. */ -#ifndef MAC_FILTER_HPP_ -#define MAC_FILTER_HPP_ +#ifndef OT_CORE_MAC_MAC_FILTER_HPP_ +#define OT_CORE_MAC_MAC_FILTER_HPP_ #include "openthread-core-config.h" @@ -256,4 +256,4 @@ DefineMapEnum(otMacFilterAddressMode, Mac::Filter::Mode); #endif // OPENTHREAD_CONFIG_MAC_FILTER_ENABLE -#endif // MAC_FILTER_HPP_ +#endif // OT_CORE_MAC_MAC_FILTER_HPP_ diff --git a/src/core/mac/mac_frame.hpp b/src/core/mac/mac_frame.hpp index e87e701a6..0e55fb091 100644 --- a/src/core/mac/mac_frame.hpp +++ b/src/core/mac/mac_frame.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing IEEE 802.15.4 MAC frames. */ -#ifndef MAC_FRAME_HPP_ -#define MAC_FRAME_HPP_ +#ifndef OT_CORE_MAC_MAC_FRAME_HPP_ +#define OT_CORE_MAC_MAC_FRAME_HPP_ #include "openthread-core-config.h" @@ -1528,4 +1528,4 @@ private: } // namespace Mac } // namespace ot -#endif // MAC_FRAME_HPP_ +#endif // OT_CORE_MAC_MAC_FRAME_HPP_ diff --git a/src/core/mac/mac_header_ie.hpp b/src/core/mac/mac_header_ie.hpp index ec98201f3..e36234b2a 100644 --- a/src/core/mac/mac_header_ie.hpp +++ b/src/core/mac/mac_header_ie.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing IEEE 802.15.4 IE (Information Element). */ -#ifndef MAC_HEADER_IE_HPP_ -#define MAC_HEADER_IE_HPP_ +#ifndef OT_CORE_MAC_MAC_HEADER_IE_HPP_ +#define OT_CORE_MAC_MAC_HEADER_IE_HPP_ #include "openthread-core-config.h" @@ -426,4 +426,4 @@ private: } // namespace Mac } // namespace ot -#endif // MAC_HEADER_IE_HPP_ +#endif // OT_CORE_MAC_MAC_HEADER_IE_HPP_ diff --git a/src/core/mac/mac_links.hpp b/src/core/mac/mac_links.hpp index ac668bec3..5610ec0c7 100644 --- a/src/core/mac/mac_links.hpp +++ b/src/core/mac/mac_links.hpp @@ -31,8 +31,8 @@ * This file includes definitions for MAC radio links. */ -#ifndef MAC_LINKS_HPP_ -#define MAC_LINKS_HPP_ +#ifndef OT_CORE_MAC_MAC_LINKS_HPP_ +#define OT_CORE_MAC_MAC_LINKS_HPP_ #include "openthread-core-config.h" @@ -696,4 +696,4 @@ private: } // namespace Mac } // namespace ot -#endif // MAC_LINKS_HPP_ +#endif // OT_CORE_MAC_MAC_LINKS_HPP_ diff --git a/src/core/mac/mac_types.hpp b/src/core/mac/mac_types.hpp index 04dbc4da0..34532fdf0 100644 --- a/src/core/mac/mac_types.hpp +++ b/src/core/mac/mac_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for MAC types. */ -#ifndef MAC_TYPES_HPP_ -#define MAC_TYPES_HPP_ +#ifndef OT_CORE_MAC_MAC_TYPES_HPP_ +#define OT_CORE_MAC_MAC_TYPES_HPP_ #include "openthread-core-config.h" @@ -1105,4 +1105,4 @@ DefineMapEnum(otWakeupType, Mac::WakeupRequest::Type); } // namespace ot -#endif // MAC_TYPES_HPP_ +#endif // OT_CORE_MAC_MAC_TYPES_HPP_ diff --git a/src/core/mac/sub_mac.hpp b/src/core/mac/sub_mac.hpp index 5437a0a3f..2e5298089 100644 --- a/src/core/mac/sub_mac.hpp +++ b/src/core/mac/sub_mac.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the IEEE 802.15.4 MAC layer (sub-MAC). */ -#ifndef SUB_MAC_HPP_ -#define SUB_MAC_HPP_ +#ifndef OT_CORE_MAC_SUB_MAC_HPP_ +#define OT_CORE_MAC_SUB_MAC_HPP_ #include "openthread-core-config.h" @@ -703,4 +703,4 @@ private: } // namespace Mac } // namespace ot -#endif // SUB_MAC_HPP_ +#endif // OT_CORE_MAC_SUB_MAC_HPP_ diff --git a/src/core/mac/wakeup_tx_scheduler.hpp b/src/core/mac/wakeup_tx_scheduler.hpp index aec94c8d0..0e8bf9fbe 100644 --- a/src/core/mac/wakeup_tx_scheduler.hpp +++ b/src/core/mac/wakeup_tx_scheduler.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef WAKEUP_TX_SCHEDULER_HPP_ -#define WAKEUP_TX_SCHEDULER_HPP_ +#ifndef OT_CORE_MAC_WAKEUP_TX_SCHEDULER_HPP_ +#define OT_CORE_MAC_WAKEUP_TX_SCHEDULER_HPP_ #include "openthread-core-config.h" @@ -134,4 +134,4 @@ private: #endif // OPENTHREAD_CONFIG_WAKEUP_COORDINATOR_ENABLE -#endif // WAKEUP_TX_SCHEDULER_HPP_ +#endif // OT_CORE_MAC_WAKEUP_TX_SCHEDULER_HPP_ diff --git a/src/core/meshcop/announce_begin_client.hpp b/src/core/meshcop/announce_begin_client.hpp index 95f36e26a..06a4638b2 100644 --- a/src/core/meshcop/announce_begin_client.hpp +++ b/src/core/meshcop/announce_begin_client.hpp @@ -31,8 +31,8 @@ * This file includes definitions for responding to Announce Requests. */ -#ifndef ANNOUNCE_BEGIN_CLIENT_HPP_ -#define ANNOUNCE_BEGIN_CLIENT_HPP_ +#ifndef OT_CORE_MESHCOP_ANNOUNCE_BEGIN_CLIENT_HPP_ +#define OT_CORE_MESHCOP_ANNOUNCE_BEGIN_CLIENT_HPP_ #include "openthread-core-config.h" @@ -78,4 +78,4 @@ public: #endif // OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD -#endif // ANNOUNCE_BEGIN_CLIENT_HPP_ +#endif // OT_CORE_MESHCOP_ANNOUNCE_BEGIN_CLIENT_HPP_ diff --git a/src/core/meshcop/border_agent.hpp b/src/core/meshcop/border_agent.hpp index fef489a5e..dbdd5ba34 100644 --- a/src/core/meshcop/border_agent.hpp +++ b/src/core/meshcop/border_agent.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the BorderAgent role. */ -#ifndef BORDER_AGENT_HPP_ -#define BORDER_AGENT_HPP_ +#ifndef OT_CORE_MESHCOP_BORDER_AGENT_HPP_ +#define OT_CORE_MESHCOP_BORDER_AGENT_HPP_ #include "openthread-core-config.h" @@ -424,4 +424,4 @@ DefineCoreType(otBorderAgentSessionIterator, MeshCoP::BorderAgent::Manager::Sess #endif // OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE -#endif // BORDER_AGENT_HPP_ +#endif // OT_CORE_MESHCOP_BORDER_AGENT_HPP_ diff --git a/src/core/meshcop/border_agent_ephemeral_key.hpp b/src/core/meshcop/border_agent_ephemeral_key.hpp index 16cdcf1bb..057a1f535 100644 --- a/src/core/meshcop/border_agent_ephemeral_key.hpp +++ b/src/core/meshcop/border_agent_ephemeral_key.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Border Agent Ephemeral Key Manager. */ -#ifndef BORDER_AGENT_EPHEMERAL_KEY_HPP_ -#define BORDER_AGENT_EPHEMERAL_KEY_HPP_ +#ifndef OT_CORE_MESHCOP_BORDER_AGENT_EPHEMERAL_KEY_HPP_ +#define OT_CORE_MESHCOP_BORDER_AGENT_EPHEMERAL_KEY_HPP_ #include "openthread-core-config.h" @@ -271,4 +271,4 @@ DefineCoreType(otBorderAgentEphemeralKeyTap, MeshCoP::BorderAgent::EphemeralKeyM #endif // OPENTHREAD_CONFIG_BORDER_AGENT_ENABLE && OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE -#endif // BORDER_AGENT_EPHEMERAL_KEY_HPP_ +#endif // OT_CORE_MESHCOP_BORDER_AGENT_EPHEMERAL_KEY_HPP_ diff --git a/src/core/meshcop/border_agent_tracker.hpp b/src/core/meshcop/border_agent_tracker.hpp index b8e024e12..73fed9b47 100644 --- a/src/core/meshcop/border_agent_tracker.hpp +++ b/src/core/meshcop/border_agent_tracker.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Border Agent Tracker. */ -#ifndef BORDER_AGENT_TRACKER_HPP_ -#define BORDER_AGENT_TRACKER_HPP_ +#ifndef OT_CORE_MESHCOP_BORDER_AGENT_TRACKER_HPP_ +#define OT_CORE_MESHCOP_BORDER_AGENT_TRACKER_HPP_ #include "openthread-core-config.h" @@ -245,4 +245,4 @@ DefineCoreType(otBorderAgentTrackerIterator, MeshCoP::BorderAgent::Tracker::Iter #endif // OPENTHREAD_CONFIG_BORDER_AGENT_TRACKER_ENABLE -#endif // BORDER_AGENT_TRACKER_HPP_ +#endif // OT_CORE_MESHCOP_BORDER_AGENT_TRACKER_HPP_ diff --git a/src/core/meshcop/border_agent_txt_data.hpp b/src/core/meshcop/border_agent_txt_data.hpp index 83fe926e4..13b6ac604 100644 --- a/src/core/meshcop/border_agent_txt_data.hpp +++ b/src/core/meshcop/border_agent_txt_data.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Border Agent MeshCoP service TXT data. */ -#ifndef BORDER_AGENT_TXT_DATA_HPP_ -#define BORDER_AGENT_TXT_DATA_HPP_ +#ifndef OT_CORE_MESHCOP_BORDER_AGENT_TXT_DATA_HPP_ +#define OT_CORE_MESHCOP_BORDER_AGENT_TXT_DATA_HPP_ #include "openthread-core-config.h" @@ -343,4 +343,4 @@ DefineCoreType(otBorderAgentTxtDataInfo, MeshCoP::BorderAgent::TxtData::Info); } // namespace ot -#endif // BORDER_AGENT_TXT_DATA_HPP_ +#endif // OT_CORE_MESHCOP_BORDER_AGENT_TXT_DATA_HPP_ diff --git a/src/core/meshcop/commissioner.hpp b/src/core/meshcop/commissioner.hpp index 8e7dc4d5f..bfa89b423 100644 --- a/src/core/meshcop/commissioner.hpp +++ b/src/core/meshcop/commissioner.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Commissioner role. */ -#ifndef COMMISSIONER_HPP_ -#define COMMISSIONER_HPP_ +#ifndef OT_CORE_MESHCOP_COMMISSIONER_HPP_ +#define OT_CORE_MESHCOP_COMMISSIONER_HPP_ #include "openthread-core-config.h" @@ -468,4 +468,4 @@ DefineMapEnum(otCommissionerJoinerEvent, MeshCoP::Commissioner::JoinerEvent); #endif // OPENTHREAD_FTD && OPENTHREAD_CONFIG_COMMISSIONER_ENABLE -#endif // COMMISSIONER_HPP_ +#endif // OT_CORE_MESHCOP_COMMISSIONER_HPP_ diff --git a/src/core/meshcop/dataset.hpp b/src/core/meshcop/dataset.hpp index cd202c872..b267f3bfe 100644 --- a/src/core/meshcop/dataset.hpp +++ b/src/core/meshcop/dataset.hpp @@ -31,8 +31,8 @@ * This file includes definitions for managing MeshCoP Datasets. */ -#ifndef MESHCOP_DATASET_HPP_ -#define MESHCOP_DATASET_HPP_ +#ifndef OT_CORE_MESHCOP_DATASET_HPP_ +#define OT_CORE_MESHCOP_DATASET_HPP_ #include "openthread-core-config.h" @@ -785,4 +785,4 @@ DefineCoreType(otOperationalDataset, MeshCoP::Dataset::Info); } // namespace ot -#endif // MESHCOP_DATASET_HPP_ +#endif // OT_CORE_MESHCOP_DATASET_HPP_ diff --git a/src/core/meshcop/dataset_manager.hpp b/src/core/meshcop/dataset_manager.hpp index 962dc446b..0518bd177 100644 --- a/src/core/meshcop/dataset_manager.hpp +++ b/src/core/meshcop/dataset_manager.hpp @@ -31,8 +31,8 @@ * This file includes definitions for managing MeshCoP Datasets. */ -#ifndef MESHCOP_DATASET_MANAGER_HPP_ -#define MESHCOP_DATASET_MANAGER_HPP_ +#ifndef OT_CORE_MESHCOP_DATASET_MANAGER_HPP_ +#define OT_CORE_MESHCOP_DATASET_MANAGER_HPP_ #include "openthread-core-config.h" @@ -495,4 +495,4 @@ DeclareTmfHandler(PendingDatasetManager, kUriPendingSet); } // namespace MeshCoP } // namespace ot -#endif // MESHCOP_DATASET_MANAGER_HPP_ +#endif // OT_CORE_MESHCOP_DATASET_MANAGER_HPP_ diff --git a/src/core/meshcop/dataset_updater.hpp b/src/core/meshcop/dataset_updater.hpp index 66568463a..a14b09eca 100644 --- a/src/core/meshcop/dataset_updater.hpp +++ b/src/core/meshcop/dataset_updater.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Dataset Updater. */ -#ifndef DATASET_UPDATER_HPP_ -#define DATASET_UPDATER_HPP_ +#ifndef OT_CORE_MESHCOP_DATASET_UPDATER_HPP_ +#define OT_CORE_MESHCOP_DATASET_UPDATER_HPP_ #include "openthread-core-config.h" @@ -127,4 +127,4 @@ private: #endif // (OPENTHREAD_CONFIG_DATASET_UPDATER_ENABLE || OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE) && OPENTHREAD_FTD -#endif // DATASET_UPDATER_HPP_ +#endif // OT_CORE_MESHCOP_DATASET_UPDATER_HPP_ diff --git a/src/core/meshcop/energy_scan_client.hpp b/src/core/meshcop/energy_scan_client.hpp index b523021b1..c6d45ed6d 100644 --- a/src/core/meshcop/energy_scan_client.hpp +++ b/src/core/meshcop/energy_scan_client.hpp @@ -31,8 +31,8 @@ * This file includes definitions for responding to PANID Query Requests. */ -#ifndef ENERGY_SCAN_CLIENT_HPP_ -#define ENERGY_SCAN_CLIENT_HPP_ +#ifndef OT_CORE_MESHCOP_ENERGY_SCAN_CLIENT_HPP_ +#define OT_CORE_MESHCOP_ENERGY_SCAN_CLIENT_HPP_ #include "openthread-core-config.h" @@ -100,4 +100,4 @@ DeclareTmfHandler(EnergyScanClient, kUriEnergyReport); #endif // OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD -#endif // ENERGY_SCAN_CLIENT_HPP_ +#endif // OT_CORE_MESHCOP_ENERGY_SCAN_CLIENT_HPP_ diff --git a/src/core/meshcop/extended_panid.hpp b/src/core/meshcop/extended_panid.hpp index b8f2ccbd8..7b60472d0 100644 --- a/src/core/meshcop/extended_panid.hpp +++ b/src/core/meshcop/extended_panid.hpp @@ -31,8 +31,8 @@ * This file includes definitions for managing the Extended PAN ID. */ -#ifndef MESHCOP_EXTENDED_PANID_HPP_ -#define MESHCOP_EXTENDED_PANID_HPP_ +#ifndef OT_CORE_MESHCOP_EXTENDED_PANID_HPP_ +#define OT_CORE_MESHCOP_EXTENDED_PANID_HPP_ #include "openthread-core-config.h" @@ -107,4 +107,4 @@ DefineCoreType(otExtendedPanId, MeshCoP::ExtendedPanId); } // namespace ot -#endif // MESHCOP_EXTENDED_PANID_HPP_ +#endif // OT_CORE_MESHCOP_EXTENDED_PANID_HPP_ diff --git a/src/core/meshcop/joiner.hpp b/src/core/meshcop/joiner.hpp index c88de2399..d07a8f779 100644 --- a/src/core/meshcop/joiner.hpp +++ b/src/core/meshcop/joiner.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Joiner role. */ -#ifndef JOINER_HPP_ -#define JOINER_HPP_ +#ifndef OT_CORE_MESHCOP_JOINER_HPP_ +#define OT_CORE_MESHCOP_JOINER_HPP_ #include "openthread-core-config.h" @@ -246,4 +246,4 @@ DefineMapEnum(otJoinerState, MeshCoP::Joiner::State); #endif // OPENTHREAD_CONFIG_JOINER_ENABLE -#endif // JOINER_HPP_ +#endif // OT_CORE_MESHCOP_JOINER_HPP_ diff --git a/src/core/meshcop/joiner_router.hpp b/src/core/meshcop/joiner_router.hpp index 51fb2121d..b38131780 100644 --- a/src/core/meshcop/joiner_router.hpp +++ b/src/core/meshcop/joiner_router.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Joiner Router role. */ -#ifndef JOINER_ROUTER_HPP_ -#define JOINER_ROUTER_HPP_ +#ifndef OT_CORE_MESHCOP_JOINER_ROUTER_HPP_ +#define OT_CORE_MESHCOP_JOINER_ROUTER_HPP_ #include "openthread-core-config.h" @@ -128,4 +128,4 @@ DeclareTmfHandler(JoinerRouter, kUriRelayTx); #endif // OPENTHREAD_FTD -#endif // JOINER_ROUTER_HPP_ +#endif // OT_CORE_MESHCOP_JOINER_ROUTER_HPP_ diff --git a/src/core/meshcop/meshcop.hpp b/src/core/meshcop/meshcop.hpp index fffc8f3d5..88f7d86d0 100644 --- a/src/core/meshcop/meshcop.hpp +++ b/src/core/meshcop/meshcop.hpp @@ -31,8 +31,8 @@ * This file includes definitions for MeshCoP. */ -#ifndef MESHCOP_HPP_ -#define MESHCOP_HPP_ +#ifndef OT_CORE_MESHCOP_MESHCOP_HPP_ +#define OT_CORE_MESHCOP_MESHCOP_HPP_ #include "openthread-core-config.h" @@ -597,4 +597,4 @@ DefineCoreType(otCommissioningDataset, MeshCoP::CommissioningDataset); } // namespace ot -#endif // MESHCOP_HPP_ +#endif // OT_CORE_MESHCOP_MESHCOP_HPP_ diff --git a/src/core/meshcop/meshcop_leader.hpp b/src/core/meshcop/meshcop_leader.hpp index ad8172f62..8008bb6c9 100644 --- a/src/core/meshcop/meshcop_leader.hpp +++ b/src/core/meshcop/meshcop_leader.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a MeshCoP Leader. */ -#ifndef MESHCOP_LEADER_HPP_ -#define MESHCOP_LEADER_HPP_ +#ifndef OT_CORE_MESHCOP_MESHCOP_LEADER_HPP_ +#define OT_CORE_MESHCOP_MESHCOP_LEADER_HPP_ #include "openthread-core-config.h" @@ -127,4 +127,4 @@ DeclareTmfHandler(Leader, kUriLeaderKeepAlive); #endif // OPENTHREAD_FTD -#endif // MESHCOP_LEADER_HPP_ +#endif // OT_CORE_MESHCOP_MESHCOP_LEADER_HPP_ diff --git a/src/core/meshcop/meshcop_tlvs.hpp b/src/core/meshcop/meshcop_tlvs.hpp index 4e762ebe9..e319b204b 100644 --- a/src/core/meshcop/meshcop_tlvs.hpp +++ b/src/core/meshcop/meshcop_tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing MeshCoP TLVs. */ -#ifndef MESHCOP_TLVS_HPP_ -#define MESHCOP_TLVS_HPP_ +#ifndef OT_CORE_MESHCOP_MESHCOP_TLVS_HPP_ +#define OT_CORE_MESHCOP_MESHCOP_TLVS_HPP_ #include "openthread-core-config.h" @@ -1198,4 +1198,4 @@ private: } // namespace ot -#endif // MESHCOP_TLVS_HPP_ +#endif // OT_CORE_MESHCOP_MESHCOP_TLVS_HPP_ diff --git a/src/core/meshcop/network_name.hpp b/src/core/meshcop/network_name.hpp index 4b2f56d4c..1f3f970eb 100644 --- a/src/core/meshcop/network_name.hpp +++ b/src/core/meshcop/network_name.hpp @@ -31,8 +31,8 @@ * This file includes definitions for managing the Network Name. */ -#ifndef MESHCOP_NETWORK_NAME_HPP_ -#define MESHCOP_NETWORK_NAME_HPP_ +#ifndef OT_CORE_MESHCOP_NETWORK_NAME_HPP_ +#define OT_CORE_MESHCOP_NETWORK_NAME_HPP_ #include "openthread-core-config.h" @@ -263,4 +263,4 @@ DefineCoreType(otNetworkName, MeshCoP::NetworkName); } // namespace ot -#endif // MESHCOP_EXTENDED_PANID_HPP_ +#endif // OT_CORE_MESHCOP_NETWORK_NAME_HPP_ diff --git a/src/core/meshcop/panid_query_client.hpp b/src/core/meshcop/panid_query_client.hpp index 25291a4ad..8b259568a 100644 --- a/src/core/meshcop/panid_query_client.hpp +++ b/src/core/meshcop/panid_query_client.hpp @@ -31,8 +31,8 @@ * This file includes definitions for responding to PANID Query Requests. */ -#ifndef PANID_QUERY_CLIENT_HPP_ -#define PANID_QUERY_CLIENT_HPP_ +#ifndef OT_CORE_MESHCOP_PANID_QUERY_CLIENT_HPP_ +#define OT_CORE_MESHCOP_PANID_QUERY_CLIENT_HPP_ #include "openthread-core-config.h" @@ -95,4 +95,4 @@ DeclareTmfHandler(PanIdQueryClient, kUriPanIdConflict); #endif // OPENTHREAD_CONFIG_COMMISSIONER_ENABLE && OPENTHREAD_FTD -#endif // PANID_QUERY_CLIENT_HPP_ +#endif // OT_CORE_MESHCOP_PANID_QUERY_CLIENT_HPP_ diff --git a/src/core/meshcop/secure_transport.hpp b/src/core/meshcop/secure_transport.hpp index ee7afff89..cdcdc015c 100644 --- a/src/core/meshcop/secure_transport.hpp +++ b/src/core/meshcop/secure_transport.hpp @@ -31,8 +31,8 @@ * This file includes definitions for using mbedTLS. */ -#ifndef SECURE_TRANSPORT_HPP_ -#define SECURE_TRANSPORT_HPP_ +#ifndef OT_CORE_MESHCOP_SECURE_TRANSPORT_HPP_ +#define OT_CORE_MESHCOP_SECURE_TRANSPORT_HPP_ #include "openthread-core-config.h" @@ -938,4 +938,4 @@ private: } // namespace MeshCoP } // namespace ot -#endif // SECURE_TRANSPORT_HPP_ +#endif // OT_CORE_MESHCOP_SECURE_TRANSPORT_HPP_ diff --git a/src/core/meshcop/tcat_agent.hpp b/src/core/meshcop/tcat_agent.hpp index 9734ef625..271acad1c 100644 --- a/src/core/meshcop/tcat_agent.hpp +++ b/src/core/meshcop/tcat_agent.hpp @@ -31,8 +31,8 @@ * Implements the TCAT Agent service. */ -#ifndef TCAT_AGENT_HPP_ -#define TCAT_AGENT_HPP_ +#ifndef OT_CORE_MESHCOP_TCAT_AGENT_HPP_ +#define OT_CORE_MESHCOP_TCAT_AGENT_HPP_ #include "openthread-core-config.h" @@ -556,4 +556,4 @@ DefineMapEnum(otTcatAdvertisedDeviceIdType, MeshCoP::TcatAgent::TcatDeviceIdType #endif // OPENTHREAD_CONFIG_BLE_TCAT_ENABLE -#endif // TCAT_AGENT_HPP_ +#endif // OT_CORE_MESHCOP_TCAT_AGENT_HPP_ diff --git a/src/core/meshcop/timestamp.hpp b/src/core/meshcop/timestamp.hpp index 4d4051c1c..a71094e40 100644 --- a/src/core/meshcop/timestamp.hpp +++ b/src/core/meshcop/timestamp.hpp @@ -31,8 +31,8 @@ * This file includes definitions for manipulating MeshCoP timestamps. */ -#ifndef MESHCOP_TIMESTAMP_HPP_ -#define MESHCOP_TIMESTAMP_HPP_ +#ifndef OT_CORE_MESHCOP_TIMESTAMP_HPP_ +#define OT_CORE_MESHCOP_TIMESTAMP_HPP_ #include "openthread-core-config.h" @@ -190,4 +190,4 @@ private: } // namespace MeshCoP } // namespace ot -#endif // MESHCOP_TIMESTAMP_HPP_ +#endif // OT_CORE_MESHCOP_TIMESTAMP_HPP_ diff --git a/src/core/net/checksum.hpp b/src/core/net/checksum.hpp index f2c052251..d5ac85fbc 100644 --- a/src/core/net/checksum.hpp +++ b/src/core/net/checksum.hpp @@ -31,8 +31,8 @@ * This file includes definitions for checksum calculation. */ -#ifndef CHECKSUM_HPP_ -#define CHECKSUM_HPP_ +#ifndef OT_CORE_NET_CHECKSUM_HPP_ +#define OT_CORE_NET_CHECKSUM_HPP_ #include "openthread-core-config.h" @@ -133,4 +133,4 @@ private: } // namespace ot -#endif // CHECKSUM_HPP_ +#endif // OT_CORE_NET_CHECKSUM_HPP_ diff --git a/src/core/net/dhcp6_client.hpp b/src/core/net/dhcp6_client.hpp index c841c8b9f..ad9e35f7d 100644 --- a/src/core/net/dhcp6_client.hpp +++ b/src/core/net/dhcp6_client.hpp @@ -31,8 +31,8 @@ * This file includes definitions for DHCPv6 Client. */ -#ifndef DHCP6_CLIENT_HPP_ -#define DHCP6_CLIENT_HPP_ +#ifndef OT_CORE_NET_DHCP6_CLIENT_HPP_ +#define OT_CORE_NET_DHCP6_CLIENT_HPP_ #include "openthread-core-config.h" @@ -152,4 +152,4 @@ private: #endif // OPENTHREAD_CONFIG_DHCP6_CLIENT_ENABLE -#endif // DHCP6_CLIENT_HPP_ +#endif // OT_CORE_NET_DHCP6_CLIENT_HPP_ diff --git a/src/core/net/dhcp6_server.hpp b/src/core/net/dhcp6_server.hpp index 70c0c10dc..1620ec279 100644 --- a/src/core/net/dhcp6_server.hpp +++ b/src/core/net/dhcp6_server.hpp @@ -31,8 +31,8 @@ * This file includes definitions for DHCPv6 Server. */ -#ifndef DHCP6_SERVER_HPP_ -#define DHCP6_SERVER_HPP_ +#ifndef OT_CORE_NET_DHCP6_SERVER_HPP_ +#define OT_CORE_NET_DHCP6_SERVER_HPP_ #include "openthread-core-config.h" @@ -206,4 +206,4 @@ private: #endif // OPENTHREAD_CONFIG_DHCP6_SERVER_ENABLE -#endif // DHCP6_SERVER_HPP_ +#endif // OT_CORE_NET_DHCP6_SERVER_HPP_ diff --git a/src/core/net/dhcp6_types.hpp b/src/core/net/dhcp6_types.hpp index ce2c862db..fceb433cc 100644 --- a/src/core/net/dhcp6_types.hpp +++ b/src/core/net/dhcp6_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for DHCPv6 Service. */ -#ifndef DHCP6_TYPES_HPP_ -#define DHCP6_TYPES_HPP_ +#ifndef OT_CORE_NET_DHCP6_TYPES_HPP_ +#define OT_CORE_NET_DHCP6_TYPES_HPP_ #include "openthread-core-config.h" @@ -1089,4 +1089,4 @@ private: } // namespace Dhcp6 } // namespace ot -#endif // DHCP6_TYPES_HPP_ +#endif // OT_CORE_NET_DHCP6_TYPES_HPP_ diff --git a/src/core/net/dns_client.hpp b/src/core/net/dns_client.hpp index 5149b9d93..b2849f8bf 100644 --- a/src/core/net/dns_client.hpp +++ b/src/core/net/dns_client.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DNS_CLIENT_HPP_ -#define DNS_CLIENT_HPP_ +#ifndef OT_CORE_NET_DNS_CLIENT_HPP_ +#define OT_CORE_NET_DNS_CLIENT_HPP_ #include "openthread-core-config.h" @@ -1043,4 +1043,4 @@ DefineMapEnum(otDnsRecordSection, Dns::Client::RecordInfo::RecordSection); #endif // OPENTHREAD_CONFIG_DNS_CLIENT_ENABLE -#endif // DNS_CLIENT_HPP_ +#endif // OT_CORE_NET_DNS_CLIENT_HPP_ diff --git a/src/core/net/dns_dso.hpp b/src/core/net/dns_dso.hpp index 1850a62f3..6acbfcb05 100644 --- a/src/core/net/dns_dso.hpp +++ b/src/core/net/dns_dso.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DNS_DSO_HPP_ -#define DNS_DSO_HPP_ +#ifndef OT_CORE_NET_DNS_DSO_HPP_ +#define OT_CORE_NET_DNS_DSO_HPP_ #include "openthread-core-config.h" @@ -918,4 +918,4 @@ DefineMapEnum(otPlatDsoDisconnectMode, Dns::Dso::Connection::DisconnectMode); #endif // OPENTHREAD_CONFIG_DNS_DSO_ENABLE -#endif // DNS_DSO_HPP_ +#endif // OT_CORE_NET_DNS_DSO_HPP_ diff --git a/src/core/net/dns_types.hpp b/src/core/net/dns_types.hpp index 1769ad79a..a2d8539c1 100644 --- a/src/core/net/dns_types.hpp +++ b/src/core/net/dns_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing DNS headers. */ -#ifndef DNS_HEADER_HPP_ -#define DNS_HEADER_HPP_ +#ifndef OT_CORE_NET_DNS_TYPES_HPP_ +#define OT_CORE_NET_DNS_TYPES_HPP_ #include "openthread-core-config.h" @@ -3009,4 +3009,4 @@ DefineCoreType(otDnsTxtEntryIterator, Dns::TxtEntry::Iterator); } // namespace ot -#endif // DNS_HEADER_HPP_ +#endif // OT_CORE_NET_DNS_TYPES_HPP_ diff --git a/src/core/net/dnssd.hpp b/src/core/net/dnssd.hpp index 8b5044799..b2a6f194f 100644 --- a/src/core/net/dnssd.hpp +++ b/src/core/net/dnssd.hpp @@ -31,8 +31,8 @@ * This file includes definitions for DNS-SD module. */ -#ifndef DNSSD_HPP_ -#define DNSSD_HPP_ +#ifndef OT_CORE_NET_DNSSD_HPP_ +#define OT_CORE_NET_DNSSD_HPP_ #include "openthread-core-config.h" @@ -454,4 +454,4 @@ DefineCoreType(otPlatDnssdKey, Dnssd::Key); #endif // OPENTHREAD_CONFIG_PLATFORM_DNSSD_ENABLE || OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE -#endif // DNSSD_HPP_ +#endif // OT_CORE_NET_DNSSD_HPP_ diff --git a/src/core/net/dnssd_server.hpp b/src/core/net/dnssd_server.hpp index afe155380..e715a03fb 100644 --- a/src/core/net/dnssd_server.hpp +++ b/src/core/net/dnssd_server.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DNS_SERVER_HPP_ -#define DNS_SERVER_HPP_ +#ifndef OT_CORE_NET_DNSSD_SERVER_HPP_ +#define OT_CORE_NET_DNSSD_SERVER_HPP_ #include "openthread-core-config.h" @@ -679,4 +679,4 @@ DefineCoreType(otPlatDnsUpstreamQuery, Dns::ServiceDiscovery::Server::UpstreamQu #endif // OPENTHREAD_CONFIG_DNSSD_SERVER_ENABLE -#endif // DNS_SERVER_HPP_ +#endif // OT_CORE_NET_DNSSD_SERVER_HPP_ diff --git a/src/core/net/icmp6.hpp b/src/core/net/icmp6.hpp index 5ddf53a1e..f636e6ba9 100644 --- a/src/core/net/icmp6.hpp +++ b/src/core/net/icmp6.hpp @@ -31,8 +31,8 @@ * This file includes definitions for ICMPv6. */ -#ifndef ICMP6_HPP_ -#define ICMP6_HPP_ +#ifndef OT_CORE_NET_ICMP6_HPP_ +#define OT_CORE_NET_ICMP6_HPP_ #include "openthread-core-config.h" @@ -339,4 +339,4 @@ DefineCoreType(otIcmp6Handler, Ip6::Icmp::Handler); } // namespace ot -#endif // ICMP6_HPP_ +#endif // OT_CORE_NET_ICMP6_HPP_ diff --git a/src/core/net/ip4_types.hpp b/src/core/net/ip4_types.hpp index 0b9c77b97..6ee9a557b 100644 --- a/src/core/net/ip4_types.hpp +++ b/src/core/net/ip4_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv4 packet processing. */ -#ifndef IP4_TYPES_HPP_ -#define IP4_TYPES_HPP_ +#ifndef OT_CORE_NET_IP4_TYPES_HPP_ +#define OT_CORE_NET_IP4_TYPES_HPP_ #include "openthread-core-config.h" @@ -826,4 +826,4 @@ DefineCoreType(otIp4Cidr, Ip4::Cidr); } // namespace ot -#endif // IP4_TYPES_HPP_ +#endif // OT_CORE_NET_IP4_TYPES_HPP_ diff --git a/src/core/net/ip6.hpp b/src/core/net/ip6.hpp index e7a76d10c..a6815fd9a 100644 --- a/src/core/net/ip6.hpp +++ b/src/core/net/ip6.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv6 packet processing. */ -#ifndef IP6_HPP_ -#define IP6_HPP_ +#ifndef OT_CORE_NET_IP6_HPP_ +#define OT_CORE_NET_IP6_HPP_ #include "openthread-core-config.h" @@ -614,4 +614,4 @@ private: } // namespace Ip6 } // namespace ot -#endif // IP6_HPP_ +#endif // OT_CORE_NET_IP6_HPP_ diff --git a/src/core/net/ip6_address.hpp b/src/core/net/ip6_address.hpp index f0f9e1877..21d1fea5f 100644 --- a/src/core/net/ip6_address.hpp +++ b/src/core/net/ip6_address.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv6 addresses. */ -#ifndef IP6_ADDRESS_HPP_ -#define IP6_ADDRESS_HPP_ +#ifndef OT_CORE_NET_IP6_ADDRESS_HPP_ +#define OT_CORE_NET_IP6_ADDRESS_HPP_ #include "openthread-core-config.h" @@ -976,4 +976,4 @@ DefineCoreType(otIp6Address, Ip6::Address); } // namespace ot -#endif // IP6_ADDRESS_HPP_ +#endif // OT_CORE_NET_IP6_ADDRESS_HPP_ diff --git a/src/core/net/ip6_filter.hpp b/src/core/net/ip6_filter.hpp index 3e00bfa00..60fc63d47 100644 --- a/src/core/net/ip6_filter.hpp +++ b/src/core/net/ip6_filter.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv6 datagram filtering. */ -#ifndef IP6_FILTER_HPP_ -#define IP6_FILTER_HPP_ +#ifndef OT_CORE_NET_IP6_FILTER_HPP_ +#define OT_CORE_NET_IP6_FILTER_HPP_ #include "openthread-core-config.h" @@ -148,4 +148,4 @@ private: } // namespace Ip6 } // namespace ot -#endif // IP6_FILTER_HPP_ +#endif // OT_CORE_NET_IP6_FILTER_HPP_ diff --git a/src/core/net/ip6_headers.hpp b/src/core/net/ip6_headers.hpp index d3daf36c0..f2ace1e65 100644 --- a/src/core/net/ip6_headers.hpp +++ b/src/core/net/ip6_headers.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv6 packet processing. */ -#ifndef IP6_HEADERS_HPP_ -#define IP6_HEADERS_HPP_ +#ifndef OT_CORE_NET_IP6_HEADERS_HPP_ +#define OT_CORE_NET_IP6_HEADERS_HPP_ #include "openthread-core-config.h" @@ -666,4 +666,4 @@ private: } // namespace Ip6 } // namespace ot -#endif // IP6_HEADERS_HPP_ +#endif // OT_CORE_NET_IP6_HEADERS_HPP_ diff --git a/src/core/net/ip6_mpl.hpp b/src/core/net/ip6_mpl.hpp index 856f8ed62..fbb10dfed 100644 --- a/src/core/net/ip6_mpl.hpp +++ b/src/core/net/ip6_mpl.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef IP6_MPL_HPP_ -#define IP6_MPL_HPP_ +#ifndef OT_CORE_NET_IP6_MPL_HPP_ +#define OT_CORE_NET_IP6_MPL_HPP_ /** * @file @@ -260,4 +260,4 @@ private: } // namespace Ip6 } // namespace ot -#endif // IP6_MPL_HPP_ +#endif // OT_CORE_NET_IP6_MPL_HPP_ diff --git a/src/core/net/ip6_types.hpp b/src/core/net/ip6_types.hpp index 5e0c71f86..8f24b840c 100644 --- a/src/core/net/ip6_types.hpp +++ b/src/core/net/ip6_types.hpp @@ -31,8 +31,8 @@ * This file includes types and constants for IPv6 processing. */ -#ifndef IP6_TYPES_HPP_ -#define IP6_TYPES_HPP_ +#ifndef OT_CORE_NET_IP6_TYPES_HPP_ +#define OT_CORE_NET_IP6_TYPES_HPP_ #include "openthread-core-config.h" @@ -112,4 +112,4 @@ enum Ecn : uint8_t } // namespace Ip6 } // namespace ot -#endif // IP6_TYPES_HPP_ +#endif // OT_CORE_NET_IP6_TYPES_HPP_ diff --git a/src/core/net/mdns.hpp b/src/core/net/mdns.hpp index 4435768ff..95355fba5 100644 --- a/src/core/net/mdns.hpp +++ b/src/core/net/mdns.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef MULTICAST_DNS_HPP_ -#define MULTICAST_DNS_HPP_ +#ifndef OT_CORE_NET_MDNS_HPP_ +#define OT_CORE_NET_MDNS_HPP_ #include "openthread-core-config.h" @@ -2463,4 +2463,4 @@ DefineCoreType(otPlatMdnsAddressInfo, Dns::Multicast::Core::AddressInfo); #endif // OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE -#endif // MULTICAST_DNS_HPP_ +#endif // OT_CORE_NET_MDNS_HPP_ diff --git a/src/core/net/nat64_translator.hpp b/src/core/net/nat64_translator.hpp index c831b8022..976918505 100644 --- a/src/core/net/nat64_translator.hpp +++ b/src/core/net/nat64_translator.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the NAT64 translator. */ -#ifndef NAT64_TRANSLATOR_HPP_ -#define NAT64_TRANSLATOR_HPP_ +#ifndef OT_CORE_NET_NAT64_TRANSLATOR_HPP_ +#define OT_CORE_NET_NAT64_TRANSLATOR_HPP_ #include "openthread-core-config.h" @@ -389,4 +389,4 @@ DefineCoreType(otNat64ProtocolCounters, Nat64::Translator::ProtocolCounters); } // namespace ot -#endif // NAT64_TRANSLATOR_HPP_ +#endif // OT_CORE_NET_NAT64_TRANSLATOR_HPP_ diff --git a/src/core/net/nd6.hpp b/src/core/net/nd6.hpp index a0192f046..af330f301 100644 --- a/src/core/net/nd6.hpp +++ b/src/core/net/nd6.hpp @@ -33,8 +33,8 @@ * See RFC 4861 (https://tools.ietf.org/html/rfc4861) and RFC 4191 (https://tools.ietf.org/html/rfc4191). */ -#ifndef ND6_HPP_ -#define ND6_HPP_ +#ifndef OT_CORE_NET_ND6_HPP_ +#define OT_CORE_NET_ND6_HPP_ #include "openthread-core-config.h" @@ -1290,4 +1290,4 @@ static_assert(sizeof(NeighborAdvertMessage) == 24, "Invalid NeighborAdvertMessag #endif // OPENTHREAD_CONFIG_BORDER_ROUTING_ENABLE -#endif // ND6_HPP_ +#endif // OT_CORE_NET_ND6_HPP_ diff --git a/src/core/net/nd_agent.hpp b/src/core/net/nd_agent.hpp index e3e0e7e7f..c922af13a 100644 --- a/src/core/net/nd_agent.hpp +++ b/src/core/net/nd_agent.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv6 Neighbor Discovery Agent. */ -#ifndef NEIGHBOR_DISCOVERY_AGENT_HPP_ -#define NEIGHBOR_DISCOVERY_AGENT_HPP_ +#ifndef OT_CORE_NET_ND_AGENT_HPP_ +#define OT_CORE_NET_ND_AGENT_HPP_ #include "openthread-core-config.h" @@ -77,4 +77,4 @@ private: #endif // OPENTHREAD_CONFIG_NEIGHBOR_DISCOVERY_AGENT_ENABLE -#endif // NEIGHBOR_DISCOVERY_AGENT_HPP_ +#endif // OT_CORE_NET_ND_AGENT_HPP_ diff --git a/src/core/net/netif.hpp b/src/core/net/netif.hpp index c13f4f4d6..0213b4b49 100644 --- a/src/core/net/netif.hpp +++ b/src/core/net/netif.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv6 network interfaces. */ -#ifndef NET_NETIF_HPP_ -#define NET_NETIF_HPP_ +#ifndef OT_CORE_NET_NETIF_HPP_ +#define OT_CORE_NET_NETIF_HPP_ #include "openthread-core-config.h" @@ -654,4 +654,4 @@ DefineCoreType(otNetifMulticastAddress, Ip6::Netif::MulticastAddress); } // namespace ot -#endif // NET_NETIF_HPP_ +#endif // OT_CORE_NET_NETIF_HPP_ diff --git a/src/core/net/slaac_address.hpp b/src/core/net/slaac_address.hpp index e825c00ff..8f93eaeed 100644 --- a/src/core/net/slaac_address.hpp +++ b/src/core/net/slaac_address.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread global IPv6 address configuration with SLAAC. */ -#ifndef SLAAC_ADDRESS_HPP_ -#define SLAAC_ADDRESS_HPP_ +#ifndef OT_CORE_NET_SLAAC_ADDRESS_HPP_ +#define OT_CORE_NET_SLAAC_ADDRESS_HPP_ #include "openthread-core-config.h" @@ -230,4 +230,4 @@ private: #endif // OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE -#endif // SLAAC_ADDRESS_HPP_ +#endif // OT_CORE_NET_SLAAC_ADDRESS_HPP_ diff --git a/src/core/net/sntp_client.hpp b/src/core/net/sntp_client.hpp index 21fbbd588..3e6184000 100644 --- a/src/core/net/sntp_client.hpp +++ b/src/core/net/sntp_client.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SNTP_CLIENT_HPP_ -#define SNTP_CLIENT_HPP_ +#ifndef OT_CORE_NET_SNTP_CLIENT_HPP_ +#define OT_CORE_NET_SNTP_CLIENT_HPP_ #include "openthread-core-config.h" @@ -274,4 +274,4 @@ private: #endif // OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE -#endif // SNTP_CLIENT_HPP_ +#endif // OT_CORE_NET_SNTP_CLIENT_HPP_ diff --git a/src/core/net/socket.hpp b/src/core/net/socket.hpp index 641010d83..ebbe5b38f 100644 --- a/src/core/net/socket.hpp +++ b/src/core/net/socket.hpp @@ -31,8 +31,8 @@ * This file includes definitions for IPv6 sockets. */ -#ifndef NET_SOCKET_HPP_ -#define NET_SOCKET_HPP_ +#ifndef OT_CORE_NET_SOCKET_HPP_ +#define OT_CORE_NET_SOCKET_HPP_ #include "openthread-core-config.h" @@ -338,4 +338,4 @@ DefineCoreType(otSockAddr, Ip6::SockAddr); } // namespace ot -#endif // NET_SOCKET_HPP_ +#endif // OT_CORE_NET_SOCKET_HPP_ diff --git a/src/core/net/srp_advertising_proxy.hpp b/src/core/net/srp_advertising_proxy.hpp index a3e9b7d24..b7b525803 100644 --- a/src/core/net/srp_advertising_proxy.hpp +++ b/src/core/net/srp_advertising_proxy.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Advertising Proxy. */ -#ifndef SRP_ADVERTISING_PROXY_HPP_ -#define SRP_ADVERTISING_PROXY_HPP_ +#ifndef OT_CORE_NET_SRP_ADVERTISING_PROXY_HPP_ +#define OT_CORE_NET_SRP_ADVERTISING_PROXY_HPP_ #include "openthread-core-config.h" @@ -295,4 +295,4 @@ private: #endif // OPENTHREAD_CONFIG_SRP_SERVER_ADVERTISING_PROXY_ENABLE -#endif // SRP_ADVERTISING_PROXY_HPP_ +#endif // OT_CORE_NET_SRP_ADVERTISING_PROXY_HPP_ diff --git a/src/core/net/srp_client.hpp b/src/core/net/srp_client.hpp index 5bfa7b616..a350a2411 100644 --- a/src/core/net/srp_client.hpp +++ b/src/core/net/srp_client.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SRP_CLIENT_HPP_ -#define SRP_CLIENT_HPP_ +#ifndef OT_CORE_NET_SRP_CLIENT_HPP_ +#define OT_CORE_NET_SRP_CLIENT_HPP_ #include "openthread-core-config.h" @@ -1117,4 +1117,4 @@ DefineMapEnum(otSrpClientItemState, Srp::Client::ItemState); #endif // OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE -#endif // SRP_CLIENT_HPP_ +#endif // OT_CORE_NET_SRP_CLIENT_HPP_ diff --git a/src/core/net/srp_server.hpp b/src/core/net/srp_server.hpp index 150e4f070..3dd928c1e 100644 --- a/src/core/net/srp_server.hpp +++ b/src/core/net/srp_server.hpp @@ -31,8 +31,8 @@ * This file includes definitions for SRP server. */ -#ifndef NET_SRP_SERVER_HPP_ -#define NET_SRP_SERVER_HPP_ +#ifndef OT_CORE_NET_SRP_SERVER_HPP_ +#define OT_CORE_NET_SRP_SERVER_HPP_ #include "openthread-core-config.h" @@ -1069,4 +1069,4 @@ DefineMapEnum(otSrpServerAddressMode, Srp::Server::AddressMode); } // namespace ot #endif // OPENTHREAD_CONFIG_SRP_SERVER_ENABLE -#endif // NET_SRP_SERVER_HPP_ +#endif // OT_CORE_NET_SRP_SERVER_HPP_ diff --git a/src/core/net/tcp6.hpp b/src/core/net/tcp6.hpp index f11893760..3b45d386d 100644 --- a/src/core/net/tcp6.hpp +++ b/src/core/net/tcp6.hpp @@ -31,8 +31,8 @@ * This file includes definitions for TCP/IPv6 sockets. */ -#ifndef TCP6_HPP_ -#define TCP6_HPP_ +#ifndef OT_CORE_NET_TCP6_HPP_ +#define OT_CORE_NET_TCP6_HPP_ #include "openthread-core-config.h" @@ -680,4 +680,4 @@ DefineCoreType(otTcpListener, Ip6::Tcp::Listener); } // namespace ot -#endif // TCP6_HPP_ +#endif // OT_CORE_NET_TCP6_HPP_ diff --git a/src/core/net/tcp6_ext.hpp b/src/core/net/tcp6_ext.hpp index 406079556..ffa187201 100644 --- a/src/core/net/tcp6_ext.hpp +++ b/src/core/net/tcp6_ext.hpp @@ -31,8 +31,8 @@ * This file includes definitions for TCP/IPv6 socket extensions. */ -#ifndef TCP6_EXT_HPP_ -#define TCP6_EXT_HPP_ +#ifndef OT_CORE_NET_TCP6_EXT_HPP_ +#define OT_CORE_NET_TCP6_EXT_HPP_ #include "openthread-core-config.h" @@ -130,4 +130,4 @@ DefineCoreType(otTcpCircularSendBuffer, Ip6::TcpCircularSendBuffer); } // namespace ot -#endif // TCP6_HPP_ +#endif // OT_CORE_NET_TCP6_EXT_HPP_ diff --git a/src/core/net/udp6.hpp b/src/core/net/udp6.hpp index 0a5d8ecc2..d9d7cc8b8 100644 --- a/src/core/net/udp6.hpp +++ b/src/core/net/udp6.hpp @@ -31,8 +31,8 @@ * This file includes definitions for UDP/IPv6 sockets. */ -#ifndef UDP6_HPP_ -#define UDP6_HPP_ +#ifndef OT_CORE_NET_UDP6_HPP_ +#define OT_CORE_NET_UDP6_HPP_ #include "openthread-core-config.h" @@ -697,4 +697,4 @@ DefineMapEnum(otNetifIdentifier, Ip6::NetifIdentifier); } // namespace ot -#endif // UDP6_HPP_ +#endif // OT_CORE_NET_UDP6_HPP_ diff --git a/src/core/openthread-core-config.h b/src/core/openthread-core-config.h index 7c44167b1..2b8644a82 100644 --- a/src/core/openthread-core-config.h +++ b/src/core/openthread-core-config.h @@ -31,8 +31,8 @@ * This file includes compile-time configuration constants for OpenThread. */ -#ifndef OPENTHREAD_CORE_CONFIG_H_ -#define OPENTHREAD_CORE_CONFIG_H_ +#ifndef OT_CORE_OPENTHREAD_CORE_CONFIG_H_ +#define OT_CORE_OPENTHREAD_CORE_CONFIG_H_ #include #include @@ -120,4 +120,4 @@ #include OPENTHREAD_CORE_CONFIG_PLATFORM_CHECK_FILE #endif -#endif // OPENTHREAD_CORE_CONFIG_H_ +#endif // OT_CORE_OPENTHREAD_CORE_CONFIG_H_ diff --git a/src/core/radio/ble_secure.hpp b/src/core/radio/ble_secure.hpp index 6cc59dcae..cd0f69921 100644 --- a/src/core/radio/ble_secure.hpp +++ b/src/core/radio/ble_secure.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef BLE_SECURE_HPP_ -#define BLE_SECURE_HPP_ +#ifndef OT_CORE_RADIO_BLE_SECURE_HPP_ +#define OT_CORE_RADIO_BLE_SECURE_HPP_ #include "openthread-core-config.h" @@ -388,4 +388,4 @@ private: #endif // OPENTHREAD_CONFIG_BLE_TCAT_ENABLE -#endif // BLE_SECURE_HPP_ +#endif // OT_CORE_RADIO_BLE_SECURE_HPP_ diff --git a/src/core/radio/radio.hpp b/src/core/radio/radio.hpp index c4fc384af..b68b6c38e 100644 --- a/src/core/radio/radio.hpp +++ b/src/core/radio/radio.hpp @@ -31,8 +31,8 @@ * This file includes definitions for OpenThread radio abstraction. */ -#ifndef RADIO_HPP_ -#define RADIO_HPP_ +#ifndef OT_CORE_RADIO_RADIO_HPP_ +#define OT_CORE_RADIO_RADIO_HPP_ #include "openthread-core-config.h" @@ -1168,4 +1168,4 @@ inline bool Radio::GetDiagMode(void) { return false; } } // namespace ot -#endif // RADIO_HPP_ +#endif // OT_CORE_RADIO_RADIO_HPP_ diff --git a/src/core/radio/trel_interface.hpp b/src/core/radio/trel_interface.hpp index 9d2ac5733..1bbdd1b65 100644 --- a/src/core/radio/trel_interface.hpp +++ b/src/core/radio/trel_interface.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread Radio Encapsulation Link (TREL) interface. */ -#ifndef TREL_INTERFACE_HPP_ -#define TREL_INTERFACE_HPP_ +#ifndef OT_CORE_RADIO_TREL_INTERFACE_HPP_ +#define OT_CORE_RADIO_TREL_INTERFACE_HPP_ #include "openthread-core-config.h" @@ -181,4 +181,4 @@ private: #endif // #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE -#endif // TREL_INTERFACE_HPP_ +#endif // OT_CORE_RADIO_TREL_INTERFACE_HPP_ diff --git a/src/core/radio/trel_link.hpp b/src/core/radio/trel_link.hpp index 75872d27c..86535cf37 100644 --- a/src/core/radio/trel_link.hpp +++ b/src/core/radio/trel_link.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread Radio Encapsulation Link (TREL). */ -#ifndef TREL_LINK_HPP_ -#define TREL_LINK_HPP_ +#ifndef OT_CORE_RADIO_TREL_LINK_HPP_ +#define OT_CORE_RADIO_TREL_LINK_HPP_ #include "openthread-core-config.h" @@ -262,4 +262,4 @@ private: #endif // #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE -#endif // TREL_LINK_HPP_ +#endif // OT_CORE_RADIO_TREL_LINK_HPP_ diff --git a/src/core/radio/trel_packet.hpp b/src/core/radio/trel_packet.hpp index 01d6ff5ae..1ef5e207e 100644 --- a/src/core/radio/trel_packet.hpp +++ b/src/core/radio/trel_packet.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread Radio Encapsulation Link (TREL) Packet */ -#ifndef TREL_PACKET_HPP_ -#define TREL_PACKET_HPP_ +#ifndef OT_CORE_RADIO_TREL_PACKET_HPP_ +#define OT_CORE_RADIO_TREL_PACKET_HPP_ #include "openthread-core-config.h" @@ -329,4 +329,4 @@ public: #endif // #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE -#endif // TREL_PACKET_HPP_ +#endif // OT_CORE_RADIO_TREL_PACKET_HPP_ diff --git a/src/core/radio/trel_peer.hpp b/src/core/radio/trel_peer.hpp index c5d6cf1ad..26b5777ad 100644 --- a/src/core/radio/trel_peer.hpp +++ b/src/core/radio/trel_peer.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread Radio Encapsulation Link (TREL) peer. */ -#ifndef TREL_PEER_HPP_ -#define TREL_PEER_HPP_ +#ifndef OT_CORE_RADIO_TREL_PEER_HPP_ +#define OT_CORE_RADIO_TREL_PEER_HPP_ #include "openthread-core-config.h" @@ -377,4 +377,4 @@ private: #endif // #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE -#endif // TREL_PEER_HPP_ +#endif // OT_CORE_RADIO_TREL_PEER_HPP_ diff --git a/src/core/radio/trel_peer_discoverer.hpp b/src/core/radio/trel_peer_discoverer.hpp index 76628d527..4061a97a2 100644 --- a/src/core/radio/trel_peer_discoverer.hpp +++ b/src/core/radio/trel_peer_discoverer.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread Radio Encapsulation Link (TREL) peer discovery. */ -#ifndef TREL_PEER_DISCOVERER_HPP_ -#define TREL_PEER_DISCOVERER_HPP_ +#ifndef OT_CORE_RADIO_TREL_PEER_DISCOVERER_HPP_ +#define OT_CORE_RADIO_TREL_PEER_DISCOVERER_HPP_ #include "openthread-core-config.h" @@ -287,4 +287,4 @@ private: #endif // #if OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE -#endif // TREL_PEER_DISCOVERER_HPP_ +#endif // OT_CORE_RADIO_TREL_PEER_DISCOVERER_HPP_ diff --git a/src/core/thread/address_resolver.hpp b/src/core/thread/address_resolver.hpp index 67fd84a5f..26fff03ee 100644 --- a/src/core/thread/address_resolver.hpp +++ b/src/core/thread/address_resolver.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread EID-to-RLOC mapping and caching. */ -#ifndef ADDRESS_RESOLVER_HPP_ -#define ADDRESS_RESOLVER_HPP_ +#ifndef OT_CORE_THREAD_ADDRESS_RESOLVER_HPP_ +#define OT_CORE_THREAD_ADDRESS_RESOLVER_HPP_ #include "openthread-core-config.h" @@ -405,4 +405,4 @@ DefineMapEnum(otCacheEntryState, AddressResolver::EntryInfo::State); } // namespace ot -#endif // ADDRESS_RESOLVER_HPP_ +#endif // OT_CORE_THREAD_ADDRESS_RESOLVER_HPP_ diff --git a/src/core/thread/announce_begin_server.hpp b/src/core/thread/announce_begin_server.hpp index afdf7c400..4be029dc2 100644 --- a/src/core/thread/announce_begin_server.hpp +++ b/src/core/thread/announce_begin_server.hpp @@ -31,8 +31,8 @@ * This file includes definitions for responding to Announce Requests. */ -#ifndef ANNOUNCE_BEGIN_SERVER_HPP_ -#define ANNOUNCE_BEGIN_SERVER_HPP_ +#ifndef OT_CORE_THREAD_ANNOUNCE_BEGIN_SERVER_HPP_ +#define OT_CORE_THREAD_ANNOUNCE_BEGIN_SERVER_HPP_ #include "openthread-core-config.h" @@ -84,4 +84,4 @@ DeclareTmfHandler(AnnounceBeginServer, kUriAnnounceBegin); } // namespace ot -#endif // ANNOUNCE_BEGIN_SERVER_HPP_ +#endif // OT_CORE_THREAD_ANNOUNCE_BEGIN_SERVER_HPP_ diff --git a/src/core/thread/announce_sender.hpp b/src/core/thread/announce_sender.hpp index cdb4a41bf..61b039120 100644 --- a/src/core/thread/announce_sender.hpp +++ b/src/core/thread/announce_sender.hpp @@ -31,8 +31,8 @@ * This file includes definition for AnnounceSender. */ -#ifndef ANNOUNCE_SENDER_HPP_ -#define ANNOUNCE_SENDER_HPP_ +#ifndef OT_CORE_THREAD_ANNOUNCE_SENDER_HPP_ +#define OT_CORE_THREAD_ANNOUNCE_SENDER_HPP_ #include "openthread-core-config.h" @@ -253,4 +253,4 @@ private: } // namespace ot -#endif // ANNOUNCE_SENDER_HPP_ +#endif // OT_CORE_THREAD_ANNOUNCE_SENDER_HPP_ diff --git a/src/core/thread/anycast_locator.hpp b/src/core/thread/anycast_locator.hpp index dbc4dc02f..8535b63db 100644 --- a/src/core/thread/anycast_locator.hpp +++ b/src/core/thread/anycast_locator.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Anycast Locator functionality. */ -#ifndef ANYCAST_LOCATOR_HPP_ -#define ANYCAST_LOCATOR_HPP_ +#ifndef OT_CORE_THREAD_ANYCAST_LOCATOR_HPP_ +#define OT_CORE_THREAD_ANYCAST_LOCATOR_HPP_ #include "openthread-core-config.h" @@ -110,4 +110,4 @@ DeclareTmfHandler(AnycastLocator, kUriAnycastLocate); #endif // OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE -#endif // ANYCAST_LOCATOR_HPP_ +#endif // OT_CORE_THREAD_ANYCAST_LOCATOR_HPP_ diff --git a/src/core/thread/child.hpp b/src/core/thread/child.hpp index 4a81ae5a5..abcd27d0d 100644 --- a/src/core/thread/child.hpp +++ b/src/core/thread/child.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a Thread `Child`. */ -#ifndef CHILD_HPP_ -#define CHILD_HPP_ +#ifndef OT_CORE_THREAD_CHILD_HPP_ +#define OT_CORE_THREAD_CHILD_HPP_ #include "openthread-core-config.h" @@ -394,4 +394,4 @@ DefineCoreType(otChildInfo, Child::Info); } // namespace ot -#endif // CHILD_HPP_ +#endif // OT_CORE_THREAD_CHILD_HPP_ diff --git a/src/core/thread/child_mask.hpp b/src/core/thread/child_mask.hpp index 089fd6cc5..8ebeb0d8b 100644 --- a/src/core/thread/child_mask.hpp +++ b/src/core/thread/child_mask.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a child mask. */ -#ifndef CHILD_MASK_HPP_ -#define CHILD_MASK_HPP_ +#ifndef OT_CORE_THREAD_CHILD_MASK_HPP_ +#define OT_CORE_THREAD_CHILD_MASK_HPP_ #include "openthread-core-config.h" @@ -60,4 +60,4 @@ typedef BitSet ChildMask; } // namespace ot -#endif // CHILD_MASK_HPP_ +#endif // OT_CORE_THREAD_CHILD_MASK_HPP_ diff --git a/src/core/thread/child_supervision.hpp b/src/core/thread/child_supervision.hpp index 86621f86c..3e833a3ad 100644 --- a/src/core/thread/child_supervision.hpp +++ b/src/core/thread/child_supervision.hpp @@ -31,8 +31,8 @@ * This file includes definitions for child supervision feature. */ -#ifndef CHILD_SUPERVISION_HPP_ -#define CHILD_SUPERVISION_HPP_ +#ifndef OT_CORE_THREAD_CHILD_SUPERVISION_HPP_ +#define OT_CORE_THREAD_CHILD_SUPERVISION_HPP_ #include "openthread-core-config.h" @@ -225,4 +225,4 @@ private: } // namespace ot -#endif // CHILD_SUPERVISION_HPP_ +#endif // OT_CORE_THREAD_CHILD_SUPERVISION_HPP_ diff --git a/src/core/thread/child_table.hpp b/src/core/thread/child_table.hpp index 479dea932..f6b3abf88 100644 --- a/src/core/thread/child_table.hpp +++ b/src/core/thread/child_table.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread child table. */ -#ifndef CHILD_TABLE_HPP_ -#define CHILD_TABLE_HPP_ +#ifndef OT_CORE_THREAD_CHILD_TABLE_HPP_ +#define OT_CORE_THREAD_CHILD_TABLE_HPP_ #include "openthread-core-config.h" @@ -346,4 +346,4 @@ private: #endif // OPENTHREAD_FTD -#endif // CHILD_TABLE_HPP_ +#endif // OT_CORE_THREAD_CHILD_TABLE_HPP_ diff --git a/src/core/thread/csl_tx_scheduler.hpp b/src/core/thread/csl_tx_scheduler.hpp index 13fb800e2..78e655627 100644 --- a/src/core/thread/csl_tx_scheduler.hpp +++ b/src/core/thread/csl_tx_scheduler.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef CSL_TX_SCHEDULER_HPP_ -#define CSL_TX_SCHEDULER_HPP_ +#ifndef OT_CORE_THREAD_CSL_TX_SCHEDULER_HPP_ +#define OT_CORE_THREAD_CSL_TX_SCHEDULER_HPP_ #include "openthread-core-config.h" @@ -214,4 +214,4 @@ private: #endif // OPENTHREAD_CONFIG_MAC_CSL_TRANSMITTER_ENABLE -#endif // CSL_TX_SCHEDULER_HPP_ +#endif // OT_CORE_THREAD_CSL_TX_SCHEDULER_HPP_ diff --git a/src/core/thread/discover_scanner.hpp b/src/core/thread/discover_scanner.hpp index 03aad3265..9baf27102 100644 --- a/src/core/thread/discover_scanner.hpp +++ b/src/core/thread/discover_scanner.hpp @@ -31,8 +31,8 @@ * This file includes definitions for MLE Discover Scan process. */ -#ifndef DISCOVER_SCANNER_HPP_ -#define DISCOVER_SCANNER_HPP_ +#ifndef OT_CORE_THREAD_DISCOVER_SCANNER_HPP_ +#define OT_CORE_THREAD_DISCOVER_SCANNER_HPP_ #include "openthread-core-config.h" @@ -187,4 +187,4 @@ private: } // namespace Mle } // namespace ot -#endif // DISCOVER_SCANNER_HPP_ +#endif // OT_CORE_THREAD_DISCOVER_SCANNER_HPP_ diff --git a/src/core/thread/dua_manager.hpp b/src/core/thread/dua_manager.hpp index 43f368252..3a73fd2ef 100644 --- a/src/core/thread/dua_manager.hpp +++ b/src/core/thread/dua_manager.hpp @@ -31,8 +31,8 @@ * This file includes definitions for managing Domain Unicast Address feature defined in Thread 1.2. */ -#ifndef DUA_MANAGER_HPP_ -#define DUA_MANAGER_HPP_ +#ifndef OT_CORE_THREAD_DUA_MANAGER_HPP_ +#define OT_CORE_THREAD_DUA_MANAGER_HPP_ #include "openthread-core-config.h" @@ -279,4 +279,4 @@ DeclareTmfHandler(DuaManager, kUriDuaRegistrationNotify); } // namespace ot #endif // OPENTHREAD_CONFIG_DUA_ENABLE || (OPENTHREAD_FTD && OPENTHREAD_CONFIG_TMF_PROXY_DUA_ENABLE) -#endif // DUA_MANAGER_HPP_ +#endif // OT_CORE_THREAD_DUA_MANAGER_HPP_ diff --git a/src/core/thread/energy_scan_server.hpp b/src/core/thread/energy_scan_server.hpp index 0fe6413a6..f7cb89729 100644 --- a/src/core/thread/energy_scan_server.hpp +++ b/src/core/thread/energy_scan_server.hpp @@ -31,8 +31,8 @@ * This file includes definitions for responding to Energy Scan Requests. */ -#ifndef ENERGY_SCAN_SERVER_HPP_ -#define ENERGY_SCAN_SERVER_HPP_ +#ifndef OT_CORE_THREAD_ENERGY_SCAN_SERVER_HPP_ +#define OT_CORE_THREAD_ENERGY_SCAN_SERVER_HPP_ #include "openthread-core-config.h" @@ -101,4 +101,4 @@ DeclareTmfHandler(EnergyScanServer, kUriEnergyScan); } // namespace ot -#endif // ENERGY_SCAN_SERVER_HPP_ +#endif // OT_CORE_THREAD_ENERGY_SCAN_SERVER_HPP_ diff --git a/src/core/thread/indirect_sender.hpp b/src/core/thread/indirect_sender.hpp index 2b3b873f2..011a580f9 100644 --- a/src/core/thread/indirect_sender.hpp +++ b/src/core/thread/indirect_sender.hpp @@ -31,8 +31,8 @@ * This file includes definitions for handling indirect transmission. */ -#ifndef INDIRECT_SENDER_HPP_ -#define INDIRECT_SENDER_HPP_ +#ifndef OT_CORE_THREAD_INDIRECT_SENDER_HPP_ +#define OT_CORE_THREAD_INDIRECT_SENDER_HPP_ #include "openthread-core-config.h" @@ -299,4 +299,4 @@ private: } // namespace ot -#endif // INDIRECT_SENDER_HPP_ +#endif // OT_CORE_THREAD_INDIRECT_SENDER_HPP_ diff --git a/src/core/thread/indirect_sender_frame_context.hpp b/src/core/thread/indirect_sender_frame_context.hpp index e0e7e098c..23c5343b9 100644 --- a/src/core/thread/indirect_sender_frame_context.hpp +++ b/src/core/thread/indirect_sender_frame_context.hpp @@ -31,8 +31,8 @@ * This file includes definitions of frame context used for indirect transmission. */ -#ifndef INDIRECT_SENDER_FRAME_CONTEXT_HPP_ -#define INDIRECT_SENDER_FRAME_CONTEXT_HPP_ +#ifndef OT_CORE_THREAD_INDIRECT_SENDER_FRAME_CONTEXT_HPP_ +#define OT_CORE_THREAD_INDIRECT_SENDER_FRAME_CONTEXT_HPP_ #include "openthread-core-config.h" @@ -84,4 +84,4 @@ public: } // namespace ot -#endif // INDIRECT_SENDER_FRAME_CONTEXT_HPP_ +#endif // OT_CORE_THREAD_INDIRECT_SENDER_FRAME_CONTEXT_HPP_ diff --git a/src/core/thread/key_manager.hpp b/src/core/thread/key_manager.hpp index 6da0a71fe..a284ad645 100644 --- a/src/core/thread/key_manager.hpp +++ b/src/core/thread/key_manager.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread security material generation. */ -#ifndef KEY_MANAGER_HPP_ -#define KEY_MANAGER_HPP_ +#ifndef OT_CORE_THREAD_KEY_MANAGER_HPP_ +#define OT_CORE_THREAD_KEY_MANAGER_HPP_ #include "openthread-core-config.h" @@ -649,4 +649,4 @@ DefineCoreType(otPskc, Pskc); } // namespace ot -#endif // KEY_MANAGER_HPP_ +#endif // OT_CORE_THREAD_KEY_MANAGER_HPP_ diff --git a/src/core/thread/link_metrics.hpp b/src/core/thread/link_metrics.hpp index 95cf77888..8f10acd83 100644 --- a/src/core/thread/link_metrics.hpp +++ b/src/core/thread/link_metrics.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread Link Metrics query and management. */ -#ifndef LINK_METRICS_HPP_ -#define LINK_METRICS_HPP_ +#ifndef OT_CORE_THREAD_LINK_METRICS_HPP_ +#define OT_CORE_THREAD_LINK_METRICS_HPP_ #include "openthread-core-config.h" @@ -350,4 +350,4 @@ int8_t ScaleRawValueToRssi(uint8_t aRawValue); #endif // OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE || OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE -#endif // LINK_METRICS_HPP +#endif // OT_CORE_THREAD_LINK_METRICS_HPP_ diff --git a/src/core/thread/link_metrics_tlvs.hpp b/src/core/thread/link_metrics_tlvs.hpp index 56ff1cca6..36cc0ee80 100644 --- a/src/core/thread/link_metrics_tlvs.hpp +++ b/src/core/thread/link_metrics_tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing Link Metrics TLVs. */ -#ifndef LINK_METRICS_TLVS_HPP_ -#define LINK_METRICS_TLVS_HPP_ +#ifndef OT_CORE_THREAD_LINK_METRICS_TLVS_HPP_ +#define OT_CORE_THREAD_LINK_METRICS_TLVS_HPP_ #include "openthread-core-config.h" @@ -307,4 +307,4 @@ private: #endif // OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE || OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE -#endif // LINK_METRICS_TLVS_HPP_ +#endif // OT_CORE_THREAD_LINK_METRICS_TLVS_HPP_ diff --git a/src/core/thread/link_metrics_types.hpp b/src/core/thread/link_metrics_types.hpp index 1530fbb1a..44cc9d500 100644 --- a/src/core/thread/link_metrics_types.hpp +++ b/src/core/thread/link_metrics_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing Link Metrics TLVs. */ -#ifndef LINK_METRICS_TYPES_HPP_ -#define LINK_METRICS_TYPES_HPP_ +#ifndef OT_CORE_THREAD_LINK_METRICS_TYPES_HPP_ +#define OT_CORE_THREAD_LINK_METRICS_TYPES_HPP_ #include "openthread-core-config.h" @@ -350,4 +350,4 @@ DefineMapEnum(otLinkMetricsStatus, LinkMetrics::Status); #endif // OPENTHREAD_CONFIG_MLE_LINK_METRICS_INITIATOR_ENABLE || OPENTHREAD_CONFIG_MLE_LINK_METRICS_SUBJECT_ENABLE -#endif // LINK_METRICS_TYPES_HPP_ +#endif // OT_CORE_THREAD_LINK_METRICS_TYPES_HPP_ diff --git a/src/core/thread/link_quality.hpp b/src/core/thread/link_quality.hpp index 6b916dc25..5a28e452d 100644 --- a/src/core/thread/link_quality.hpp +++ b/src/core/thread/link_quality.hpp @@ -31,8 +31,8 @@ * This file includes definitions for storing and processing link quality information. */ -#ifndef LINK_QUALITY_HPP_ -#define LINK_QUALITY_HPP_ +#ifndef OT_CORE_THREAD_LINK_QUALITY_HPP_ +#define OT_CORE_THREAD_LINK_QUALITY_HPP_ #include "openthread-core-config.h" @@ -456,4 +456,4 @@ private: } // namespace ot -#endif // LINK_QUALITY_HPP_ +#endif // OT_CORE_THREAD_LINK_QUALITY_HPP_ diff --git a/src/core/thread/lowpan.hpp b/src/core/thread/lowpan.hpp index 1d4fcc908..47c7494ff 100644 --- a/src/core/thread/lowpan.hpp +++ b/src/core/thread/lowpan.hpp @@ -31,8 +31,8 @@ * This file includes definitions for 6LoWPAN header compression. */ -#ifndef LOWPAN_HPP_ -#define LOWPAN_HPP_ +#ifndef OT_CORE_THREAD_LOWPAN_HPP_ +#define OT_CORE_THREAD_LOWPAN_HPP_ #include "openthread-core-config.h" @@ -641,4 +641,4 @@ private: } // namespace Lowpan } // namespace ot -#endif // LOWPAN_HPP_ +#endif // OT_CORE_THREAD_LOWPAN_HPP_ diff --git a/src/core/thread/mesh_forwarder.hpp b/src/core/thread/mesh_forwarder.hpp index d50be72a8..d4ed6514d 100644 --- a/src/core/thread/mesh_forwarder.hpp +++ b/src/core/thread/mesh_forwarder.hpp @@ -31,8 +31,8 @@ * This file includes definitions for forwarding IPv6 datagrams across the Thread mesh. */ -#ifndef MESH_FORWARDER_HPP_ -#define MESH_FORWARDER_HPP_ +#ifndef OT_CORE_THREAD_MESH_FORWARDER_HPP_ +#define OT_CORE_THREAD_MESH_FORWARDER_HPP_ #include "openthread-core-config.h" @@ -590,4 +590,4 @@ private: } // namespace ot -#endif // MESH_FORWARDER_HPP_ +#endif // OT_CORE_THREAD_MESH_FORWARDER_HPP_ diff --git a/src/core/thread/message_framer.hpp b/src/core/thread/message_framer.hpp index 97569daf4..1fb0acc39 100644 --- a/src/core/thread/message_framer.hpp +++ b/src/core/thread/message_framer.hpp @@ -31,8 +31,8 @@ * This file includes definitions for `MessageFramer`. */ -#ifndef MESSAGE_FRAMER_HPP_ -#define MESSAGE_FRAMER_HPP_ +#ifndef OT_CORE_THREAD_MESSAGE_FRAMER_HPP_ +#define OT_CORE_THREAD_MESSAGE_FRAMER_HPP_ #include "openthread-core-config.h" @@ -138,4 +138,4 @@ private: } // namespace ot -#endif // MESSAGE_FRAMER_HPP_ +#endif // OT_CORE_THREAD_MESSAGE_FRAMER_HPP_ diff --git a/src/core/thread/mle.hpp b/src/core/thread/mle.hpp index ee63bb8e6..0b1f31ff0 100644 --- a/src/core/thread/mle.hpp +++ b/src/core/thread/mle.hpp @@ -31,8 +31,8 @@ * This file includes definitions for MLE functionality required by the Thread Child, Router, and Leader roles. */ -#ifndef MLE_HPP_ -#define MLE_HPP_ +#ifndef OT_CORE_THREAD_MLE_HPP_ +#define OT_CORE_THREAD_MLE_HPP_ #include "openthread-core-config.h" @@ -2549,4 +2549,4 @@ DeclareTmfHandler(Mle, kUriAddressRelease); } // namespace ot -#endif // MLE_HPP_ +#endif // OT_CORE_THREAD_MLE_HPP_ diff --git a/src/core/thread/mle_tlvs.hpp b/src/core/thread/mle_tlvs.hpp index 74284e3bf..7491c0876 100644 --- a/src/core/thread/mle_tlvs.hpp +++ b/src/core/thread/mle_tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing MLE TLVs. */ -#ifndef MLE_TLVS_HPP_ -#define MLE_TLVS_HPP_ +#ifndef OT_CORE_THREAD_MLE_TLVS_HPP_ +#define OT_CORE_THREAD_MLE_TLVS_HPP_ #include "openthread-core-config.h" @@ -1160,4 +1160,4 @@ private: } // namespace ot -#endif // MLE_TLVS_HPP_ +#endif // OT_CORE_THREAD_MLE_TLVS_HPP_ diff --git a/src/core/thread/mle_types.hpp b/src/core/thread/mle_types.hpp index 4e47e5aaf..42ba53cb9 100644 --- a/src/core/thread/mle_types.hpp +++ b/src/core/thread/mle_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for MLE types and constants. */ -#ifndef MLE_TYPES_HPP_ -#define MLE_TYPES_HPP_ +#ifndef OT_CORE_THREAD_MLE_TYPES_HPP_ +#define OT_CORE_THREAD_MLE_TYPES_HPP_ #include "openthread-core-config.h" @@ -885,4 +885,4 @@ DefineCoreType(otP2pRequest, Mle::P2pRequest); } // namespace ot -#endif // MLE_TYPES_HPP_ +#endif // OT_CORE_THREAD_MLE_TYPES_HPP_ diff --git a/src/core/thread/mlr_manager.hpp b/src/core/thread/mlr_manager.hpp index c401f6b55..9e74f4a08 100644 --- a/src/core/thread/mlr_manager.hpp +++ b/src/core/thread/mlr_manager.hpp @@ -31,8 +31,8 @@ * This file includes definitions for managing Multicast Listener Registration feature defined in Thread 1.2. */ -#ifndef MLR_MANAGER_HPP_ -#define MLR_MANAGER_HPP_ +#ifndef OT_CORE_THREAD_MLR_MANAGER_HPP_ +#define OT_CORE_THREAD_MLR_MANAGER_HPP_ #include "openthread-core-config.h" @@ -213,4 +213,4 @@ private: } // namespace ot #endif // OPENTHREAD_CONFIG_MLR_ENABLE || (OPENTHREAD_FTD && OPENTHREAD_CONFIG_TMF_PROXY_MLR_ENABLE) -#endif // MLR_MANAGER_HPP_ +#endif // OT_CORE_THREAD_MLR_MANAGER_HPP_ diff --git a/src/core/thread/mlr_types.hpp b/src/core/thread/mlr_types.hpp index f0fbaecdf..fd91ebe75 100644 --- a/src/core/thread/mlr_types.hpp +++ b/src/core/thread/mlr_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Multicast Listener Registration states of multicast addresses. */ -#ifndef MLR_TYPES_HPP_ -#define MLR_TYPES_HPP_ +#ifndef OT_CORE_THREAD_MLR_TYPES_HPP_ +#define OT_CORE_THREAD_MLR_TYPES_HPP_ #include "openthread-core-config.h" @@ -74,4 +74,4 @@ enum MlrStatus } // namespace ot -#endif // MLR_TYPES_HPP_ +#endif // OT_CORE_THREAD_MLR_TYPES_HPP_ diff --git a/src/core/thread/neighbor.hpp b/src/core/thread/neighbor.hpp index 6ce24ba5a..2d9b8b9de 100644 --- a/src/core/thread/neighbor.hpp +++ b/src/core/thread/neighbor.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a Thread `Neighbor`. */ -#ifndef NEIGHBOR_HPP_ -#define NEIGHBOR_HPP_ +#ifndef OT_CORE_THREAD_NEIGHBOR_HPP_ +#define OT_CORE_THREAD_NEIGHBOR_HPP_ #include "openthread-core-config.h" @@ -784,4 +784,4 @@ class CslNeighbor : public Neighbor } // namespace ot -#endif // NEIGHBOR_HPP_ +#endif // OT_CORE_THREAD_NEIGHBOR_HPP_ diff --git a/src/core/thread/neighbor_table.hpp b/src/core/thread/neighbor_table.hpp index ee890f4ca..a1df4d7f3 100644 --- a/src/core/thread/neighbor_table.hpp +++ b/src/core/thread/neighbor_table.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread neighbor table. */ -#ifndef NEIGHBOR_TABLE_HPP_ -#define NEIGHBOR_TABLE_HPP_ +#ifndef OT_CORE_THREAD_NEIGHBOR_TABLE_HPP_ +#define OT_CORE_THREAD_NEIGHBOR_TABLE_HPP_ #include "openthread-core-config.h" @@ -236,4 +236,4 @@ private: } // namespace ot -#endif // NEIGHBOR_TABLE_HPP_ +#endif // OT_CORE_THREAD_NEIGHBOR_TABLE_HPP_ diff --git a/src/core/thread/network_data.hpp b/src/core/thread/network_data.hpp index a0a8f36bd..05e5bfc6a 100644 --- a/src/core/thread/network_data.hpp +++ b/src/core/thread/network_data.hpp @@ -31,8 +31,8 @@ * This file includes definitions for managing Thread Network Data. */ -#ifndef NETWORK_DATA_HPP_ -#define NETWORK_DATA_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_HPP_ #include "openthread-core-config.h" @@ -702,4 +702,4 @@ private: } // namespace ot -#endif // NETWORK_DATA_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_HPP_ diff --git a/src/core/thread/network_data_leader.hpp b/src/core/thread/network_data_leader.hpp index 7603acae0..c671800e0 100644 --- a/src/core/thread/network_data_leader.hpp +++ b/src/core/thread/network_data_leader.hpp @@ -31,8 +31,8 @@ * This file includes definitions for manipulating Thread Network Data managed by the Thread Leader. */ -#ifndef NETWORK_DATA_LEADER_HPP_ -#define NETWORK_DATA_LEADER_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_LEADER_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_LEADER_HPP_ #include "openthread-core-config.h" @@ -659,4 +659,4 @@ DeclareTmfHandler(Leader, kUriCommissionerSet); } // namespace NetworkData } // namespace ot -#endif // NETWORK_DATA_LEADER_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_LEADER_HPP_ diff --git a/src/core/thread/network_data_local.hpp b/src/core/thread/network_data_local.hpp index 8bd467f8a..ad54bf89d 100644 --- a/src/core/thread/network_data_local.hpp +++ b/src/core/thread/network_data_local.hpp @@ -31,8 +31,8 @@ * This file includes definitions for manipulating local Thread Network Data. */ -#ifndef NETWORK_DATA_LOCAL_HPP_ -#define NETWORK_DATA_LOCAL_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_LOCAL_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_LOCAL_HPP_ #include "openthread-core-config.h" @@ -183,4 +183,4 @@ private: #endif // OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE || OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE -#endif // NETWORK_DATA_LOCAL_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_LOCAL_HPP_ diff --git a/src/core/thread/network_data_notifier.hpp b/src/core/thread/network_data_notifier.hpp index 75474fde5..79b480387 100644 --- a/src/core/thread/network_data_notifier.hpp +++ b/src/core/thread/network_data_notifier.hpp @@ -31,8 +31,8 @@ * This file includes definitions for transmitting SVR_DATA.ntf messages. */ -#ifndef NETWORK_DATA_NOTIFIER_HPP_ -#define NETWORK_DATA_NOTIFIER_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_NOTIFIER_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_NOTIFIER_HPP_ #include "openthread-core-config.h" @@ -171,4 +171,4 @@ private: #endif // OPENTHREAD_FTD || OPENTHREAD_CONFIG_BORDER_ROUTER_ENABLE || OPENTHREAD_CONFIG_TMF_NETDATA_SERVICE_ENABLE -#endif // NETWORK_DATA_NOTIFIER_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_NOTIFIER_HPP_ diff --git a/src/core/thread/network_data_publisher.hpp b/src/core/thread/network_data_publisher.hpp index e8423372d..16e747b52 100644 --- a/src/core/thread/network_data_publisher.hpp +++ b/src/core/thread/network_data_publisher.hpp @@ -31,8 +31,8 @@ * This file includes definition of Network Data Publisher. */ -#ifndef NETWORK_DATA_PUBLISHER_HPP_ -#define NETWORK_DATA_PUBLISHER_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_PUBLISHER_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_PUBLISHER_HPP_ #include "openthread-core-config.h" @@ -532,4 +532,4 @@ private: #endif // OPENTHREAD_CONFIG_NETDATA_PUBLISHER_ENABLE -#endif // NETWORK_DATA_PUBLISHER_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_PUBLISHER_HPP_ diff --git a/src/core/thread/network_data_service.hpp b/src/core/thread/network_data_service.hpp index 0cfccefac..b4f627253 100644 --- a/src/core/thread/network_data_service.hpp +++ b/src/core/thread/network_data_service.hpp @@ -31,8 +31,8 @@ * This file includes definitions related to Thread Network Data service/server entries. */ -#ifndef NETWORK_DATA_SERVICE_HPP_ -#define NETWORK_DATA_SERVICE_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_SERVICE_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_SERVICE_HPP_ #include "openthread-core-config.h" @@ -540,4 +540,4 @@ private: } // namespace NetworkData } // namespace ot -#endif // NETWORK_DATA_SERVICE_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_SERVICE_HPP_ diff --git a/src/core/thread/network_data_tlvs.hpp b/src/core/thread/network_data_tlvs.hpp index a871b1478..273c89550 100644 --- a/src/core/thread/network_data_tlvs.hpp +++ b/src/core/thread/network_data_tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing Thread Network Data TLVs. */ -#ifndef NETWORK_DATA_TLVS_HPP_ -#define NETWORK_DATA_TLVS_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_TLVS_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_TLVS_HPP_ #include "openthread-core-config.h" @@ -1540,4 +1540,4 @@ private: } // namespace NetworkData } // namespace ot -#endif // NETWORK_DATA_TLVS_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_TLVS_HPP_ diff --git a/src/core/thread/network_data_types.hpp b/src/core/thread/network_data_types.hpp index 9613faa9b..65a184403 100644 --- a/src/core/thread/network_data_types.hpp +++ b/src/core/thread/network_data_types.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Network Data types and constants. */ -#ifndef NETWORK_DATA_TYPES_HPP_ -#define NETWORK_DATA_TYPES_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DATA_TYPES_HPP_ +#define OT_CORE_THREAD_NETWORK_DATA_TYPES_HPP_ #include "openthread-core-config.h" @@ -437,4 +437,4 @@ DefineCoreType(otServerConfig, NetworkData::ServiceConfig::ServerConfig); } // namespace ot -#endif // NETWORK_DATA_TYPES_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DATA_TYPES_HPP_ diff --git a/src/core/thread/network_diagnostic.hpp b/src/core/thread/network_diagnostic.hpp index 621a1e840..00c643fb7 100644 --- a/src/core/thread/network_diagnostic.hpp +++ b/src/core/thread/network_diagnostic.hpp @@ -31,8 +31,8 @@ * This file includes definitions for handle network diagnostic. */ -#ifndef NETWORK_DIAGNOSTIC_HPP_ -#define NETWORK_DIAGNOSTIC_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DIAGNOSTIC_HPP_ +#define OT_CORE_THREAD_NETWORK_DIAGNOSTIC_HPP_ #include "openthread-core-config.h" @@ -398,4 +398,4 @@ DeclareTmfHandler(Client, kUriDiagnosticReset); } // namespace ot -#endif // NETWORK_DIAGNOSTIC_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DIAGNOSTIC_HPP_ diff --git a/src/core/thread/network_diagnostic_tlvs.hpp b/src/core/thread/network_diagnostic_tlvs.hpp index d506d2d79..ec9bf780e 100644 --- a/src/core/thread/network_diagnostic_tlvs.hpp +++ b/src/core/thread/network_diagnostic_tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generating and processing Network Diagnostics TLVs. */ -#ifndef NETWORK_DIAGNOSTIC_TLVS_HPP_ -#define NETWORK_DIAGNOSTIC_TLVS_HPP_ +#ifndef OT_CORE_THREAD_NETWORK_DIAGNOSTIC_TLVS_HPP_ +#define OT_CORE_THREAD_NETWORK_DIAGNOSTIC_TLVS_HPP_ #include "openthread-core-config.h" @@ -1155,4 +1155,4 @@ private: } // namespace NetworkDiagnostic } // namespace ot -#endif // NETWORK_DIAGNOSTIC_TLVS_HPP_ +#endif // OT_CORE_THREAD_NETWORK_DIAGNOSTIC_TLVS_HPP_ diff --git a/src/core/thread/panid_query_server.hpp b/src/core/thread/panid_query_server.hpp index 3d7fa3e1e..33300f5ed 100644 --- a/src/core/thread/panid_query_server.hpp +++ b/src/core/thread/panid_query_server.hpp @@ -31,8 +31,8 @@ * This file includes definitions for responding to PANID Query Requests. */ -#ifndef PANID_QUERY_SERVER_HPP_ -#define PANID_QUERY_SERVER_HPP_ +#ifndef OT_CORE_THREAD_PANID_QUERY_SERVER_HPP_ +#define OT_CORE_THREAD_PANID_QUERY_SERVER_HPP_ #include "openthread-core-config.h" @@ -90,4 +90,4 @@ DeclareTmfHandler(PanIdQueryServer, kUriPanIdQuery); } // namespace ot -#endif // PANID_QUERY_SERVER_HPP_ +#endif // OT_CORE_THREAD_PANID_QUERY_SERVER_HPP_ diff --git a/src/core/thread/peer.hpp b/src/core/thread/peer.hpp index 04032aaad..9b2b4ff46 100644 --- a/src/core/thread/peer.hpp +++ b/src/core/thread/peer.hpp @@ -31,8 +31,8 @@ * This file includes definitions for a Thread P2P `Peer`. */ -#ifndef PEER_HPP_ -#define PEER_HPP_ +#ifndef OT_CORE_THREAD_PEER_HPP_ +#define OT_CORE_THREAD_PEER_HPP_ #include "openthread-core-config.h" @@ -120,4 +120,4 @@ private: #endif // OPENTHREAD_CONFIG_P2P_ENABLE -#endif // PEER_HPP_ +#endif // OT_CORE_THREAD_PEER_HPP_ diff --git a/src/core/thread/peer_table.hpp b/src/core/thread/peer_table.hpp index 8041d27a3..8ac2fc28f 100644 --- a/src/core/thread/peer_table.hpp +++ b/src/core/thread/peer_table.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Thread Peer table. */ -#ifndef PEER_TABLE_HPP_ -#define PEER_TABLE_HPP_ +#ifndef OT_CORE_THREAD_PEER_TABLE_HPP_ +#define OT_CORE_THREAD_PEER_TABLE_HPP_ #include "openthread-core-config.h" @@ -187,4 +187,4 @@ private: #endif // OPENTHREAD_CONFIG_P2P_ENABLE -#endif // PEER_TABLE_HPP_ +#endif // OT_CORE_THREAD_PEER_TABLE_HPP_ diff --git a/src/core/thread/radio_selector.hpp b/src/core/thread/radio_selector.hpp index e109eee58..94df76526 100644 --- a/src/core/thread/radio_selector.hpp +++ b/src/core/thread/radio_selector.hpp @@ -31,8 +31,8 @@ * This file includes definitions for radio selector (for multi radio links). */ -#ifndef RADIO_SELECTOR_HPP_ -#define RADIO_SELECTOR_HPP_ +#ifndef OT_CORE_THREAD_RADIO_SELECTOR_HPP_ +#define OT_CORE_THREAD_RADIO_SELECTOR_HPP_ #include "openthread-core-config.h" @@ -203,4 +203,4 @@ private: #endif // #if OPENTHREAD_CONFIG_MULTI_RADIO -#endif // RADIO_SELECTOR_HPP_ +#endif // OT_CORE_THREAD_RADIO_SELECTOR_HPP_ diff --git a/src/core/thread/router.hpp b/src/core/thread/router.hpp index 86120e56a..ad1c5229f 100644 --- a/src/core/thread/router.hpp +++ b/src/core/thread/router.hpp @@ -31,8 +31,8 @@ * This file includes definitions Thread `Router` and `Parent`. */ -#ifndef ROUTER_HPP_ -#define ROUTER_HPP_ +#ifndef OT_CORE_THREAD_ROUTER_HPP_ +#define OT_CORE_THREAD_ROUTER_HPP_ #include "openthread-core-config.h" @@ -315,4 +315,4 @@ DefineCoreType(otRouterInfo, Router::Info); } // namespace ot -#endif // ROUTER_HPP_ +#endif // OT_CORE_THREAD_ROUTER_HPP_ diff --git a/src/core/thread/router_table.hpp b/src/core/thread/router_table.hpp index a7b1c6f5c..c22806664 100644 --- a/src/core/thread/router_table.hpp +++ b/src/core/thread/router_table.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef ROUTER_TABLE_HPP_ -#define ROUTER_TABLE_HPP_ +#ifndef OT_CORE_THREAD_ROUTER_TABLE_HPP_ +#define OT_CORE_THREAD_ROUTER_TABLE_HPP_ #include "openthread-core-config.h" @@ -474,4 +474,4 @@ private: #endif // OPENTHREAD_FTD -#endif // ROUTER_TABLE_HPP_ +#endif // OT_CORE_THREAD_ROUTER_TABLE_HPP_ diff --git a/src/core/thread/src_match_controller.hpp b/src/core/thread/src_match_controller.hpp index 419fca9c9..486d7bb08 100644 --- a/src/core/thread/src_match_controller.hpp +++ b/src/core/thread/src_match_controller.hpp @@ -31,8 +31,8 @@ * This file includes definitions for source address match controller. */ -#ifndef SOURCE_MATCH_CONTROLLER_HPP_ -#define SOURCE_MATCH_CONTROLLER_HPP_ +#ifndef OT_CORE_THREAD_SRC_MATCH_CONTROLLER_HPP_ +#define OT_CORE_THREAD_SRC_MATCH_CONTROLLER_HPP_ #include "openthread-core-config.h" @@ -184,4 +184,4 @@ private: #endif // OPENTHREAD_FTD -#endif // SOURCE_MATCH_CONTROLLER_HPP_ +#endif // OT_CORE_THREAD_SRC_MATCH_CONTROLLER_HPP_ diff --git a/src/core/thread/thread_link_info.hpp b/src/core/thread/thread_link_info.hpp index 3214b6a11..a028b0f67 100644 --- a/src/core/thread/thread_link_info.hpp +++ b/src/core/thread/thread_link_info.hpp @@ -31,8 +31,8 @@ * This file includes definitions for link-specific information for messages received from the Thread radio. */ -#ifndef THREAD_LINK_INFO_HPP_ -#define THREAD_LINK_INFO_HPP_ +#ifndef OT_CORE_THREAD_THREAD_LINK_INFO_HPP_ +#define OT_CORE_THREAD_THREAD_LINK_INFO_HPP_ #include "openthread-core-config.h" @@ -122,4 +122,4 @@ DefineCoreType(otThreadLinkInfo, ThreadLinkInfo); } // namespace ot -#endif // THREAD_LINK_INFO_HPP_ +#endif // OT_CORE_THREAD_THREAD_LINK_INFO_HPP_ diff --git a/src/core/thread/thread_netif.hpp b/src/core/thread/thread_netif.hpp index 5464ae2cb..417e21300 100644 --- a/src/core/thread/thread_netif.hpp +++ b/src/core/thread/thread_netif.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the Thread network interface. */ -#ifndef THREAD_NETIF_HPP_ -#define THREAD_NETIF_HPP_ +#ifndef OT_CORE_THREAD_THREAD_NETIF_HPP_ +#define OT_CORE_THREAD_THREAD_NETIF_HPP_ #include "openthread-core-config.h" @@ -88,4 +88,4 @@ private: } // namespace ot -#endif // THREAD_NETIF_HPP_ +#endif // OT_CORE_THREAD_THREAD_NETIF_HPP_ diff --git a/src/core/thread/thread_tlvs.hpp b/src/core/thread/thread_tlvs.hpp index e94fdde91..ef22048e1 100644 --- a/src/core/thread/thread_tlvs.hpp +++ b/src/core/thread/thread_tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions and methods for generating and processing Thread Network Layer TLVs. */ -#ifndef THREAD_TLVS_HPP_ -#define THREAD_TLVS_HPP_ +#ifndef OT_CORE_THREAD_THREAD_TLVS_HPP_ +#define OT_CORE_THREAD_THREAD_TLVS_HPP_ #include "openthread-core-config.h" @@ -284,4 +284,4 @@ public: } // namespace ot -#endif // THREAD_TLVS_HPP_ +#endif // OT_CORE_THREAD_THREAD_TLVS_HPP_ diff --git a/src/core/thread/time_sync_service.hpp b/src/core/thread/time_sync_service.hpp index 359c9f569..1e0c01bee 100644 --- a/src/core/thread/time_sync_service.hpp +++ b/src/core/thread/time_sync_service.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread network time synchronization service. */ -#ifndef TIME_SYNC_HPP_ -#define TIME_SYNC_HPP_ +#ifndef OT_CORE_THREAD_TIME_SYNC_SERVICE_HPP_ +#define OT_CORE_THREAD_TIME_SYNC_SERVICE_HPP_ #include "openthread-core-config.h" @@ -212,4 +212,4 @@ DefineMapEnum(otNetworkTimeStatus, TimeSync::Status); #endif // OPENTHREAD_CONFIG_TIME_SYNC_ENABLE -#endif // TIME_SYNC_HPP_ +#endif // OT_CORE_THREAD_TIME_SYNC_SERVICE_HPP_ diff --git a/src/core/thread/tmf.hpp b/src/core/thread/tmf.hpp index 37ba47820..e22f5dd1c 100644 --- a/src/core/thread/tmf.hpp +++ b/src/core/thread/tmf.hpp @@ -272,4 +272,4 @@ private: } // namespace Tmf } // namespace ot -#endif // OT_CORE_THREAD_TMF_HPP_ +#endif // OT_CORE_THREAD_TMF_HPP_ diff --git a/src/core/thread/uri_paths.hpp b/src/core/thread/uri_paths.hpp index ed19b90b4..5d352d424 100644 --- a/src/core/thread/uri_paths.hpp +++ b/src/core/thread/uri_paths.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread URIs. */ -#ifndef URI_PATHS_HPP_ -#define URI_PATHS_HPP_ +#ifndef OT_CORE_THREAD_URI_PATHS_HPP_ +#define OT_CORE_THREAD_URI_PATHS_HPP_ #include "openthread-core-config.h" @@ -163,4 +163,4 @@ template <> const char *UriToString(void); } // namespace ot -#endif // URI_PATHS_HPP_ +#endif // OT_CORE_THREAD_URI_PATHS_HPP_ diff --git a/src/core/thread/version.hpp b/src/core/thread/version.hpp index 873758d9f..82dd68ab9 100644 --- a/src/core/thread/version.hpp +++ b/src/core/thread/version.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Thread Version. */ -#ifndef VERSION_HPP_ -#define VERSION_HPP_ +#ifndef OT_CORE_THREAD_VERSION_HPP_ +#define OT_CORE_THREAD_VERSION_HPP_ #include "openthread-core-config.h" @@ -53,4 +53,4 @@ extern const char kThreadVersionString[]; ///< Thread version as human-readable } // namespace ot -#endif // VERSION_HPP_ +#endif // OT_CORE_THREAD_VERSION_HPP_ diff --git a/src/core/utils/channel_manager.hpp b/src/core/utils/channel_manager.hpp index 6d20d7680..04cbb94f3 100644 --- a/src/core/utils/channel_manager.hpp +++ b/src/core/utils/channel_manager.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Channel Manager. */ -#ifndef CHANNEL_MANAGER_HPP_ -#define CHANNEL_MANAGER_HPP_ +#ifndef OT_CORE_UTILS_CHANNEL_MANAGER_HPP_ +#define OT_CORE_UTILS_CHANNEL_MANAGER_HPP_ #include "openthread-core-config.h" @@ -372,4 +372,4 @@ private: #endif // #if (OPENTHREAD_FTD || OPENTHREAD_CONFIG_CHANNEL_MANAGER_CSL_CHANNEL_SELECT_ENABLE) #endif // #if OPENTHREAD_CONFIG_CHANNEL_MANAGER_ENABLE -#endif // CHANNEL_MANAGER_HPP_ +#endif // OT_CORE_UTILS_CHANNEL_MANAGER_HPP_ diff --git a/src/core/utils/channel_monitor.hpp b/src/core/utils/channel_monitor.hpp index b0a606ea3..5c5c0e346 100644 --- a/src/core/utils/channel_monitor.hpp +++ b/src/core/utils/channel_monitor.hpp @@ -31,8 +31,8 @@ * This file includes definitions for channel monitoring module. */ -#ifndef CHANNEL_MONITOR_HPP_ -#define CHANNEL_MONITOR_HPP_ +#ifndef OT_CORE_UTILS_CHANNEL_MONITOR_HPP_ +#define OT_CORE_UTILS_CHANNEL_MONITOR_HPP_ #include "openthread-core-config.h" @@ -205,4 +205,4 @@ private: #endif // OPENTHREAD_CONFIG_CHANNEL_MONITOR_ENABLE -#endif // CHANNEL_MONITOR_HPP_ +#endif // OT_CORE_UTILS_CHANNEL_MONITOR_HPP_ diff --git a/src/core/utils/flash.hpp b/src/core/utils/flash.hpp index 1104de421..5cc16ce19 100644 --- a/src/core/utils/flash.hpp +++ b/src/core/utils/flash.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef FLASH_HPP_ -#define FLASH_HPP_ +#ifndef OT_CORE_UTILS_FLASH_HPP_ +#define OT_CORE_UTILS_FLASH_HPP_ #include "openthread-core-config.h" @@ -223,4 +223,4 @@ private: #endif // OPENTHREAD_CONFIG_PLATFORM_FLASH_API_ENABLE -#endif // FLASH_HPP_ +#endif // OT_CORE_UTILS_FLASH_HPP_ diff --git a/src/core/utils/heap.hpp b/src/core/utils/heap.hpp index 484362dc3..df26e898c 100644 --- a/src/core/utils/heap.hpp +++ b/src/core/utils/heap.hpp @@ -31,8 +31,8 @@ * This file includes definitions for heap. */ -#ifndef OT_UTILS_HEAP_HPP_ -#define OT_UTILS_HEAP_HPP_ +#ifndef OT_CORE_UTILS_HEAP_HPP_ +#define OT_CORE_UTILS_HEAP_HPP_ #include "openthread-core-config.h" @@ -326,4 +326,4 @@ private: #endif // !OPENTHREAD_CONFIG_HEAP_EXTERNAL_ENABLE -#endif // OT_UTILS_HEAP_HPP_ +#endif // OT_CORE_UTILS_HEAP_HPP_ diff --git a/src/core/utils/history_tracker.hpp b/src/core/utils/history_tracker.hpp index 175f8b231..5857e9eee 100644 --- a/src/core/utils/history_tracker.hpp +++ b/src/core/utils/history_tracker.hpp @@ -31,8 +31,8 @@ * This file includes definitions to support History Tracker module. */ -#ifndef HISTORY_TRACKER_HPP_ -#define HISTORY_TRACKER_HPP_ +#ifndef OT_CORE_UTILS_HISTORY_TRACKER_HPP_ +#define OT_CORE_UTILS_HISTORY_TRACKER_HPP_ #include "openthread-core-config.h" @@ -607,4 +607,4 @@ DefineCoreType(otHistoryTrackerExternalRouteInfo, HistoryTracker::ExternalRouteI #endif // OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE -#endif // HISTORY_TRACKER_HPP_ +#endif // OT_CORE_UTILS_HISTORY_TRACKER_HPP_ diff --git a/src/core/utils/history_tracker_client.hpp b/src/core/utils/history_tracker_client.hpp index 75bd85e98..4b55fa16a 100644 --- a/src/core/utils/history_tracker_client.hpp +++ b/src/core/utils/history_tracker_client.hpp @@ -31,8 +31,8 @@ * This file includes definitions to support History Tracker Client. */ -#ifndef HISTORY_TRACKER_CLIENT_HPP_ -#define HISTORY_TRACKER_CLIENT_HPP_ +#ifndef OT_CORE_UTILS_HISTORY_TRACKER_CLIENT_HPP_ +#define OT_CORE_UTILS_HISTORY_TRACKER_CLIENT_HPP_ #include "openthread-core-config.h" @@ -134,4 +134,4 @@ DeclareTmfHandler(Client, kUriHistoryAnswer); #endif // #if OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE && OPENTHREAD_CONFIG_HISTORY_TRACKER_CLIENT_ENABLE -#endif // HISTORY_TRACKER_CLIENT_HPP_ +#endif // OT_CORE_UTILS_HISTORY_TRACKER_CLIENT_HPP_ diff --git a/src/core/utils/history_tracker_server.hpp b/src/core/utils/history_tracker_server.hpp index 9de68d35b..b31f734a2 100644 --- a/src/core/utils/history_tracker_server.hpp +++ b/src/core/utils/history_tracker_server.hpp @@ -31,8 +31,8 @@ * This file includes definitions to support History Tracker Server (TMF). */ -#ifndef HISTORY_TRACKER_SERVER_HPP_ -#define HISTORY_TRACKER_SERVER_HPP_ +#ifndef OT_CORE_UTILS_HISTORY_TRACKER_SERVER_HPP_ +#define OT_CORE_UTILS_HISTORY_TRACKER_SERVER_HPP_ #include "openthread-core-config.h" @@ -113,4 +113,4 @@ DeclareTmfHandler(Server, kUriHistoryQuery); #endif // OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE && OPENTHREAD_CONFIG_HISTORY_TRACKER_SERVER_ENABLE -#endif // HISTORY_TRACKER_SERVER_HPP_ +#endif // OT_CORE_UTILS_HISTORY_TRACKER_SERVER_HPP_ diff --git a/src/core/utils/history_tracker_tlvs.hpp b/src/core/utils/history_tracker_tlvs.hpp index 064b89b8c..bb9742248 100644 --- a/src/core/utils/history_tracker_tlvs.hpp +++ b/src/core/utils/history_tracker_tlvs.hpp @@ -31,8 +31,8 @@ * This file includes definitions to support History Tracker TLVs. */ -#ifndef HISTORY_TRACKER_TLVS_HPP_ -#define HISTORY_TRACKER_TLVS_HPP_ +#ifndef OT_CORE_UTILS_HISTORY_TRACKER_TLVS_HPP_ +#define OT_CORE_UTILS_HISTORY_TRACKER_TLVS_HPP_ #include "openthread-core-config.h" @@ -212,4 +212,4 @@ private: #endif // OPENTHREAD_CONFIG_HISTORY_TRACKER_ENABLE -#endif // HISTORY_TRACKER_TLVS_HPP_ +#endif // OT_CORE_UTILS_HISTORY_TRACKER_TLVS_HPP_ diff --git a/src/core/utils/jam_detector.hpp b/src/core/utils/jam_detector.hpp index 6b6ecd02a..a4be7a532 100644 --- a/src/core/utils/jam_detector.hpp +++ b/src/core/utils/jam_detector.hpp @@ -31,8 +31,8 @@ * This file includes definitions for jam detector. */ -#ifndef JAM_DETECTOR_HPP_ -#define JAM_DETECTOR_HPP_ +#ifndef OT_CORE_UTILS_JAM_DETECTOR_HPP_ +#define OT_CORE_UTILS_JAM_DETECTOR_HPP_ #include "openthread-core-config.h" @@ -210,4 +210,4 @@ private: #endif // OPENTHREAD_CONFIG_JAM_DETECTION_ENABLE -#endif // JAM_DETECTOR_HPP_ +#endif // OT_CORE_UTILS_JAM_DETECTOR_HPP_ diff --git a/src/core/utils/link_metrics_manager.hpp b/src/core/utils/link_metrics_manager.hpp index cbb56d66f..01b327bba 100644 --- a/src/core/utils/link_metrics_manager.hpp +++ b/src/core/utils/link_metrics_manager.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef LINK_METRICS_MANAGER_HPP_ -#define LINK_METRICS_MANAGER_HPP_ +#ifndef OT_CORE_UTILS_LINK_METRICS_MANAGER_HPP_ +#define OT_CORE_UTILS_LINK_METRICS_MANAGER_HPP_ #include "openthread-core-config.h" @@ -223,4 +223,4 @@ private: #endif // OPENTHREAD_CONFIG_LINK_METRICS_MANAGER_ENABLE -#endif // LINK_METRICS_MANAGER_HPP_ +#endif // OT_CORE_UTILS_LINK_METRICS_MANAGER_HPP_ diff --git a/src/core/utils/mesh_diag.hpp b/src/core/utils/mesh_diag.hpp index e740582ed..d20fd40d9 100644 --- a/src/core/utils/mesh_diag.hpp +++ b/src/core/utils/mesh_diag.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Mesh Diagnostic module. */ -#ifndef MESH_DIAG_HPP_ -#define MESH_DIAG_HPP_ +#ifndef OT_CORE_UTILS_MESH_DIAG_HPP_ +#define OT_CORE_UTILS_MESH_DIAG_HPP_ #include "openthread-core-config.h" @@ -336,4 +336,4 @@ DefineCoreType(otMeshDiagChildIterator, Utils::MeshDiag::ChildIterator); #endif // OPENTHREAD_CONFIG_MESH_DIAG_ENABLE && OPENTHREAD_FTD -#endif // MESH_DIAG_HPP_ +#endif // OT_CORE_UTILS_MESH_DIAG_HPP_ diff --git a/src/core/utils/otns.hpp b/src/core/utils/otns.hpp index ca8625386..ed5bbb700 100644 --- a/src/core/utils/otns.hpp +++ b/src/core/utils/otns.hpp @@ -31,8 +31,8 @@ * This file wraps the calls to platform OTNS abstractions. */ -#ifndef UTILS_OTNS_HPP_ -#define UTILS_OTNS_HPP_ +#ifndef OT_CORE_UTILS_OTNS_HPP_ +#define OT_CORE_UTILS_OTNS_HPP_ #include "openthread-core-config.h" @@ -189,4 +189,4 @@ private: #endif // OPENTHREAD_CONFIG_OTNS_ENABLE -#endif // UTILS_OTNS_HPP_ +#endif // OT_CORE_UTILS_OTNS_HPP_ diff --git a/src/core/utils/parse_cmdline.hpp b/src/core/utils/parse_cmdline.hpp index 6a1d00a18..c395c80a0 100644 --- a/src/core/utils/parse_cmdline.hpp +++ b/src/core/utils/parse_cmdline.hpp @@ -31,8 +31,8 @@ * This file includes definitions for command line parser. */ -#ifndef PARSE_CMD_LINE_HPP_ -#define PARSE_CMD_LINE_HPP_ +#ifndef OT_CORE_UTILS_PARSE_CMDLINE_HPP_ +#define OT_CORE_UTILS_PARSE_CMDLINE_HPP_ #include #include @@ -652,4 +652,4 @@ template <> inline otError Arg::ParseAs(otIp6Prefix &aValue) const { return Pars } // namespace Utils } // namespace ot -#endif // PARSE_CMD_LINE_HPP_ +#endif // OT_CORE_UTILS_PARSE_CMDLINE_HPP_ diff --git a/src/core/utils/ping_sender.hpp b/src/core/utils/ping_sender.hpp index 7f66ba81d..6a1736243 100644 --- a/src/core/utils/ping_sender.hpp +++ b/src/core/utils/ping_sender.hpp @@ -31,8 +31,8 @@ * This file includes definitions to support ping functionality. */ -#ifndef PING_SENDER_HPP_ -#define PING_SENDER_HPP_ +#ifndef OT_CORE_UTILS_PING_SENDER_HPP_ +#define OT_CORE_UTILS_PING_SENDER_HPP_ #include "openthread-core-config.h" @@ -184,4 +184,4 @@ DefineCoreType(otPingSenderStatistics, Utils::PingSender::Statistics); #endif // OPENTHREAD_CONFIG_PING_SENDER_ENABLE -#endif // PING_SENDER_HPP_ +#endif // OT_CORE_UTILS_PING_SENDER_HPP_ diff --git a/src/core/utils/power_calibration.hpp b/src/core/utils/power_calibration.hpp index d59b1e770..f607b66c6 100644 --- a/src/core/utils/power_calibration.hpp +++ b/src/core/utils/power_calibration.hpp @@ -31,8 +31,8 @@ * @brief * This file includes definitions for the platform power calibration module. */ -#ifndef POWER_CALIBRATION_HPP_ -#define POWER_CALIBRATION_HPP_ +#ifndef OT_CORE_UTILS_POWER_CALIBRATION_HPP_ +#define OT_CORE_UTILS_POWER_CALIBRATION_HPP_ #include "openthread-core-config.h" @@ -168,4 +168,4 @@ private: } // namespace ot #endif // OPENTHREAD_CONFIG_POWER_CALIBRATION_ENABLE && OPENTHREAD_CONFIG_PLATFORM_POWER_CALIBRATION_ENABLE -#endif // POWER_CALIBRATION_HPP_ +#endif // OT_CORE_UTILS_POWER_CALIBRATION_HPP_ diff --git a/src/core/utils/srp_client_buffers.hpp b/src/core/utils/srp_client_buffers.hpp index c6f1e963a..ca983be4f 100644 --- a/src/core/utils/srp_client_buffers.hpp +++ b/src/core/utils/srp_client_buffers.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the SRP client buffers and service pool. */ -#ifndef SRP_CLIENT_BUFFERS_HPP_ -#define SRP_CLIENT_BUFFERS_HPP_ +#ifndef OT_CORE_UTILS_SRP_CLIENT_BUFFERS_HPP_ +#define OT_CORE_UTILS_SRP_CLIENT_BUFFERS_HPP_ #include "openthread-core-config.h" @@ -251,4 +251,4 @@ DefineCoreType(otSrpClientBuffersServiceEntry, Utils::SrpClientBuffers::ServiceE #endif // OPENTHREAD_CONFIG_SRP_CLIENT_BUFFERS_ENABLE -#endif // SRP_CLIENT_BUFFERS_HPP_ +#endif // OT_CORE_UTILS_SRP_CLIENT_BUFFERS_HPP_ diff --git a/src/core/utils/static_counter.hpp b/src/core/utils/static_counter.hpp index b688ff6ea..ce8ce75e6 100644 --- a/src/core/utils/static_counter.hpp +++ b/src/core/utils/static_counter.hpp @@ -31,8 +31,8 @@ * This file provides a compile time counter and utilities based on it. */ -#ifndef OT_UTILS_STATIC_COUNTER_HPP_ -#define OT_UTILS_STATIC_COUNTER_HPP_ +#ifndef OT_CORE_UTILS_STATIC_COUNTER_HPP_ +#define OT_CORE_UTILS_STATIC_COUNTER_HPP_ namespace ot { @@ -65,4 +65,4 @@ public: } // namespace ot -#endif // OT_UTILS_STATIC_COUNTER_HPP_ +#endif // OT_CORE_UTILS_STATIC_COUNTER_HPP_ diff --git a/src/core/utils/verhoeff_checksum.hpp b/src/core/utils/verhoeff_checksum.hpp index 247a6b7fc..964a5de61 100644 --- a/src/core/utils/verhoeff_checksum.hpp +++ b/src/core/utils/verhoeff_checksum.hpp @@ -31,8 +31,8 @@ * This file includes definitions for Verhoeff checksum calculation and validation. */ -#ifndef VERHOEFF_CHECKSUM_HPP_ -#define VERHOEFF_CHECKSUM_HPP_ +#ifndef OT_CORE_UTILS_VERHOEFF_CHECKSUM_HPP_ +#define OT_CORE_UTILS_VERHOEFF_CHECKSUM_HPP_ #include "openthread-core-config.h" @@ -93,4 +93,4 @@ private: #endif // OPENTHREAD_CONFIG_VERHOEFF_CHECKSUM_ENABLE -#endif // VERHOEFF_CHECKSUM_HPP_ +#endif // OT_CORE_UTILS_VERHOEFF_CHECKSUM_HPP_ diff --git a/src/include/common/code_utils.hpp b/src/include/common/code_utils.hpp index 828196029..c984a1f9f 100644 --- a/src/include/common/code_utils.hpp +++ b/src/include/common/code_utils.hpp @@ -31,8 +31,8 @@ * This file includes macros for validating runtime conditions. */ -#ifndef OT_INCLUDE_COMMON_UTILS_CODE_UTILS_HPP_ -#define OT_INCLUDE_COMMON_UTILS_CODE_UTILS_HPP_ +#ifndef OT_INCLUDE_COMMON_CODE_UTILS_HPP_ +#define OT_INCLUDE_COMMON_CODE_UTILS_HPP_ #include @@ -163,4 +163,4 @@ */ static inline void IgnoreError(otError aError) { OT_UNUSED_VARIABLE(aError); } -#endif // OT_INCLUDE_COMMON_UTILS_CODE_UTILS_HPP_ +#endif // OT_INCLUDE_COMMON_CODE_UTILS_HPP_ diff --git a/src/lib/hdlc/hdlc.hpp b/src/lib/hdlc/hdlc.hpp index 222a4ecee..8aa0ed8be 100644 --- a/src/lib/hdlc/hdlc.hpp +++ b/src/lib/hdlc/hdlc.hpp @@ -30,8 +30,8 @@ * This file includes definitions for an HDLC-lite encoder and decoder. */ -#ifndef HDLC_HPP_ -#define HDLC_HPP_ +#ifndef OT_LIB_HDLC_HDLC_HPP_ +#define OT_LIB_HDLC_HDLC_HPP_ #include #include @@ -182,4 +182,4 @@ private: } // namespace Hdlc } // namespace ot -#endif // HDLC_HPP_ +#endif // OT_LIB_HDLC_HDLC_HPP_ diff --git a/src/lib/platform/exit_code.h b/src/lib/platform/exit_code.h index 7a255981e..071cabbb7 100644 --- a/src/lib/platform/exit_code.h +++ b/src/lib/platform/exit_code.h @@ -31,8 +31,8 @@ * This file contains header for exit code utilities. */ -#ifndef PLATFORM_EXIT_CODE_H_ -#define PLATFORM_EXIT_CODE_H_ +#ifndef OT_LIB_PLATFORM_EXIT_CODE_H_ +#define OT_LIB_PLATFORM_EXIT_CODE_H_ #include #include @@ -161,4 +161,4 @@ const char *otExitCodeToString(uint8_t aExitCode); } #endif -#endif // PLATFORM_EXIT_CODE_H_ +#endif // OT_LIB_PLATFORM_EXIT_CODE_H_ diff --git a/src/lib/spinel/coprocessor_type.h b/src/lib/spinel/coprocessor_type.h index 78fc4e19b..3376024cf 100644 --- a/src/lib/spinel/coprocessor_type.h +++ b/src/lib/spinel/coprocessor_type.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef COPROCESSOR_TYPE_H_ -#define COPROCESSOR_TYPE_H_ +#ifndef OT_LIB_SPINEL_COPROCESSOR_TYPE_H_ +#define OT_LIB_SPINEL_COPROCESSOR_TYPE_H_ #ifdef __cplusplus extern "C" { @@ -47,4 +47,4 @@ typedef enum CoprocessorType #ifdef __cplusplus } #endif -#endif // COPROCESSOR_TYPE_H_ +#endif // OT_LIB_SPINEL_COPROCESSOR_TYPE_H_ diff --git a/src/lib/spinel/example_vendor_hook.hpp b/src/lib/spinel/example_vendor_hook.hpp index df35e8bc3..cccc68402 100644 --- a/src/lib/spinel/example_vendor_hook.hpp +++ b/src/lib/spinel/example_vendor_hook.hpp @@ -30,8 +30,8 @@ * This file shows how to implement the Radio Spinel vendor hook. */ -#ifndef SPINEL_EXTENSION_H -#define SPINEL_EXTENSION_H +#ifndef OT_LIB_SPINEL_EXAMPLE_VENDOR_HOOK_HPP_ +#define OT_LIB_SPINEL_EXAMPLE_VENDOR_HOOK_HPP_ #if OPENTHREAD_SPINEL_CONFIG_VENDOR_HOOK_ENABLE @@ -56,4 +56,4 @@ public: } // namespace ot #endif // OPENTHREAD_SPINEL_CONFIG_VENDOR_HOOK_ENABLE -#endif // SPINEL_EXTENSION_H +#endif // OT_LIB_SPINEL_EXAMPLE_VENDOR_HOOK_HPP_ diff --git a/src/lib/spinel/logger.hpp b/src/lib/spinel/logger.hpp index 68963d9b5..9ab3ff9fb 100644 --- a/src/lib/spinel/logger.hpp +++ b/src/lib/spinel/logger.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SPINEL_LOGGER_HPP_ -#define SPINEL_LOGGER_HPP_ +#ifndef OT_LIB_SPINEL_LOGGER_HPP_ +#define OT_LIB_SPINEL_LOGGER_HPP_ #include @@ -64,4 +64,4 @@ protected: } // namespace Spinel } // namespace ot -#endif // SPINEL_LOG_HPP_ +#endif // OT_LIB_SPINEL_LOGGER_HPP_ diff --git a/src/lib/spinel/multi_frame_buffer.hpp b/src/lib/spinel/multi_frame_buffer.hpp index a1a277e76..30050b38d 100644 --- a/src/lib/spinel/multi_frame_buffer.hpp +++ b/src/lib/spinel/multi_frame_buffer.hpp @@ -30,8 +30,8 @@ * This file includes definitions for the multiple frame buffer. */ -#ifndef SPINEL_MULTI_FRAME_BUFFER_HPP_ -#define SPINEL_MULTI_FRAME_BUFFER_HPP_ +#ifndef OT_LIB_SPINEL_MULTI_FRAME_BUFFER_HPP_ +#define OT_LIB_SPINEL_MULTI_FRAME_BUFFER_HPP_ #include #include @@ -447,4 +447,4 @@ private: } // namespace Spinel } // namespace ot -#endif // SPINEL_MULTI_FRAME_BUFFER_HPP_ +#endif // OT_LIB_SPINEL_MULTI_FRAME_BUFFER_HPP_ diff --git a/src/lib/spinel/openthread-spinel-config.h b/src/lib/spinel/openthread-spinel-config.h index c8b853bf3..60d5669ab 100644 --- a/src/lib/spinel/openthread-spinel-config.h +++ b/src/lib/spinel/openthread-spinel-config.h @@ -31,8 +31,8 @@ * This file includes compile-time configuration constants for OpenThread. */ -#ifndef OPENTHREAD_SPINEL_CONFIG_H_ -#define OPENTHREAD_SPINEL_CONFIG_H_ +#ifndef OT_LIB_SPINEL_OPENTHREAD_SPINEL_CONFIG_H_ +#define OT_LIB_SPINEL_OPENTHREAD_SPINEL_CONFIG_H_ /** * Include project specific lib config file if defined. @@ -199,4 +199,4 @@ #endif #endif -#endif // OPENTHREAD_SPINEL_CONFIG_H_ +#endif // OT_LIB_SPINEL_OPENTHREAD_SPINEL_CONFIG_H_ diff --git a/src/lib/spinel/radio_spinel.hpp b/src/lib/spinel/radio_spinel.hpp index f1f36c877..c17503cdb 100644 --- a/src/lib/spinel/radio_spinel.hpp +++ b/src/lib/spinel/radio_spinel.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the spinel based radio transceiver. */ -#ifndef RADIO_SPINEL_HPP_ -#define RADIO_SPINEL_HPP_ +#ifndef OT_LIB_SPINEL_RADIO_SPINEL_HPP_ +#define OT_LIB_SPINEL_RADIO_SPINEL_HPP_ #include #include @@ -1370,4 +1370,4 @@ private: } // namespace Spinel } // namespace ot -#endif // RADIO_SPINEL_HPP_ +#endif // OT_LIB_SPINEL_RADIO_SPINEL_HPP_ diff --git a/src/lib/spinel/radio_spinel_metrics.h b/src/lib/spinel/radio_spinel_metrics.h index 5521788bc..8aa0bc922 100644 --- a/src/lib/spinel/radio_spinel_metrics.h +++ b/src/lib/spinel/radio_spinel_metrics.h @@ -32,8 +32,8 @@ * This file includes the definitions of the radio spinel metrics. */ -#ifndef RADIO_SPINEL_METRICS_H_ -#define RADIO_SPINEL_METRICS_H_ +#ifndef OT_LIB_SPINEL_RADIO_SPINEL_METRICS_H_ +#define OT_LIB_SPINEL_RADIO_SPINEL_METRICS_H_ #include @@ -71,4 +71,4 @@ typedef struct otRcpInterfaceMetrics } // end of extern "C" #endif -#endif // RADIO_SPINEL_METRICS_H_ +#endif // OT_LIB_SPINEL_RADIO_SPINEL_METRICS_H_ diff --git a/src/lib/spinel/spi_frame.hpp b/src/lib/spinel/spi_frame.hpp index fae6a1f8b..fa15ffe3e 100644 --- a/src/lib/spinel/spi_frame.hpp +++ b/src/lib/spinel/spi_frame.hpp @@ -30,8 +30,8 @@ * This file contains definitions of the SPI frame. */ -#ifndef SPINEL_SPI_FRAME_HPP_ -#define SPINEL_SPI_FRAME_HPP_ +#ifndef OT_LIB_SPINEL_SPI_FRAME_HPP_ +#define OT_LIB_SPINEL_SPI_FRAME_HPP_ #include @@ -235,4 +235,4 @@ private: } // namespace Spinel } // namespace ot -#endif // SPINEL_SPI_FRAME_HPP_ +#endif // OT_LIB_SPINEL_SPI_FRAME_HPP_ diff --git a/src/lib/spinel/spinel.h b/src/lib/spinel/spinel.h index 3c9bcdbee..fb42e30df 100644 --- a/src/lib/spinel/spinel.h +++ b/src/lib/spinel/spinel.h @@ -30,8 +30,8 @@ * This file contains definitions of spinel. */ -#ifndef SPINEL_HEADER_INCLUDED -#define SPINEL_HEADER_INCLUDED 1 +#ifndef OT_LIB_SPINEL_SPINEL_H_ +#define OT_LIB_SPINEL_SPINEL_H_ /* * Spinel is a host-controller protocol designed to enable @@ -5318,4 +5318,4 @@ SPINEL_API_EXTERN const char *spinel_link_metrics_status_to_cstr(uint8_t status) } #endif -#endif /* defined(SPINEL_HEADER_INCLUDED) */ +#endif // OT_LIB_SPINEL_SPINEL_H_ diff --git a/src/lib/spinel/spinel_buffer.hpp b/src/lib/spinel/spinel_buffer.hpp index b4d3166b9..1c7bca486 100644 --- a/src/lib/spinel/spinel_buffer.hpp +++ b/src/lib/spinel/spinel_buffer.hpp @@ -30,8 +30,8 @@ * This file contains definitions for the NCP frame buffer class. */ -#ifndef NCP_FRAME_BUFFER_HPP_ -#define NCP_FRAME_BUFFER_HPP_ +#ifndef OT_LIB_SPINEL_SPINEL_BUFFER_HPP_ +#define OT_LIB_SPINEL_SPINEL_BUFFER_HPP_ #include "openthread-spinel-config.h" @@ -624,4 +624,4 @@ private: } // namespace Spinel } // namespace ot -#endif // NCP_FRAME_BUFFER_HPP_ +#endif // OT_LIB_SPINEL_SPINEL_BUFFER_HPP_ diff --git a/src/lib/spinel/spinel_decoder.hpp b/src/lib/spinel/spinel_decoder.hpp index 9294db24a..3fe0740b7 100644 --- a/src/lib/spinel/spinel_decoder.hpp +++ b/src/lib/spinel/spinel_decoder.hpp @@ -30,8 +30,8 @@ * This file contains the definitions of a spinel decoder. */ -#ifndef SPINEL_DECODER_HPP_ -#define SPINEL_DECODER_HPP_ +#ifndef OT_LIB_SPINEL_SPINEL_DECODER_HPP_ +#define OT_LIB_SPINEL_SPINEL_DECODER_HPP_ #include "openthread-spinel-config.h" @@ -546,4 +546,4 @@ private: } // namespace Spinel } // namespace ot -#endif // SPINEL_DECODER_HPP_ +#endif // OT_LIB_SPINEL_SPINEL_DECODER_HPP_ diff --git a/src/lib/spinel/spinel_driver.hpp b/src/lib/spinel/spinel_driver.hpp index 80fff7edf..1de408b4e 100644 --- a/src/lib/spinel/spinel_driver.hpp +++ b/src/lib/spinel/spinel_driver.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SPINEL_DRIVER_HPP_ -#define SPINEL_DRIVER_HPP_ +#ifndef OT_LIB_SPINEL_SPINEL_DRIVER_HPP_ +#define OT_LIB_SPINEL_SPINEL_DRIVER_HPP_ #include @@ -342,4 +342,4 @@ private: } // namespace Spinel } // namespace ot -#endif // SPINEL_DRIVER_HPP_ +#endif // OT_LIB_SPINEL_SPINEL_DRIVER_HPP_ diff --git a/src/lib/spinel/spinel_encoder.hpp b/src/lib/spinel/spinel_encoder.hpp index 2aa68b8cf..49be2a941 100644 --- a/src/lib/spinel/spinel_encoder.hpp +++ b/src/lib/spinel/spinel_encoder.hpp @@ -30,8 +30,8 @@ * This file contains the definitions of a spinel encoder. */ -#ifndef SPINEL_ENCODER_HPP_ -#define SPINEL_ENCODER_HPP_ +#ifndef OT_LIB_SPINEL_SPINEL_ENCODER_HPP_ +#define OT_LIB_SPINEL_SPINEL_ENCODER_HPP_ #include "openthread-spinel-config.h" @@ -663,4 +663,4 @@ private: } // namespace Spinel } // namespace ot -#endif // SPINEL_ENCODER_HPP_ +#endif // OT_LIB_SPINEL_SPINEL_ENCODER_HPP_ diff --git a/src/lib/spinel/spinel_encrypter.hpp b/src/lib/spinel/spinel_encrypter.hpp index c0268e40f..46999e8f9 100644 --- a/src/lib/spinel/spinel_encrypter.hpp +++ b/src/lib/spinel/spinel_encrypter.hpp @@ -25,6 +25,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#ifndef OT_LIB_SPINEL_SPINEL_ENCRYPTER_HPP_ +#define OT_LIB_SPINEL_SPINEL_ENCRYPTER_HPP_ + #include /** @@ -62,3 +65,5 @@ bool EncryptOutbound(unsigned char *aFrameBuf, size_t aFrameSize, size_t *aFrame bool DecryptInbound(unsigned char *aFrameBuf, size_t aFrameSize, size_t *aFrameLength); } // namespace SpinelEncrypter + +#endif // OT_LIB_SPINEL_SPINEL_ENCRYPTER_HPP_ diff --git a/src/lib/spinel/spinel_helper.hpp b/src/lib/spinel/spinel_helper.hpp index b42b00872..6413093df 100644 --- a/src/lib/spinel/spinel_helper.hpp +++ b/src/lib/spinel/spinel_helper.hpp @@ -30,8 +30,8 @@ * @file This file includes definitions for spinel helper methods. */ -#ifndef SPINEL_HELPER_HPP_ -#define SPINEL_HELPER_HPP_ +#ifndef OT_LIB_SPINEL_SPINEL_HELPER_HPP_ +#define OT_LIB_SPINEL_SPINEL_HELPER_HPP_ #include @@ -65,4 +65,4 @@ otError SpinelStatusToOtError(spinel_status_t aStatus); } // namespace Spinel } // namespace ot -#endif // SPINEL_HELPER_HPP_ +#endif // OT_LIB_SPINEL_SPINEL_HELPER_HPP_ diff --git a/src/lib/spinel/spinel_interface.hpp b/src/lib/spinel/spinel_interface.hpp index 0fb37e779..ca237b1c6 100644 --- a/src/lib/spinel/spinel_interface.hpp +++ b/src/lib/spinel/spinel_interface.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the spinel interface to Radio Co-processor (RCP) */ -#ifndef SPINEL_SPINEL_INTERFACE_HPP_ -#define SPINEL_SPINEL_INTERFACE_HPP_ +#ifndef OT_LIB_SPINEL_SPINEL_INTERFACE_HPP_ +#define OT_LIB_SPINEL_SPINEL_INTERFACE_HPP_ #include "openthread-spinel-config.h" @@ -197,4 +197,4 @@ protected: } // namespace Spinel } // namespace ot -#endif // SPINEL_SPINEL_INTERFACE_HPP_ +#endif // OT_LIB_SPINEL_SPINEL_INTERFACE_HPP_ diff --git a/src/lib/spinel/spinel_platform.h b/src/lib/spinel/spinel_platform.h index 1d13eec73..46a172f59 100644 --- a/src/lib/spinel/spinel_platform.h +++ b/src/lib/spinel/spinel_platform.h @@ -25,8 +25,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SPINEL_PLATFORM_OPENTHREAD_H_ -#define SPINEL_PLATFORM_OPENTHREAD_H_ +#ifndef OT_LIB_SPINEL_SPINEL_PLATFORM_H_ +#define OT_LIB_SPINEL_SPINEL_PLATFORM_H_ /** * This is the platform header file used for spinel on @@ -55,4 +55,4 @@ #include #include -#endif // SPINEL_PLATFORM_OPENTHREAD_H_ +#endif // OT_LIB_SPINEL_SPINEL_PLATFORM_H_ diff --git a/src/lib/spinel/spinel_prop_codec.hpp b/src/lib/spinel/spinel_prop_codec.hpp index 36a95bde7..595f83525 100644 --- a/src/lib/spinel/spinel_prop_codec.hpp +++ b/src/lib/spinel/spinel_prop_codec.hpp @@ -30,8 +30,8 @@ * @file This file includes definitions for spinel property encoding and decoding functions. */ -#ifndef SPINEL_PROP_CODEC_HPP_ -#define SPINEL_PROP_CODEC_HPP_ +#ifndef OT_LIB_SPINEL_SPINEL_PROP_CODEC_HPP_ +#define OT_LIB_SPINEL_SPINEL_PROP_CODEC_HPP_ #include @@ -175,4 +175,4 @@ otError DecodeDnssdBrowseResult(Decoder &aDecoder, } // namespace Spinel } // namespace ot -#endif // SPINEL_PROP_CODEC_HPP_ +#endif // OT_LIB_SPINEL_SPINEL_PROP_CODEC_HPP_ diff --git a/src/lib/utils/endian.hpp b/src/lib/utils/endian.hpp index 28cb05372..4271ca0d8 100644 --- a/src/lib/utils/endian.hpp +++ b/src/lib/utils/endian.hpp @@ -31,8 +31,8 @@ * This file includes definitions for endianness utility functions. */ -#ifndef LIB_UTILS_ENDIAN_HPP_ -#define LIB_UTILS_ENDIAN_HPP_ +#ifndef OT_LIB_UTILS_ENDIAN_HPP_ +#define OT_LIB_UTILS_ENDIAN_HPP_ #include @@ -67,4 +67,4 @@ inline void WriteUint16(uint16_t aValue, uint8_t *aBuffer) } // namespace Lib } // namespace ot -#endif // LIB_UTILS_ENDIAN_HPP_ +#endif // OT_LIB_UTILS_ENDIAN_HPP_ diff --git a/src/lib/utils/math.hpp b/src/lib/utils/math.hpp index 66dd521e6..4305cc929 100644 --- a/src/lib/utils/math.hpp +++ b/src/lib/utils/math.hpp @@ -31,8 +31,8 @@ * This file includes definitions for generic number utility functions (min, max). */ -#ifndef LIB_UTILS_MATH_HPP_ -#define LIB_UTILS_MATH_HPP_ +#ifndef OT_LIB_UTILS_MATH_HPP_ +#define OT_LIB_UTILS_MATH_HPP_ namespace ot { namespace Lib { @@ -79,4 +79,4 @@ inline unsigned long ToUlong(uint32_t aUint32) { return static_cast struct NcpBase::DnssdDiscoveryPropKeyFor } // namespace Ncp } // namespace ot -#endif // NCP_BASE_HPP_ +#endif // OT_NCP_NCP_BASE_HPP_ diff --git a/src/ncp/ncp_config.h b/src/ncp/ncp_config.h index c60ee716f..9806b12a4 100644 --- a/src/ncp/ncp_config.h +++ b/src/ncp/ncp_config.h @@ -31,8 +31,8 @@ * This file includes compile-time configurations for the NCP. */ -#ifndef CONFIG_NCP_H_ -#define CONFIG_NCP_H_ +#ifndef OT_NCP_NCP_CONFIG_H_ +#define OT_NCP_NCP_CONFIG_H_ #ifndef OPENTHREAD_RADIO #define OPENTHREAD_RADIO 0 @@ -216,4 +216,4 @@ #define OPENTHREAD_ENABLE_NCP_SPINEL_ENCRYPTER 0 #endif -#endif // CONFIG_NCP_H_ +#endif // OT_NCP_NCP_CONFIG_H_ diff --git a/src/ncp/ncp_hdlc.hpp b/src/ncp/ncp_hdlc.hpp index 1ca8fbeeb..452edfe71 100644 --- a/src/ncp/ncp_hdlc.hpp +++ b/src/ncp/ncp_hdlc.hpp @@ -30,8 +30,8 @@ * This file contains definitions for a HDLC based NCP interface to the OpenThread stack. */ -#ifndef NCP_HDLC_HPP_ -#define NCP_HDLC_HPP_ +#ifndef OT_NCP_NCP_HDLC_HPP_ +#define OT_NCP_NCP_HDLC_HPP_ #include "openthread-core-config.h" @@ -154,4 +154,4 @@ private: } // namespace Ncp } // namespace ot -#endif // NCP_HDLC_HPP_ +#endif // OT_NCP_NCP_HDLC_HPP_ diff --git a/src/ncp/ncp_spi.hpp b/src/ncp/ncp_spi.hpp index c271fe1ff..05ba07833 100644 --- a/src/ncp/ncp_spi.hpp +++ b/src/ncp/ncp_spi.hpp @@ -30,8 +30,8 @@ * This file contains definitions for a SPI interface to the OpenThread stack. */ -#ifndef NCP_SPI_HPP_ -#define NCP_SPI_HPP_ +#ifndef OT_NCP_NCP_SPI_HPP_ +#define OT_NCP_NCP_SPI_HPP_ #include "openthread-core-config.h" @@ -115,4 +115,4 @@ private: } // namespace Ncp } // namespace ot -#endif // NCP_SPI_HPP_ +#endif // OT_NCP_NCP_SPI_HPP_ diff --git a/src/posix/platform/include/openthread/openthread-system.h b/src/posix/platform/include/openthread/openthread-system.h index dd86e5358..a94073fde 100644 --- a/src/posix/platform/include/openthread/openthread-system.h +++ b/src/posix/platform/include/openthread/openthread-system.h @@ -32,8 +32,8 @@ * This file defines the platform-specific functions needed by OpenThread's example applications. */ -#ifndef OPENTHREAD_SYSTEM_H_ -#define OPENTHREAD_SYSTEM_H_ +#ifndef OT_POSIX_PLATFORM_INCLUDE_OPENTHREAD_OPENTHREAD_SYSTEM_H_ +#define OT_POSIX_PLATFORM_INCLUDE_OPENTHREAD_OPENTHREAD_SYSTEM_H_ #include #include @@ -333,4 +333,4 @@ void otSysSetRcpRestorationEnabled(bool aEnabled); } // end of extern "C" #endif -#endif // OPENTHREAD_SYSTEM_H_ +#endif // OT_POSIX_PLATFORM_INCLUDE_OPENTHREAD_OPENTHREAD_SYSTEM_H_ diff --git a/src/posix/platform/include/openthread/platform/secure_settings.h b/src/posix/platform/include/openthread/platform/secure_settings.h index 038145920..6c9051c3a 100644 --- a/src/posix/platform/include/openthread/platform/secure_settings.h +++ b/src/posix/platform/include/openthread/platform/secure_settings.h @@ -32,8 +32,8 @@ * This file includes platform abstraction for secure non-volatile storage of settings. */ -#ifndef OPENTHREAD_POSIX_SECURE_SETTINGS_H_ -#define OPENTHREAD_POSIX_SECURE_SETTINGS_H_ +#ifndef OT_POSIX_PLATFORM_INCLUDE_OPENTHREAD_PLATFORM_SECURE_SETTINGS_H_ +#define OT_POSIX_PLATFORM_INCLUDE_OPENTHREAD_PLATFORM_SECURE_SETTINGS_H_ #include @@ -166,4 +166,4 @@ void otPosixSecureSettingsWipe(otInstance *aInstance); } // extern "C" #endif -#endif // OPENTHREAD_POSIX_SECURE_SETTINGS_H_ +#endif // OT_POSIX_PLATFORM_INCLUDE_OPENTHREAD_PLATFORM_SECURE_SETTINGS_H_ diff --git a/src/posix/platform/openthread-core-posix-config.h b/src/posix/platform/openthread-core-posix-config.h index 64200a4e6..89350e6a4 100644 --- a/src/posix/platform/openthread-core-posix-config.h +++ b/src/posix/platform/openthread-core-posix-config.h @@ -31,8 +31,8 @@ * This file includes posix app compile-time configuration constants for OpenThread core. */ -#ifndef OPENTHREAD_CORE_POSIX_CONFIG_H_ -#define OPENTHREAD_CORE_POSIX_CONFIG_H_ +#ifndef OT_POSIX_PLATFORM_OPENTHREAD_CORE_POSIX_CONFIG_H_ +#define OT_POSIX_PLATFORM_OPENTHREAD_CORE_POSIX_CONFIG_H_ #include @@ -170,4 +170,4 @@ #define OPENTHREAD_CONFIG_MAC_CSL_REQUEST_AHEAD_US 5000 #endif -#endif // OPENTHREAD_CORE_POSIX_CONFIG_H_ +#endif // OT_POSIX_PLATFORM_OPENTHREAD_CORE_POSIX_CONFIG_H_ diff --git a/src/posix/platform/openthread-posix-config.h b/src/posix/platform/openthread-posix-config.h index 39a68ae3a..9dad79cc7 100644 --- a/src/posix/platform/openthread-posix-config.h +++ b/src/posix/platform/openthread-posix-config.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OPENTHREAD_PLATFORM_POSIX_CONFIG_H_ -#define OPENTHREAD_PLATFORM_POSIX_CONFIG_H_ +#ifndef OT_POSIX_PLATFORM_OPENTHREAD_POSIX_CONFIG_H_ +#define OT_POSIX_PLATFORM_OPENTHREAD_POSIX_CONFIG_H_ #include "openthread-core-config.h" @@ -495,4 +495,4 @@ #error "OPENTHREAD_CONFIG_POSIX_TREL_USE_NETLINK_SOCKET was removed (no longer applicable with TREL over DNS-SD)." #endif -#endif // OPENTHREAD_PLATFORM_POSIX_CONFIG_H_ +#endif // OT_POSIX_PLATFORM_OPENTHREAD_POSIX_CONFIG_H_ diff --git a/src/posix/platform/openthread-posix-daemon-config.h b/src/posix/platform/openthread-posix-daemon-config.h index 07ba61bb5..6f22d667d 100644 --- a/src/posix/platform/openthread-posix-daemon-config.h +++ b/src/posix/platform/openthread-posix-daemon-config.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OPENTHREAD_POSIX_DAEMON_CONFIG_H_ -#define OPENTHREAD_POSIX_DAEMON_CONFIG_H_ +#ifndef OT_POSIX_PLATFORM_OPENTHREAD_POSIX_DAEMON_CONFIG_H_ +#define OT_POSIX_PLATFORM_OPENTHREAD_POSIX_DAEMON_CONFIG_H_ /** * @file @@ -66,4 +66,4 @@ #define OPENTHREAD_POSIX_CONFIG_DAEMON_CLI_ENABLE 1 #endif -#endif // OPENTHREAD_POSIX_DAEMON_CONFIG_H_ +#endif // OT_POSIX_PLATFORM_OPENTHREAD_POSIX_DAEMON_CONFIG_H_ diff --git a/src/posix/platform/platform-posix.h b/src/posix/platform/platform-posix.h index 3299adf50..b6055ec3c 100644 --- a/src/posix/platform/platform-posix.h +++ b/src/posix/platform/platform-posix.h @@ -32,8 +32,8 @@ * This file includes the platform-specific initializers. */ -#ifndef OT_PLATFORM_POSIX_H_ -#define OT_PLATFORM_POSIX_H_ +#ifndef OT_POSIX_PLATFORM_PLATFORM_POSIX_H_ +#define OT_POSIX_PLATFORM_PLATFORM_POSIX_H_ #include "openthread-posix-config.h" @@ -425,4 +425,4 @@ void platformCoprocessorResetFailed(void *aContext); #ifdef __cplusplus } #endif -#endif // OT_PLATFORM_POSIX_H_ +#endif // OT_POSIX_PLATFORM_PLATFORM_POSIX_H_ diff --git a/src/posix/platform/spinel_driver_getter.hpp b/src/posix/platform/spinel_driver_getter.hpp index 3f7d783c7..5f749e8d6 100644 --- a/src/posix/platform/spinel_driver_getter.hpp +++ b/src/posix/platform/spinel_driver_getter.hpp @@ -32,8 +32,8 @@ * app can access to the posix spinel driver. */ -#ifndef POSIX_PLATFORM_SPINEL_DRIVER_GETTER_HPP_ -#define POSIX_PLATFORM_SPINEL_DRIVER_GETTER_HPP_ +#ifndef OT_POSIX_PLATFORM_SPINEL_DRIVER_GETTER_HPP_ +#define OT_POSIX_PLATFORM_SPINEL_DRIVER_GETTER_HPP_ #include "lib/spinel/spinel_driver.hpp" @@ -48,4 +48,4 @@ extern Spinel::SpinelDriver &GetSpinelDriver(void); } // namespace Posix } // namespace ot -#endif // POSIX_PLATFORM_SPINEL_DRIVER_GETTER_HPP_ +#endif // OT_POSIX_PLATFORM_SPINEL_DRIVER_GETTER_HPP_ diff --git a/src/posix/platform/spinel_manager.hpp b/src/posix/platform/spinel_manager.hpp index 13d0588e9..e2af9b473 100644 --- a/src/posix/platform/spinel_manager.hpp +++ b/src/posix/platform/spinel_manager.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef POSIX_PLATFORM_SPINEL_MANAGER_HPP_ -#define POSIX_PLATFORM_SPINEL_MANAGER_HPP_ +#ifndef OT_POSIX_PLATFORM_SPINEL_MANAGER_HPP_ +#define OT_POSIX_PLATFORM_SPINEL_MANAGER_HPP_ #include @@ -123,4 +123,4 @@ private: } // namespace Posix } // namespace ot -#endif // POSIX_PLATFORM_SPINEL_MANAGER_HPP_ +#endif // OT_POSIX_PLATFORM_SPINEL_MANAGER_HPP_ diff --git a/src/posix/platform/system.hpp b/src/posix/platform/system.hpp index 34863b5af..2954331c3 100644 --- a/src/posix/platform/system.hpp +++ b/src/posix/platform/system.hpp @@ -32,9 +32,14 @@ * This file includes posix-specific system methods. */ +#ifndef OT_POSIX_PLATFORM_SYSTEM_HPP_ +#define OT_POSIX_PLATFORM_SYSTEM_HPP_ + /* * Returns if the system will run in dry-run mode. * * @returns If the system runs in dry-run mode. */ bool IsSystemDryRun(void); + +#endif // OT_POSIX_PLATFORM_SYSTEM_HPP_ diff --git a/src/posix/platform/vendor_interface.hpp b/src/posix/platform/vendor_interface.hpp index 584d4e41b..3d6b977bb 100644 --- a/src/posix/platform/vendor_interface.hpp +++ b/src/posix/platform/vendor_interface.hpp @@ -31,8 +31,8 @@ * This file includes definitions for the vendor interface to radio (RCP). */ -#ifndef OT_POSIX_APP_VENDOR_INTERFACE_HPP_ -#define OT_POSIX_APP_VENDOR_INTERFACE_HPP_ +#ifndef OT_POSIX_PLATFORM_VENDOR_INTERFACE_HPP_ +#define OT_POSIX_PLATFORM_VENDOR_INTERFACE_HPP_ #include "openthread-posix-config.h" @@ -159,4 +159,4 @@ public: } // namespace Posix } // namespace ot -#endif // OT_POSIX_APP_VENDOR_INTERFACE_HPP_ +#endif // OT_POSIX_PLATFORM_VENDOR_INTERFACE_HPP_ diff --git a/tests/gtest/mock_callback.hpp b/tests/gtest/mock_callback.hpp index ac7c4f763..04945b1ce 100644 --- a/tests/gtest/mock_callback.hpp +++ b/tests/gtest/mock_callback.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_TESTS_GTEST_MOCK_CALLBACK -#define OT_TESTS_GTEST_MOCK_CALLBACK +#ifndef OT_GTEST_MOCK_CALLBACK_HPP_ +#define OT_GTEST_MOCK_CALLBACK_HPP_ #include "gmock/gmock.h" @@ -44,4 +44,4 @@ public: }; }; -#endif // OT_TESTS_GTEST_MOCK_CALLBACK +#endif // OT_GTEST_MOCK_CALLBACK_HPP_ diff --git a/tests/nexus/openthread-core-nexus-config.h b/tests/nexus/openthread-core-nexus-config.h index 7817c019d..113fb72a4 100644 --- a/tests/nexus/openthread-core-nexus-config.h +++ b/tests/nexus/openthread-core-nexus-config.h @@ -30,8 +30,8 @@ * This header file defines the OpenThread core configuration for Nexus simulation */ -#ifndef OT_CORE_NEXUS_CONFIG_H_ -#define OT_CORE_NEXUS_CONFIG_H_ +#ifndef OT_NEXUS_OPENTHREAD_CORE_NEXUS_CONFIG_H_ +#define OT_NEXUS_OPENTHREAD_CORE_NEXUS_CONFIG_H_ #ifndef OPENTHREAD_RADIO #define OPENTHREAD_RADIO 0 @@ -142,4 +142,4 @@ #define OPENTHREAD_CONFIG_CLI_LOG_INPUT_OUTPUT_ENABLE 1 #define OPENTHREAD_CONFIG_CLI_LOG_INPUT_OUTPUT_LEVEL OT_LOG_LEVEL_INFO -#endif /* OT_CORE_NEXUS_CONFIG_H_ */ +#endif // OT_NEXUS_OPENTHREAD_CORE_NEXUS_CONFIG_H_ diff --git a/tests/nexus/platform/nexus_alarm.hpp b/tests/nexus/platform/nexus_alarm.hpp index 0a6fbbf3f..efd76c34b 100644 --- a/tests/nexus/platform/nexus_alarm.hpp +++ b/tests/nexus/platform/nexus_alarm.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_ALARM_HPP_ -#define OT_NEXUS_ALARM_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_ALARM_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_ALARM_HPP_ #include "instance/instance.hpp" @@ -47,4 +47,4 @@ struct Alarm } // namespace Nexus } // namespace ot -#endif // OT_NEXUS_ALARM_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_ALARM_HPP_ diff --git a/tests/nexus/platform/nexus_core.hpp b/tests/nexus/platform/nexus_core.hpp index 44d5e8a83..a45f5fe71 100644 --- a/tests/nexus/platform/nexus_core.hpp +++ b/tests/nexus/platform/nexus_core.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_CORE_HPP_ -#define OT_NEXUS_CORE_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_CORE_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_CORE_HPP_ #include "common/owning_list.hpp" #include "instance/instance.hpp" @@ -97,4 +97,4 @@ void Log(const char *aFormat, ...); } // namespace Nexus } // namespace ot -#endif // OT_NEXUS_CORE_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_CORE_HPP_ diff --git a/tests/nexus/platform/nexus_mdns.hpp b/tests/nexus/platform/nexus_mdns.hpp index 52238f3f1..77f9b7d2e 100644 --- a/tests/nexus/platform/nexus_mdns.hpp +++ b/tests/nexus/platform/nexus_mdns.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_MDNS_HPP_ -#define OT_NEXUS_MDNS_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_MDNS_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_MDNS_HPP_ #include "instance/instance.hpp" @@ -68,4 +68,4 @@ public: } // namespace Nexus } // namespace ot -#endif // OT_NEXUS_MDNS_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_MDNS_HPP_ diff --git a/tests/nexus/platform/nexus_node.hpp b/tests/nexus/platform/nexus_node.hpp index 65ea7e516..ca254635c 100644 --- a/tests/nexus/platform/nexus_node.hpp +++ b/tests/nexus/platform/nexus_node.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_NODE_HPP_ -#define OT_NEXUS_NODE_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_NODE_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_NODE_HPP_ #include "instance/instance.hpp" @@ -121,4 +121,4 @@ inline Node &AsNode(otInstance *aInstance) { return Node::From(aInstance); } } // namespace Nexus } // namespace ot -#endif // OT_NEXUS_NODE_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_NODE_HPP_ diff --git a/tests/nexus/platform/nexus_radio.hpp b/tests/nexus/platform/nexus_radio.hpp index 80f2c303f..3dcebdf10 100644 --- a/tests/nexus/platform/nexus_radio.hpp +++ b/tests/nexus/platform/nexus_radio.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_RADIO_HPP_ -#define OT_NEXUS_RADIO_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_RADIO_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_RADIO_HPP_ #include "instance/instance.hpp" @@ -79,4 +79,4 @@ struct Radio } // namespace Nexus } // namespace ot -#endif // OT_NEXUS_RADIO_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_RADIO_HPP_ diff --git a/tests/nexus/platform/nexus_settings.hpp b/tests/nexus/platform/nexus_settings.hpp index 1dfaa6294..6106e8b2c 100644 --- a/tests/nexus/platform/nexus_settings.hpp +++ b/tests/nexus/platform/nexus_settings.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_SETTINGS_HPP_ -#define OT_NEXUS_SETTINGS_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_SETTINGS_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_SETTINGS_HPP_ #include "common/const_cast.hpp" #include "common/owning_list.hpp" @@ -79,4 +79,4 @@ struct Settings } // namespace Nexus } // namespace ot -#endif // OT_NEXUS_SETTINGS_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_SETTINGS_HPP_ diff --git a/tests/nexus/platform/nexus_trel.hpp b/tests/nexus/platform/nexus_trel.hpp index eb73add31..df25bdf53 100644 --- a/tests/nexus/platform/nexus_trel.hpp +++ b/tests/nexus/platform/nexus_trel.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_TREL_HPP_ -#define OT_NEXUS_TREL_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_TREL_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_TREL_HPP_ #include "instance/instance.hpp" @@ -70,4 +70,4 @@ struct Trel #endif // OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE -#endif // OT_NEXUS_TREL_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_TREL_HPP_ diff --git a/tests/nexus/platform/nexus_utils.hpp b/tests/nexus/platform/nexus_utils.hpp index 8ec13d55d..9c34c154b 100644 --- a/tests/nexus/platform/nexus_utils.hpp +++ b/tests/nexus/platform/nexus_utils.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OT_NEXUS_UTIL_HPP_ -#define OT_NEXUS_UTIL_HPP_ +#ifndef OT_NEXUS_PLATFORM_NEXUS_UTILS_HPP_ +#define OT_NEXUS_PLATFORM_NEXUS_UTILS_HPP_ #include #include @@ -74,4 +74,4 @@ #define _Stringize(aArg) _Stringize2(aArg) #define _Stringize2(aArg) #aArg -#endif // OT_NEXUS_UTIL_HPP_ +#endif // OT_NEXUS_PLATFORM_NEXUS_UTILS_HPP_ diff --git a/tests/toranj/openthread-core-toranj-config-posix.h b/tests/toranj/openthread-core-toranj-config-posix.h index 1a0d91578..f66f1e725 100644 --- a/tests/toranj/openthread-core-toranj-config-posix.h +++ b/tests/toranj/openthread-core-toranj-config-posix.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_ -#define OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_ +#ifndef OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_ +#define OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_ /** * This header file defines the OpenThread core configuration options for toranj with POSIX platform. @@ -87,4 +87,4 @@ #define OPENTHREAD_CONFIG_HISTORY_TRACKER_CLIENT_ENABLE 0 -#endif /* OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_ */ +#endif // OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_ diff --git a/tests/toranj/openthread-core-toranj-config-simulation.h b/tests/toranj/openthread-core-toranj-config-simulation.h index 16f723ef0..1de6eea92 100644 --- a/tests/toranj/openthread-core-toranj-config-simulation.h +++ b/tests/toranj/openthread-core-toranj-config-simulation.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_ -#define OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_ +#ifndef OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_ +#define OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_ /** * This header file defines the OpenThread core configuration for toranj with simulation platform. @@ -109,4 +109,4 @@ #define OPENTHREAD_CONFIG_OTNS_ENABLE 1 -#endif /* OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_ */ +#endif // OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_ diff --git a/tests/toranj/openthread-core-toranj-config.h b/tests/toranj/openthread-core-toranj-config.h index 9721c6762..f25f74155 100644 --- a/tests/toranj/openthread-core-toranj-config.h +++ b/tests/toranj/openthread-core-toranj-config.h @@ -30,12 +30,13 @@ * This header file defines the OpenThread core configuration options used in NCP build for `toranj` test framework. */ -#if !defined(OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_) && !defined(OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_) -#error "This header file should only be included through the platform-specific one" +#ifndef OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_H_ +#define OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_H_ #endif -#ifndef OPENTHREAD_RADIO -#define OPENTHREAD_RADIO 0 +#if !defined(OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_SIMULATION_H_) && \ + !defined(OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_POSIX_H_) +#error "This header file should only be included through the platform-specific one" #endif #ifndef OPENTHREAD_RADIO @@ -232,4 +233,4 @@ #define OPENTHREAD_CONFIG_MAC_SOFTWARE_TX_TIMING_ENABLE 1 -#endif +#endif // OT_TORANJ_OPENTHREAD_CORE_TORANJ_CONFIG_H_ diff --git a/tests/unit/test_lowpan.hpp b/tests/unit/test_lowpan.hpp index 85ed51da1..4862dde12 100644 --- a/tests/unit/test_lowpan.hpp +++ b/tests/unit/test_lowpan.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef TEST_LOWPAN_HPP -#define TEST_LOWPAN_HPP +#ifndef OT_UNIT_TEST_LOWPAN_HPP_ +#define OT_UNIT_TEST_LOWPAN_HPP_ #include @@ -261,4 +261,4 @@ public: } // namespace ot -#endif // TEST_LOWPAN_HPP +#endif // OT_UNIT_TEST_LOWPAN_HPP_ diff --git a/tests/unit/test_platform.h b/tests/unit/test_platform.h index 66df45a5b..c72f7471e 100644 --- a/tests/unit/test_platform.h +++ b/tests/unit/test_platform.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef TEST_PLATFORM_H -#define TEST_PLATFORM_H +#ifndef OT_UNIT_TEST_PLATFORM_H_ +#define OT_UNIT_TEST_PLATFORM_H_ #include @@ -56,4 +56,4 @@ ot::Instance *testInitAdditionalInstance(uint8_t id); #endif void testFreeInstance(otInstance *aInstance); -#endif // TEST_PLATFORM_H +#endif // OT_UNIT_TEST_PLATFORM_H_ diff --git a/tests/unit/test_util.h b/tests/unit/test_util.h index 332f9dfeb..343b7398a 100644 --- a/tests/unit/test_util.h +++ b/tests/unit/test_util.h @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef TEST_UTIL_H -#define TEST_UTIL_H +#ifndef OT_UNIT_TEST_UTIL_H_ +#define OT_UNIT_TEST_UTIL_H_ #include #include @@ -85,4 +85,4 @@ extern "C" { } #endif -#endif +#endif // OT_UNIT_TEST_UTIL_H_ diff --git a/tests/unit/test_util.hpp b/tests/unit/test_util.hpp index 76ab86238..9d3b8d320 100644 --- a/tests/unit/test_util.hpp +++ b/tests/unit/test_util.hpp @@ -26,8 +26,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef TEST_UTIL_HPP -#define TEST_UTIL_HPP +#ifndef OT_UNIT_TEST_UTIL_HPP_ +#define OT_UNIT_TEST_UTIL_HPP_ #include @@ -42,4 +42,4 @@ */ void DumpBuffer(const char *aTextMessage, const uint8_t *aBuffer, uint16_t aBufferLength); -#endif +#endif // OT_UNIT_TEST_UTIL_HPP_