Skip to content

Commit ee2dd70

Browse files
committed
OSS clean-up:
- rename ARIA SDK to MAT / 1DS - add MIT license to public headers
1 parent 3d38414 commit ee2dd70

File tree

180 files changed

+947
-394
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+947
-394
lines changed

Solutions/net40/dllmain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ HRESULT __stdcall DllCanUnloadNow(void)
2323
void LockInMemory()
2424
{
2525
#ifndef _WINRT_DLL
26-
HMODULE ariaModule;
27-
::GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN, L"ClientTelemetry.dll", &ariaModule);
26+
HMODULE mstelModule;
27+
::GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_PIN, L"ClientTelemetry.dll", &mstelModule);
2828
#endif
2929
}
3030

azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
resources:
22
- repo: self
33
queue:
4-
name: aria-sdk-cpp
4+
name: mstel-sdk-cpp
55
steps:
66

77
- task: CmdLine@1

docs/PAL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Platform Abstraction Layer
1111

1212
#### Lifetime
1313

14-
- The whole ARIA client library must be initialized by the application
14+
- The whole 1DS client library must be initialized by the application
1515
before the first call to any of its other API methods, and shut down
1616
after no more API calls can be performed.
1717
- The PAL has similar lifetime scope -- `PAL::initialize()` will be

docs/cpp-start-macosx.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,5 @@ logging system by adding the following statements to your main() function.
8787
*You're done! You can now compile and run your app, and it will send a telemetry event.*
8888
8989
90-
_**Note:** If you need a deeper look into how to use the 1DS C++ SDK there is a couple of folders with examples under Aria.SDK.Cpp/examples_
90+
_**Note:** If you need a deeper look into how to use the 1DS C++ SDK there is a couple of folders with examples under `examples`_
9191

docs/cppDoxygenConfig

+3-4
Original file line numberDiff line numberDiff line change
@@ -2060,10 +2060,9 @@ INCLUDE_FILE_PATTERNS =
20602060
# This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
20612061

20622062
PREDEFINED = _WIN32 \
2063-
ARIASDK_LIBABI= \
2064-
ARIASDK_NS_BEGIN=Microsoft { namespace Applications { namespace Events \
2065-
ARIASDK_NS_END=}} \
2066-
ARIASDK_NS=Microsoft::Applications::Events \
2063+
MATSDK_LIBABI= \
2064+
MAT_NS_BEGIN=Microsoft { namespace Applications { namespace Events \
2065+
MAT_NS_END=}} \
20672066
MAT=Microsoft::Applications::Events \
20682067
PAL_NS_BEGIN=Microsoft { namespace Applications { namespace Events { namespace PlatformAbstraction \
20692068
PAL_NS_END=}}} \

examples/c/SampleC-Guest/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ find_package (Threads)
2323

2424
set(MATSDK_INCLUDE /usr/local/include/mat)
2525

26-
# Aria SDK to include dirs
26+
# 1DS SDK to include dirs
2727
include_directories( . ${MATSDK_INCLUDE} )
2828

2929
# Link main.cpp to executable

examples/c/SampleC-Guest/demo.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ void test_c_api_guest()
2525
"\"maxTeardownUploadTimeInSec\":5," // Allow up to 5 seconds for upload
2626
"\"hostMode\":false," // Explicitly declare yourself as guest
2727
"\"minimumTraceLevel\":0," // Debug printout level
28-
"\"sdkmode\":0" // Aria direct-upload mode
28+
"\"sdkmode\":0" // 1DS direct-upload mode
2929
"}";
3030

3131
// Attemppt to load an alternate impl if available
3232
#ifdef _WIN32
33-
evt_load((evt_handle_t)LoadLibrary(L"MsoAriaNext.dll"));
33+
evt_load((evt_handle_t)LoadLibrary(L"ClientTelemetry2.dll"));
3434
#endif
3535

3636
evt_handle_t handle = evt_open(config);

examples/cpp/EventSender/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ find_package (Threads)
2323

2424
set(MAT_SDK_INCLUDE /usr/local/include/mat)
2525

