Skip to content

Commit eca8687

Browse files
authored
Merge branch 'main' into ajadusum/powbroadasync
2 parents 2527b3e + f147079 commit eca8687

21 files changed

+163
-85
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
# Initializes the CodeQL tools for scanning.
3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@v1
38+
uses: github/codeql-action/init@v2
3939
with:
4040
languages: ${{ matrix.language }}
4141
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -46,7 +46,7 @@ jobs:
4646
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
4747
# If this step fails, then you should remove it and run the build manually (see below)
4848
- name: Autobuild
49-
uses: github/codeql-action/autobuild@v1
49+
uses: github/codeql-action/autobuild@v2
5050

5151
# ℹ️ Command-line programs to run using the OS shell.
5252
# 📚 https://git.io/JvXDl
@@ -60,4 +60,4 @@ jobs:
6060
# make release
6161

6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@v1
63+
uses: github/codeql-action/analyze@v2

Solutions/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.7.999.1
1+
3.year.day.1

lib/api/capi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ evt_status_t mat_flushAndTeardown(evt_context_t *ctx)
337337
return STATUS_SUCCESS;
338338
}
339339

340-
evt_status_t mat_flush(evt_context_t *ctx)
340+
static evt_status_t mat_flush(evt_context_t *ctx)
341341
{
342342
VERIFY_CLIENT_HANDLE(client, ctx);
343343
const auto result = static_cast<evt_status_t>(client->logmanager->Flush());

lib/http/HttpClient_Curl.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,13 @@ class CurlHttpOperation {
208208
* Note that this API takes a pointer to a 'long' while we use
209209
* curl_socket_t for sockets otherwise.
210210
*/
211+
212+
#if LIBCURL_VERSION_NUM >= 0x072D00 // Version 7.45.00
213+
res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockextr);
214+
#else
211215
res = curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &sockextr);
216+
#endif
217+
212218
if(CURLE_OK != res)
213219
{
214220
DispatchEvent(OnConnectFailed); // couldn't connect - stage 2

lib/include/public/CAPIClient.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ namespace MAT_NS_BEGIN
2929

3030
public:
3131

32-
CAPIClient(evt_handle_t lib = 0) :
32+
CAPIClient(evt_handle_t lib_ = 0) :
3333
handle(0),
34-
lib(lib)
34+
lib(lib_)
3535
{
3636
if (lib != 0)
3737
evt_load(lib);

lib/include/public/DebugEvents.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ namespace MAT_NS_BEGIN
156156
/// <summary>DebugEvent The default DebugEvent constructor.</summary>
157157
DebugEvent() : seq(0), ts(0), type(EVT_UNKNOWN), param1(0), param2(0), data(NULL), size(0) {};
158158

159-
DebugEvent(DebugEventType type) : seq(0), ts(0), type(type), param1(0), param2(0), data(NULL), size(0) {};
159+
DebugEvent(DebugEventType type_) : seq(0), ts(0), type(type_), param1(0), param2(0), data(NULL), size(0) {};
160160

161-
DebugEvent(DebugEventType type, size_t param1, size_t param2 = 0, void* data = nullptr, size_t size = 0) :
162-
seq(0), ts(0), type(type), param1(param1), param2(param2), data(data), size(size) {};
161+
DebugEvent(DebugEventType type_, size_t param1_, size_t param2_ = 0, void* data_ = nullptr, size_t size_ = 0) :
162+
seq(0), ts(0), type(type_), param1(param1_), param2(param2_), data(data_), size(size_) {};
163163
};
164164

165165
/// <summary>

lib/include/public/TransmitProfiles.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,28 @@ namespace MAT_NS_BEGIN
8484
/// TransmitProfileRule constructor taking a collection of timers.
8585
/// </summary>
8686
/// <param name="timers">A vector of integers that contain per-priority transmission timers.</param>
87-
TransmitProfileRule(std::vector<int>&& timers)
88-
: timers(std::move(timers)) { }
87+
TransmitProfileRule(std::vector<int>&& timers_)
88+
: timers(std::move(timers_)) { }
8989

9090
/// <summary>
9191
/// TransmitProfileRule constructor taking a NetworkCost and a collection of timers.
9292
/// </summary>
9393
/// <param name="networkCost">The network cost, as one of the MAT::NetworkCost enumeration values.</param>
9494
/// <param name="timers">A vector of integers that contain per-priority transmission timers.</param>
95-
TransmitProfileRule(NetworkCost networkCost, std::vector<int>&& timers)
95+
TransmitProfileRule(NetworkCost networkCost, std::vector<int>&& timers_)
9696
: netCost(networkCost)
97-
, timers(std::move(timers)) { }
97+
, timers(std::move(timers_)) { }
9898

9999
/// <summary>
100100
/// TransmitProfileRule constructor taking a NetworkCost, PowerSource, and a collection of timers.
101101
/// </summary>
102102
/// <param name="networkCost">The network cost, as one of the MAT::NetworkCost enumeration values.</param>
103103
/// <param name="powerSource">The power state, as one of the MAT::PowerSource enumeration values.</param>
104104
/// <param name="timers">A vector of integers that contain per-priority transmission timers.</param>
105-
TransmitProfileRule(NetworkCost networkCost, PowerSource powerSource, std::vector<int>&& timers)
105+
TransmitProfileRule(NetworkCost networkCost, PowerSource powerSource, std::vector<int>&& timers_)
106106
: netCost(networkCost)
107107
, powerState(powerSource)
108-
, timers(std::move(timers)) { }
108+
, timers(std::move(timers_)) { }
109109

110110
} TransmitProfileRule;
111111

