mirror of
https://github.com/espressif/openthread.git
synced 2026-06-05 21:14:49 +00:00
Change top-level namespace from 'Thread' to 'ot'. (#1664)
This commit is contained in:
+2
-2
@@ -123,11 +123,11 @@
|
||||
- Case
|
||||
- C preprocessor symbols should be all uppercase.
|
||||
- All OpenThread names in the C language shall be in *snake case*.
|
||||
- All OpenThread class, namespace, structure, method, function, enumeration, and type names in the C++ language shall be in *upper camel case*.
|
||||
- All OpenThread class, namespace, structure, method, function, enumeration, and type names in the C++ language shall be in *upper camel case*. Exception: the top level OpenThread namespace 'ot'.
|
||||
- All OpenThread instantiated names of instances of classes, namespaces, structures, methods, functions, enumerations, and types as well as method and function parameters in the C++ language shall be in *lower camel case*.
|
||||
- Symbol Qualification
|
||||
- All OpenThread C public data types and free functions should have `ot` prepended to their name.
|
||||
- All OpenThread C++ code should be in the ‘OpenThread’ top-level namespace.
|
||||
- All OpenThread C++ code should be in the ‘ot’ top-level namespace.
|
||||
- Scope
|
||||
- All global data shall have a `g` prepended to the name to denote global scope.
|
||||
- All static data shall have a `s` prepended to the name to denote static scope.
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<Import Project="openthread.configuration.props" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{f8c22844-9b93-4978-80df-8af2b37a7abb}</ProjectGuid>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<DefaultLanguage>en-US</DefaultLanguage>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<AppContainerApplication>true</AppContainerApplication>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{FD64BF17-8D36-4578-8D13-77B123BE30D3}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{28834498-3837-44A5-8F67-249ABAB7B97D}</ProjectGuid>
|
||||
<Keyword>StaticLibrary</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{41B32069-632E-4578-855B-A36EBFA80B56}</ProjectGuid>
|
||||
<Keyword>StaticLibrary</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{B92F449E-0FD9-44FC-ACFA-6521A3240CA2}</ProjectGuid>
|
||||
<Keyword>StaticLibrary</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{D94867D2-6DAE-47E2-962A-5E8E658134D1}</ProjectGuid>
|
||||
<Keyword>StaticLibrary</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
@@ -75,4 +75,4 @@
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{30723C38-BA3B-44C9-8D64-C5861A26934F}</ProjectGuid>
|
||||
<Keyword>StaticLibrary</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{DD5018BE-54C6-4FD4-9F8D-08D52FC0CD40}</ProjectGuid>
|
||||
<Keyword>StaticLibrary</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform Condition="'$(Platform)' == ''">Win32</Platform>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<DriverType>KMDF</DriverType>
|
||||
<DriverTargetPlatform>Universal</DriverTargetPlatform>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform Condition="'$(Platform)' == ''">Win32</Platform>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<DriverType>KMDF</DriverType>
|
||||
<DriverTargetPlatform>Universal</DriverTargetPlatform>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{91D3ADEA-F1FE-4433-95B6-F8F6A7CF7BAF}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{B4C744EC-B662-46C6-A076-FB58FA8FDF1B}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{9EEF9DCD-EA8F-4154-BD02-AB2B31CEC324}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{ED0EA262-C222-42C7-98D3-E70C72978ED2}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||
<DriverTargetPlatform>Universal</DriverTargetPlatform>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{CAC8A00E-C6C8-4CF0-BA5A-C9A9A601C6DB}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<ApplicationType>Windows Store</ApplicationType>
|
||||
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
|
||||
<WindowsTargetPlatformVersion>10.0.10586.0</WindowsTargetPlatformVersion>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<TemplateGuid>{8b1800b9-d017-4029-9785-13ef5e5b328e}</TemplateGuid>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<DriverType>KMDF</DriverType>
|
||||
<DriverTargetPlatform>Universal</DriverTargetPlatform>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>{B7C6F344-7287-4930-AF38-223622BD8CBB}</ProjectGuid>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||
<DriverTargetPlatform>Universal</DriverTargetPlatform>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<TemplateGuid>{497e31cb-056b-4f31-abb8-447fd55ee5a5}</TemplateGuid>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<TargetVersion>Windows10</TargetVersion>
|
||||
<PlatformToolset>WindowsKernelModeDriver10.0</PlatformToolset>
|
||||
<ConfigurationType>Driver</ConfigurationType>
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion>
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform Condition="'$(Platform)' == ''">Win32</Platform>
|
||||
<RootNamespace>Thread</RootNamespace>
|
||||
<RootNamespace>ot</RootNamespace>
|
||||
<DriverType>KMDF</DriverType>
|
||||
<DriverTargetPlatform>Universal</DriverTargetPlatform>
|
||||
</PropertyGroup>
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<Application
|
||||
x:Class="Thread.App"
|
||||
x:Class="ot.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Thread"
|
||||
xmlns:local="using:ot"
|
||||
RequestedTheme="Dark">
|
||||
|
||||
</Application>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "pch.h"
|
||||
#include "MainPage.xaml.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Platform;
|
||||
using namespace Windows::ApplicationModel;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "App.g.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides application-specific behavior to supplement the default Application class.
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public ref class ClientArgs sealed
|
||||
@@ -40,4 +40,4 @@ public:
|
||||
property Platform::String^ ClientPort;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<UserControl
|
||||
x:Class="Thread.ClientControl"
|
||||
x:Class="ot.ClientControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Thread"
|
||||
xmlns:local="using:ot"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "Factory.h"
|
||||
#include "TalkHelper.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Concurrency;
|
||||
using namespace Platform;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "IMainPageUIElements.h"
|
||||
#include "Protocol.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
[Windows::Foundation::Metadata::WebHostHidden]
|
||||
@@ -63,4 +63,4 @@ private:
|
||||
static std::atomic<int> _clientPort;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <utility>
|
||||
#include "DatagramClientContext.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Concurrency;
|
||||
using namespace Platform;
|
||||
@@ -182,13 +182,13 @@ DatagramClientContext::SetConnected(
|
||||
}
|
||||
|
||||
bool
|
||||
Thread::DatagramClientContext::IsConnected() const
|
||||
ot::DatagramClientContext::IsConnected() const
|
||||
{
|
||||
return _connected;
|
||||
}
|
||||
|
||||
void
|
||||
Thread::DatagramClientContext::OnMessage(
|
||||
ot::DatagramClientContext::OnMessage(
|
||||
DatagramSocket^ socket,
|
||||
MessageReceivedEventArgs^ eventArgs)
|
||||
{
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "IAsyncThreadNotify.h"
|
||||
#include "ClientArgs.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
[Windows::Foundation::Metadata::WebHostHidden]
|
||||
@@ -75,4 +75,4 @@ private:
|
||||
DataWriter^ _dataWriter;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <utility>
|
||||
#include "DatagramListenerContext.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Concurrency;
|
||||
using namespace Platform;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "IAsyncThreadNotify.h"
|
||||
#include "ListenerArgs.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
[Windows::Foundation::Metadata::WebHostHidden]
|
||||
@@ -76,4 +76,4 @@ private:
|
||||
IOutputStream^ _outputStream;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "StreamClientContext.h"
|
||||
#include "DatagramClientContext.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Concurrency;
|
||||
using namespace Platform;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#include "IClientContext.h"
|
||||
#include "Protocol.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
class Factory
|
||||
@@ -46,4 +46,4 @@ public:
|
||||
static IClientContext^ CreateClientContext(IAsyncThreadNotify^, ClientArgs^, Protocol);
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public enum class NotifyType
|
||||
@@ -42,4 +42,4 @@ public interface struct IAsyncThreadNotify
|
||||
void NotifyFromAsyncThread(Platform::String^ message, NotifyType type);
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public interface struct IClientContext
|
||||
@@ -40,4 +40,4 @@ public interface struct IClientContext
|
||||
Windows::Foundation::IAsyncAction^ CancelIO();
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public interface struct IListenerContext
|
||||
@@ -38,4 +38,4 @@ public interface struct IListenerContext
|
||||
Windows::Foundation::IAsyncAction^ CancelIO();
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public interface struct IMainPageUIElements
|
||||
@@ -44,4 +44,4 @@ public interface struct IMainPageUIElements
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public ref class ListenerArgs sealed
|
||||
@@ -39,4 +39,4 @@ public:
|
||||
property Platform::String^ ServerPort;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<Page
|
||||
x:Class="Thread.MainPage"
|
||||
x:Class="ot.MainPage"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Thread"
|
||||
xmlns:local="using:ot"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
IsTabStop="false"
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include "MainPage.xaml.h"
|
||||
#include "TalkGrid.xaml.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Platform;
|
||||
using namespace Windows::Foundation;
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "MainPage.g.h"
|
||||
#include "IMainPageUIElements.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
/// <summary>
|
||||
/// An empty page that can be used on its own or navigated to within a Frame.
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<Resource Language="x-generate" />
|
||||
</Resources>
|
||||
<Applications>
|
||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="Thread.App">
|
||||
<Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="ot.App">
|
||||
<uap:VisualElements DisplayName="OpenThread" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" Description="OpenThread" BackgroundColor="white">
|
||||
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png">
|
||||
</uap:DefaultTile>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public enum class Protocol
|
||||
@@ -37,4 +37,4 @@ public enum class Protocol
|
||||
UDP,
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<UserControl
|
||||
x:Class="Thread.ServerControl"
|
||||
x:Class="ot.ServerControl"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Thread"
|
||||
xmlns:local="using:ot"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "Factory.h"
|
||||
#include "TalkHelper.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Platform;
|
||||
using namespace Windows::Foundation;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#include "IMainPageUIElements.h"
|
||||
#include "Protocol.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
[Windows::Foundation::Metadata::WebHostHidden]
|
||||
@@ -59,4 +59,4 @@ private:
|
||||
Protocol _protocol;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <utility>
|
||||
#include "StreamClientContext.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Concurrency;
|
||||
using namespace Platform;
|
||||
@@ -157,7 +157,7 @@ StreamClientContext::Connect_Click(
|
||||
}
|
||||
|
||||
void
|
||||
Thread::StreamClientContext::Send_Click(
|
||||
ot::StreamClientContext::Send_Click(
|
||||
Platform::Object^ sender,
|
||||
Windows::UI::Xaml::RoutedEventArgs^ e,
|
||||
Platform::String^ input)
|
||||
@@ -166,7 +166,7 @@ Thread::StreamClientContext::Send_Click(
|
||||
}
|
||||
|
||||
IAsyncAction^
|
||||
Thread::StreamClientContext::CancelIO()
|
||||
ot::StreamClientContext::CancelIO()
|
||||
{
|
||||
return _client->CancelIOAsync();
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "IAsyncThreadNotify.h"
|
||||
#include "ClientArgs.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
[Windows::Foundation::Metadata::WebHostHidden]
|
||||
@@ -76,4 +76,4 @@ private:
|
||||
DataWriter^ _dataWriter;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#include <utility>
|
||||
#include "StreamListenerContext.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Concurrency;
|
||||
using namespace Platform;
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
#include "IAsyncThreadNotify.h"
|
||||
#include "ListenerArgs.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
[Windows::Foundation::Metadata::WebHostHidden]
|
||||
@@ -68,4 +68,4 @@ private:
|
||||
Args^ _args;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
struct TalkConsts
|
||||
@@ -37,4 +37,4 @@ struct TalkConsts
|
||||
static constexpr unsigned short DEF_CLIENT_PORT_INIT = 51100;
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -26,10 +26,10 @@
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
-->
|
||||
<Grid
|
||||
x:Class="Thread.TalkGrid"
|
||||
x:Class="ot.TalkGrid"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="using:Thread"
|
||||
xmlns:local="using:ot"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
mc:Ignorable="d">
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
#include "ClientControl.xaml.h"
|
||||
#include "ServerControl.xaml.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
using namespace Platform;
|
||||
using namespace Windows::Foundation;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
#include "IMainPageUIElements.h"
|
||||
#include "Protocol.h"
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
[Windows::Foundation::Metadata::WebHostHidden]
|
||||
@@ -58,4 +58,4 @@ private:
|
||||
void Role_Changed(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
ref class ClientControl;
|
||||
ref class ServerControl;
|
||||
@@ -60,4 +60,4 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ using namespace Platform::Metadata;
|
||||
using namespace Windows::Foundation::Collections;
|
||||
using namespace Windows::Networking;
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
ref class otAdapter;
|
||||
@@ -609,5 +609,5 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ using namespace Windows::Foundation::Collections;
|
||||
#define MAC8_FORMAT L"%02X-%02X-%02X-%02X-%02X-%02X-%02X-%02X"
|
||||
#define MAC8_ARG(mac) mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], mac[6], mac[7]
|
||||
|
||||
namespace Thread
|
||||
namespace ot
|
||||
{
|
||||
|
||||
public delegate void otAdapterArrivalDelegate(otAdapter^ aAdapter);
|
||||
@@ -249,4 +249,4 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -127,7 +127,7 @@ enum
|
||||
kMaxPagesForBufferPools = 64,
|
||||
kMaxBytesForBufferPools = kPageSize * kMaxPagesForBufferPools,
|
||||
|
||||
kEstimatedBufferSize = 128, // sizeof(Thread::Buffer)
|
||||
kEstimatedBufferSize = 128, // sizeof(ot::Buffer)
|
||||
kEstimatedBufferPoolSize = ((kPageSize * kPagesPerBufferPool) - sizeof(BufferPool)) / kEstimatedBufferSize,
|
||||
kEstimatedMaxBuffers = kMaxPagesForBufferPools * kEstimatedBufferPoolSize
|
||||
};
|
||||
|
||||
@@ -221,4 +221,4 @@ AdapterIndicateEnergyScanComplete(
|
||||
_In_ NDIS_STATUS Status
|
||||
);
|
||||
|
||||
EXT_CALLBACK AdapterEnergyScanTimerCallback;
|
||||
EXT_CALLBACK AdapterEnergyScanTimerCallback;
|
||||
|
||||
@@ -468,4 +468,4 @@
|
||||
// USESUFFIX(otLogFuncExitErr, " %!otError!", EXP);
|
||||
// end_wpp
|
||||
|
||||
#endif // _LOGGING_WINDOWS_H
|
||||
#endif // _LOGGING_WINDOWS_H
|
||||
|
||||
+4
-4
@@ -75,10 +75,10 @@
|
||||
#include "cli_coap.hpp"
|
||||
#endif
|
||||
|
||||
using Thread::Encoding::BigEndian::HostSwap16;
|
||||
using Thread::Encoding::BigEndian::HostSwap32;
|
||||
using ot::Encoding::BigEndian::HostSwap16;
|
||||
using ot::Encoding::BigEndian::HostSwap32;
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
|
||||
namespace Cli {
|
||||
|
||||
@@ -3065,4 +3065,4 @@ void Interpreter::HandleDiagnosticGetResponse(Message &aMessage, const Ip6::Mess
|
||||
#endif
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
+3
-3
@@ -64,10 +64,10 @@
|
||||
#define MAX_CLI_OT_INSTANCES 64
|
||||
#endif
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
|
||||
/**
|
||||
* @namespace Thread::Cli
|
||||
* @namespace ot::Cli
|
||||
*
|
||||
* @brief
|
||||
* This namespace contains definitions for the CLI interpreter.
|
||||
@@ -346,6 +346,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // CLI_HPP_
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include <cli/cli_coap.hpp>
|
||||
#include <coap/coap_header.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
const CoapCommand Coap::sCommands[] =
|
||||
@@ -335,7 +335,7 @@ ThreadError Coap::ProcessClient(int argc, char *argv[])
|
||||
}
|
||||
|
||||
otCoapHeaderInit(&header, coapType, coapCode);
|
||||
otCoapHeaderGenerateToken(&header, Thread::Coap::Header::kDefaultTokenLength);
|
||||
otCoapHeaderGenerateToken(&header, ot::Coap::Header::kDefaultTokenLength);
|
||||
SuccessOrExit(error = otCoapHeaderAppendUriPathOptions(&header, coapUri));
|
||||
|
||||
if (argc > 4)
|
||||
@@ -408,6 +408,6 @@ void Coap::HandleClientResponse(otCoapHeader *aHeader, otMessage *aMessage, otMe
|
||||
}
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // OPENTHREAD_ENABLE_APPLICATION_COAP
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#ifndef CLI_COAP_HPP_
|
||||
#define CLI_COAP_HPP_
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
/**
|
||||
@@ -94,6 +94,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // CLI_COAP_HPP_
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
#include <cli/cli_console.hpp>
|
||||
#include <common/new.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
static Console *sServer;
|
||||
@@ -106,4 +106,4 @@ int Console::OutputFormat(const char *fmt, ...)
|
||||
}
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#include <cli/cli_server.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
/**
|
||||
@@ -110,6 +110,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // CLI_CONSOLE_HPP_
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#include "cli.hpp"
|
||||
#include "cli_dataset.hpp"
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
const DatasetCommand Dataset::sCommands[] =
|
||||
@@ -741,4 +741,4 @@ exit:
|
||||
#endif // OPENTHREAD_FTD
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#include <cli/cli_server.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
/**
|
||||
@@ -98,6 +98,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // CLI_DATASET_HPP_
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include "openthread/openthread.h"
|
||||
#include "cli.hpp"
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
|
||||
namespace Cli {
|
||||
|
||||
@@ -123,4 +123,4 @@ exit:
|
||||
}
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "openthread/types.h"
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
/**
|
||||
@@ -70,6 +70,6 @@ public:
|
||||
};
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // CLI_SERVER_HPP_
|
||||
|
||||
@@ -53,7 +53,7 @@
|
||||
#include <common/new.hpp>
|
||||
#include <common/tasklet.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
static const char sCommandPrompt[] = {'>', ' '};
|
||||
@@ -263,4 +263,4 @@ void otPlatLog(otLogLevel aLogLevel, otLogRegion aLogRegion, const char *aFormat
|
||||
#endif // OPENTHREAD_ENABLE_DEFAULT_LOGGING
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include <cli/cli_server.hpp>
|
||||
#include <common/tasklet.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
/**
|
||||
@@ -121,6 +121,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // CLI_UART_HPP_
|
||||
|
||||
+2
-2
@@ -45,7 +45,7 @@
|
||||
#include <cli/cli_udp.hpp>
|
||||
#include <common/code_utils.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
Udp::Udp(otInstance *aInstance, Interpreter *aInterpreter):
|
||||
@@ -136,4 +136,4 @@ int Udp::OutputFormat(const char *fmt, ...)
|
||||
}
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
+2
-2
@@ -38,7 +38,7 @@
|
||||
|
||||
#include <cli/cli_server.hpp>
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Cli {
|
||||
|
||||
/**
|
||||
@@ -103,6 +103,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Cli
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // CLI_UDP_HPP_
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_FTD && OPENTHREAD_ENABLE_BORDER_AGENT_PROXY
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
#if OPENTHREAD_ENABLE_APPLICATION_COAP
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
void otCoapHeaderInit(otCoapHeader *aHeader, otCoapType aType, otCoapCode aCode)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_FTD && OPENTHREAD_ENABLE_COMMISSIONER
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "crypto/hmac_sha256.hpp"
|
||||
#include "crypto/aes_ccm.hpp"
|
||||
|
||||
using namespace Thread::Crypto;
|
||||
using namespace ot::Crypto;
|
||||
|
||||
void otCryptoHmacSha256(
|
||||
const uint8_t *aKey, uint16_t aKeyLength,
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
bool otDatasetIsCommissioned(otInstance *aInstance)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_FTD
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_ENABLE_DHCP6_CLIENT
|
||||
void otDhcp6ClientUpdate(otInstance *aInstance, otDhcpAddress *aAddresses, uint32_t aNumAddresses, void *aContext)
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_ENABLE_DNS_CLIENT
|
||||
ThreadError otDnsClientQuery(otInstance *aInstance, const otDnsQuery *aQuery, otDnsResponseHandler aHandler,
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
bool otIcmp6IsEchoEnabled(otInstance *aInstance)
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ otInstance::otInstance(void) :
|
||||
{
|
||||
}
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
void otInstancePostConstructor(otInstance *aInstance)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
#include "common/logging.hpp"
|
||||
#include "utils/slaac_address.hpp"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
ThreadError otIp6SetEnabled(otInstance *aInstance, bool aEnabled)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_ENABLE_JAM_DETECTION
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_ENABLE_JOINER
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
static void HandleActiveScanResult(void *aContext, Mac::Frame *aFrame);
|
||||
static void HandleEnergyScanResult(void *aContext, otEnergyScanResult *aResult);
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#define OPENTHREAD_LINKRAW_TIMER_REQUIRED 0
|
||||
#endif
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
|
||||
class LinkRaw
|
||||
{
|
||||
@@ -162,6 +162,6 @@ private:
|
||||
#endif // OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
|
||||
};
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // LINK_RAW_HPP_
|
||||
|
||||
@@ -257,7 +257,7 @@ exit:
|
||||
return error;
|
||||
}
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
|
||||
LinkRaw::LinkRaw(otInstance &aInstance):
|
||||
mInstance(aInstance),
|
||||
@@ -605,6 +605,6 @@ void LinkRaw::HandleEnergyScanTask(void)
|
||||
|
||||
#endif // OPENTHREAD_CONFIG_ENABLE_SOFTWARE_ENERGY_SCAN
|
||||
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // OPENTHREAD_ENABLE_RAW_LINK_API
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
ThreadError otMessageFree(otMessage *aMessage)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
ThreadError otNetDataGetLeader(otInstance *aInstance, bool aStable, uint8_t *aData, uint8_t *aDataLength)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
#include "openthread-instance.h"
|
||||
#include "common/logging.hpp"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
void otTaskletsProcess(otInstance *aInstance)
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
#include "common/settings.hpp"
|
||||
#include "openthread/platform/settings.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
uint8_t otThreadGetMaxAllowedChildren(otInstance *aInstance)
|
||||
{
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
#if OPENTHREAD_FTD
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
#include "openthread-instance.h"
|
||||
|
||||
using namespace Thread;
|
||||
using namespace ot;
|
||||
|
||||
otMessage *otUdpNewMessage(otInstance *aInstance, bool aLinkSecurityEnabled)
|
||||
{
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
* This file contains common code base for CoAP client and server.
|
||||
*/
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Coap {
|
||||
|
||||
Message *CoapBase::NewMessage(const Header &aHeader, uint8_t aPriority)
|
||||
@@ -108,4 +108,4 @@ exit:
|
||||
}
|
||||
|
||||
} // namespace Coap
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
* This file contains common code base for CoAP client and server.
|
||||
*/
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Coap {
|
||||
|
||||
/**
|
||||
@@ -200,6 +200,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Coap
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // COAP_BASE_HPP_
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
* This file implements the CoAP client.
|
||||
*/
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Coap {
|
||||
|
||||
Client::Client(Ip6::Netif &aNetif, SenderFunction aSender, ReceiverFunction aReceiver):
|
||||
@@ -471,4 +471,4 @@ RequestMetadata::RequestMetadata(bool aConfirmable, const Ip6::MessageInfo &aMes
|
||||
}
|
||||
|
||||
} // namespace Coap
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
* This file includes definitions for the CoAP client.
|
||||
*/
|
||||
|
||||
namespace Thread {
|
||||
namespace ot {
|
||||
namespace Coap {
|
||||
|
||||
class Client;
|
||||
@@ -258,6 +258,6 @@ private:
|
||||
};
|
||||
|
||||
} // namespace Coap
|
||||
} // namespace Thread
|
||||
} // namespace ot
|
||||
|
||||
#endif // COAP_CLIENT_HPP_
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user