26-
# Aria SDK to include dirs
26+
# 1DS SDK to include dirs
2727
include_directories( . ${MAT_SDK_INCLUDE} )
2828

2929
# Link main.cpp to executable

examples/cpp/MacProxy/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ find_package (Threads)
2323

2424
set(MAT_SDK_INCLUDE /usr/local/include/mat)
2525

26-
# Aria SDK to include dirs
26+
# 1DS SDK to include dirs
2727
include_directories( . ${MAT_SDK_INCLUDE} )
2828

2929
# Link main.cpp to executable

examples/cpp/SampleCpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ find_package (Threads)
2323

2424
set(MAT_SDK_INCLUDE /usr/local/include/mat)
2525

26-
# Aria SDK to include dirs
26+
# 1DS SDK to include dirs
2727
include_directories( . ${MAT_SDK_INCLUDE} )
2828

2929
# Link main.cpp to executable
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include "LogManager.hpp"
3-
namespace ARIASDK_NS_BEGIN {
3+
namespace MAT_NS_BEGIN {
44
class ModuleA : public ILogConfiguration {};
55
class LogManagerA : public LogManagerBase<ModuleA> {};
66
DEFINE_LOGMANAGER(LogManagerA, ModuleA);
7-
} ARIASDK_NS_END
7+
} MAT_NS_END
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#pragma once
22
#include "LogManager.hpp"
3-
namespace ARIASDK_NS_BEGIN {
3+
namespace MAT_NS_BEGIN {
44
class ModuleB : public ILogConfiguration {};
55
class LogManagerB : public LogManagerBase<ModuleB> {};
66
DEFINE_LOGMANAGER(LogManagerB, ModuleB);
7-
} ARIASDK_NS_END
7+
} MAT_NS_END
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include "LogManager.hpp"
3-
namespace ARIASDK_NS_BEGIN {
3+
namespace MAT_NS_BEGIN {
44
class ModuleA : public ILogConfiguration {};
55
class LogManagerA : public LogManagerBase<ModuleA> {};
6-
} ARIASDK_NS_END
6+
} MAT_NS_END
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#pragma once
22
#include "LogManager.hpp"
3-
namespace ARIASDK_NS_BEGIN {
3+
namespace MAT_NS_BEGIN {
44
class ModuleB : public ILogConfiguration {};
55
class LogManagerB : public LogManagerBase<ModuleB> {};
6-
} ARIASDK_NS_END
6+
} MAT_NS_END

examples/cpp/SampleCppLogManagers/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ using namespace MAT;
1010
// Define two instances for different LogManagers: A and B
1111
// This is how it's done with LOGMANAGER_INSTANCE macro to define the
1212
// default LogManager instance
13-
namespace ARIASDK_NS_BEGIN {
13+
namespace MAT_NS_BEGIN {
1414
DEFINE_LOGMANAGER(LogManagerB, ModuleB);
1515
DEFINE_LOGMANAGER(LogManagerA, ModuleA);
16-
} ARIASDK_NS_END
16+
} MAT_NS_END
1717