lib/include/public/Version.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#define MAT_VERSION_HPP
77
// WARNING: DO NOT MODIFY THIS FILE!
88
// This file has been automatically generated, manual changes will be lost.
9-
#define BUILD_VERSION_STR "3.7.240.1"
10-
#define BUILD_VERSION 3,7,240,1
9+
#define BUILD_VERSION_STR "3.8.32.1"
10+
#define BUILD_VERSION 3,8,32,1
1111

1212
#ifndef RESOURCE_COMPILER_INVOKED
1313
#include "ctmacros.hpp"
@@ -17,8 +17,8 @@ namespace MAT_NS_BEGIN {
1717

1818
uint64_t const Version =
1919
((uint64_t)3 << 48) |
20-
((uint64_t)7 << 32) |
21-
((uint64_t)240 << 16) |
20+
((uint64_t)8 << 32) |
21+
((uint64_t)32 << 16) |
2222
((uint64_t)1);
2323

2424
} MAT_NS_END
@@ -27,4 +27,3 @@ namespace PAL_NS_BEGIN { } PAL_NS_END
2727

2828
#endif // RESOURCE_COMPILER_INVOKED
2929
#endif
30-

lib/offline/LogSessionDataProvider.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ namespace MAT_NS_BEGIN
5555
std::string const m_cacheFilePath;
5656
SessionStorageType m_storageType;
5757
std::unique_ptr<LogSessionData> m_logSessionData;
58-
uint64_t convertStrToLong(const std::string&);
59-
void writeFileContents(const std::string&, uint64_t, const std::string&);
58+
static uint64_t convertStrToLong(const std::string&);
59+
static void writeFileContents(const std::string&, uint64_t, const std::string&);
6060
void remove_eol(std::string& );
6161
};
6262
}

lib/offline/SQLiteWrapper.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ namespace MAT_NS_BEGIN {
440440
}
441441

442442
bool lock() {
443+
#ifndef NDEBUG
443444
unsigned count = 0;
445+
#endif
444446
unsigned waitTime = 0;
445447
while (!trylock()) {
446448
if (waitTime >= MAX_DB_LOCKWAIT_DELAY) {
@@ -452,8 +454,10 @@ namespace MAT_NS_BEGIN {
452454
return false;
453455
}
454456
waitTime += MAX_DB_LOCKWAIT_DELAY; // 500ms, 1000ms
457+
#ifndef NDEBUG
455458
count++;
456459
LOG_DEBUG("Lock: waiting to acquire the lock: count=%u, waitTime=%u", count, waitTime);
460+
#endif
457461
PAL::sleep(MAX_DB_LOCKWAIT_DELAY);
458462
}
459463
LOG_DEBUG("Lock: acquired [time=%u]", waitTime);

0 commit comments

Comments
 (0)