1818
void twoModules_LogManagerTest()
1919
{

examples/cpp/SampleCppMini/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ find_package (Threads)
2323

2424
set(MAT_SDK_INCLUDE /usr/local/include/aria)
2525

26-
# Aria SDK to include dirs
26+
# 1DS SDK to include dirs
2727
include_directories( . ${MAT_SDK_INCLUDE} )
2828

2929
# Link main.cpp to executable

examples/objc/cocoa-app/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ find_package (Threads)
1717

1818
set(MATSDK_INCLUDE /usr/local/include/mat)
1919

20-
# Aria SDK to include dirs
20+
# 1DS SDK to include dirs
2121
include_directories( . ${MATSDK_INCLUDE} )
2222

2323
# Prefer linking to more recent local sqlite3

lib/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ elseif(PAL_IMPLEMENTATION STREQUAL "WIN32")
138138
# Win32 Desktop for now.
139139
# TODO: define a separate PAL for Win10 cmake build
140140
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../zlib ${CMAKE_CURRENT_SOURCE_DIR}/../sqlite)
141-
add_definitions(-D_UNICODE -DUNICODE -DZLIB_WINAPI -DWIN32 -DARIASDK_PLATFORM_WINDOWS=1 -DARIASDK_SHARED_LIB=1 -D_ARIA_UTC_SDK -D_CRT_SECURE_NO_WARNINGS -DUSE_BOND -D_WINDOWS -D_USRDLL -DWINVER=_WIN32_WINNT_WIN7)
141+
add_definitions(-D_UNICODE -DUNICODE -DZLIB_WINAPI -DWIN32 -DMATSDK_PLATFORM_WINDOWS=1 -DMATSDK_SHARED_LIB=1 -D_UTC_SDK -D_CRT_SECURE_NO_WARNINGS -DUSE_BOND -D_WINDOWS -D_USRDLL -DWINVER=_WIN32_WINNT_WIN7)
142142
remove_definitions(-D_MBCS)
143143
list(APPEND SRCS
144144
http/HttpClient_WinInet.cpp

lib/api/AllowedLevelsCollection.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#include "AllowedLevelsCollection.hpp"
44

5-
namespace ARIASDK_NS_BEGIN
5+
namespace MAT_NS_BEGIN
66
{
77
AllowedLevelsCollection::AllowedLevelsCollection(std::initializer_list<uint8_t>&& allowedLevels) noexcept
88
: m_allowedLevels(allowedLevels)
@@ -32,4 +32,4 @@ namespace ARIASDK_NS_BEGIN
3232
m_allowedLevels = levels;
3333
}
3434

35-
} ARIASDK_NS_END
35+
} MAT_NS_END

lib/api/AllowedLevelsCollection.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "Version.hpp"
1111
#include "ctmacros.hpp"
1212

13-
namespace ARIASDK_NS_BEGIN
13+
namespace MAT_NS_BEGIN
1414
{
1515

1616
class AllowedLevelsCollection
@@ -30,6 +30,6 @@ namespace ARIASDK_NS_BEGIN
3030
std::vector<uint8_t> m_allowedLevels;
3131
};
3232

33-
} ARIASDK_NS_END
33+
} MAT_NS_END
3434

3535
#endif // ALLOWEDLEVELSCOLLECTION_HPP

lib/api/AuthTokensController.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "ILogManager.hpp"
55
#include "utils/Utils.hpp"
66

7-
namespace ARIASDK_NS_BEGIN {
7+
namespace MAT_NS_BEGIN {
88

99
MATSDK_LOG_INST_COMPONENT_CLASS(AuthTokensController, "EventsSDK.AuthTokensController", "Events telemetry client - AuthTokensController class");
1010

@@ -73,4 +73,4 @@ namespace ARIASDK_NS_BEGIN {
7373
return m_userTokens;
7474
}
7575

76-
} ARIASDK_NS_END
76+
} MAT_NS_END

lib/api/AuthTokensController.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <vector>
1212

1313
// *INDENT-OFF*
14-
namespace ARIASDK_NS_BEGIN
14+
namespace MAT_NS_BEGIN
1515
{
1616
/// <summary>
1717
/// This class is used to manage the Auth Tokens
@@ -78,6 +78,6 @@ namespace ARIASDK_NS_BEGIN
7878
};
7979

8080

81-
} ARIASDK_NS_END
81+
} MAT_NS_END
8282

8383
#endif

lib/api/ContextFieldsProvider.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#include "utils/Utils.hpp"
88

9-
namespace ARIASDK_NS_BEGIN
9+
namespace MAT_NS_BEGIN
1010
{
1111

1212
ContextFieldsProvider::ContextFieldsProvider()
@@ -463,4 +463,4 @@ namespace ARIASDK_NS_BEGIN
463463
return m_customContextFields;
464464
}
465465

466-
} ARIASDK_NS_END
466+
} MAT_NS_END

lib/api/ContextFieldsProvider.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <string>
1313
#include <cassert>
1414

15-
namespace ARIASDK_NS_BEGIN
15+
namespace MAT_NS_BEGIN
1616
{
1717
// TODO: [MG] - A/B EXP code has to be refactored into separate module
1818

@@ -53,5 +53,5 @@ namespace ARIASDK_NS_BEGIN
5353
};
5454

5555

56-
} ARIASDK_NS_END
56+
} MAT_NS_END
5757
#endif

lib/api/CorrelationVector.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using std::string;
99
using std::mutex;
1010
using std::vector;
1111

12-
namespace ARIASDK_NS_BEGIN
12+
namespace MAT_NS_BEGIN
1313
{
1414
// Note: CV spec reserves the last character for the "!" suffix identifying sealed values.
1515
// This effectively means we have one less character to use.
@@ -313,4 +313,4 @@ namespace ARIASDK_NS_BEGIN
313313
return true;
314314
}
315315

316-
} ARIASDK_NS_END
316+
} MAT_NS_END

lib/api/DataViewerCollection.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <algorithm>
33
#include <mutex>
44

5-
namespace ARIASDK_NS_BEGIN {
5+
namespace MAT_NS_BEGIN {
66

77
MATSDK_LOG_INST_COMPONENT_CLASS(DataViewerCollection, "EventsSDK.DataViewerCollection", "Microsoft Telemetry Client - DataViewerCollection class");
88

@@ -108,4 +108,4 @@ namespace ARIASDK_NS_BEGIN {
108108

109109
return nullptr;
110110
}
111-
} ARIASDK_NS_END
111+
} MAT_NS_END

lib/api/DataViewerCollection.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <mutex>
1010
#include <vector>
1111

12-
namespace ARIASDK_NS_BEGIN {
12+
namespace MAT_NS_BEGIN {
1313

1414
class DataViewerCollection : public IDataViewerCollection
1515
{
@@ -39,6 +39,6 @@ namespace ARIASDK_NS_BEGIN {
3939
std::vector<std::shared_ptr<IDataViewer>> m_dataViewerCollection;
4040
};
4141

42-
} ARIASDK_NS_END
42+
} MAT_NS_END
4343

4444
#endif

lib/api/ILogConfiguration.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "ILogConfiguration.hpp"
22

3-
namespace ARIASDK_NS_BEGIN
3+
namespace MAT_NS_BEGIN
44
{
55
ILogConfiguration::ILogConfiguration(const std::initializer_list<std::pair<const std::string, Variant>>& initList)
66
: m_configs(initList) { }
@@ -35,4 +35,4 @@ namespace ARIASDK_NS_BEGIN
3535
return m_configs;
3636
}
3737

38-
} ARIASDK_NS_END
38+
} MAT_NS_END

lib/api/IRuntimeConfig.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include <string>
1111
#include <map>
1212

13-
namespace ARIASDK_NS_BEGIN
13+
namespace MAT_NS_BEGIN
1414
{
1515
///@cond INTERNAL_DOCS
1616

@@ -188,5 +188,5 @@ namespace ARIASDK_NS_BEGIN
188188

189189
/// @endcond
190190

191-
} ARIASDK_NS_END
191+
} MAT_NS_END
192192
#endif

lib/api/LogConfiguration.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using json = nlohmann::json;
77
#endif
88

9-
namespace ARIASDK_NS_BEGIN {
9+
namespace MAT_NS_BEGIN {
1010

1111
static ILogConfiguration currentConfig {
1212
{ CFG_INT_TRACE_LEVEL_MIN, ACTTraceLevel::ACTTraceLevel_Error },
@@ -118,4 +118,4 @@ namespace ARIASDK_NS_BEGIN {
118118
return result;
119119
}
120120

121-
} ARIASDK_NS_END
121+
} MAT_NS_END

lib/api/LogManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
using namespace std;
1010

11-
namespace ARIASDK_NS_BEGIN {
11+
namespace MAT_NS_BEGIN {
1212

1313
class ModuleConfig : ILogConfiguration
1414
{
@@ -20,6 +20,6 @@ namespace ARIASDK_NS_BEGIN {
2020

2121
DEFINE_LOGMANAGER(LogManager, ModuleConfig);
2222

23-
} ARIASDK_NS_END
23+
} MAT_NS_END
2424

2525
#endif

0 commit comments

Comments
 (0)