Filippo Gentile
8c12a50078
threading: fix MinGW thread name
...
SetThreadDescription() is not currently supported by MinGW compiler.
It was added in Windows 10 so it's relatively new function.
But MinGW comes with a Windows implementation of pthread library.
This means we can just use the same code as for linux which
calls 'pthread_setname_np()' and skip windows specific call.
2023-01-09 21:52:43 +01:00
Filippo Gentile
fc8ce2a891
endianess: fix MinGW on Windows
...
MinGW has _byteswap_ushort and the other functions like MSVC but
needs additional <cstdlib> header.
2023-01-09 21:46:31 +01:00
Reinder Feenstra
fc3012f346
fix: constexpr -> inline
2022-12-24 21:59:04 +01:00
Reinder Feenstra
1715c1db03
added std::string overload of rtrim()
2022-12-24 11:58:44 +01:00
Reinder Feenstra
3e1121ee04
added throttle objects to aquire/release decoder control
2022-12-04 23:16:08 +01:00
Reinder Feenstra
8f70509465
added base classes for identification support
2022-09-16 22:33:10 +02:00
Reinder Feenstra
df1d9d3371
Implemented setThreadName for windows
...
moved implmentation to cpp to get rid of many includes in the header
2022-05-26 00:59:03 +02:00
Reinder Feenstra
20d5f830f4
Added toHex() overload for buffer and std::string_view
2022-05-23 23:21:06 +02:00
Reinder Feenstra
7978c76898
lua: added start/stop all to script list and added disabled property to script (to prevent start all)
2022-05-04 23:55:14 +02:00
Reinder Feenstra
96b6613ad4
missing in 5fd81c255e244a9ee727367304a43d7deb64446e
2022-04-24 19:49:10 +02:00
Reinder Feenstra
874e9eeac6
fix: macos: pthread_setname_np is different
2022-04-18 22:40:15 +02:00
Reinder Feenstra
7afe5ea943
ecos: added simulation of s88 objects
...
using data of last successful connection
2022-04-15 09:42:50 +02:00
Reinder Feenstra
94fd800443
utils: added generic version number structs
2022-03-31 00:16:33 +02:00
Reinder Feenstra
270c9f3a3a
utils: added stripPrefix function
2022-03-31 00:15:59 +02:00
Reinder Feenstra
87fa91b9b4
loconet: added LNCV start (based on traffic analysis)
2022-03-10 22:52:08 +01:00
Reinder Feenstra
6cca383d87
added support for output channels and implemented it for DCC++EX
2022-02-05 19:44:37 +01:00
Reinder Feenstra
3351e7ddda
fix: added missing -1 in fromChars
2022-02-01 23:02:19 +01:00
Reinder Feenstra
5ca6c73892
replaced world weak_ptr by reference
...
a world must always outlive its objects
2022-01-17 23:31:04 +01:00
Reinder Feenstra
ea1f153047
fix: license header and include guard
2022-01-08 22:40:49 +01:00
Reinder Feenstra
d9c63fd3fa
fixed diagnostic/readabilty issues reported by clang-tidy #WIP
2022-01-04 23:32:36 +01:00
Reinder Feenstra
34ccc228e3
fixed many diagnostic/readabilty issues reported by clang-tidy #WIP
2022-01-04 00:09:38 +01:00
Reinder Feenstra
9bd2a50539
Added category attributes to server settings
2022-01-03 09:59:49 +01:00
Reinder Feenstra
b8867e1378
world loader: added loading of legacy command stations and controllers
2022-01-03 00:05:29 +01:00
Reinder Feenstra
35ea514d61
fixed language issues and added en-us strings
2022-01-03 00:03:57 +01:00
Reinder Feenstra
35869a7fd8
wlanmaus: rewrite -> new kernel/iohandler model
2022-01-02 11:32:57 +01:00
Reinder Feenstra
b6e0fe3959
ecos: improved reply parsing
2021-12-25 23:16:13 +01:00
Reinder Feenstra
9b41121645
fix: std::any_of is not constexpr in C++17 (requires C++20)
2021-12-20 13:04:47 +01:00
Reinder Feenstra
6139fa366c
ecos: added mirror objects for ECoS internal objects
2021-12-20 00:23:31 +01:00
Reinder Feenstra
a230e96506
moved rtrim() to rtrim.hpp, removed duplicate startsWith()
2021-12-03 23:36:22 +01:00
Reinder Feenstra
04c5e366a1
fixed unused error in release build
2021-11-29 23:19:36 +01:00
Reinder Feenstra
6b59525b42
rewrote DCC++(EX)
2021-11-28 22:43:41 +01:00
Reinder Feenstra
8128f7aa50
utils: added rtrim function
2021-11-28 21:50:05 +01:00
Reinder Feenstra
a4806f36f9
moved serial port open code to function for reuse
2021-10-25 23:05:42 +02:00
Reinder Feenstra
f52502bcbf
WIP: XpressNet rewrite
2021-10-24 17:22:17 +02:00
Reinder Feenstra
6245513048
WIP: loconet: major rewrite:
...
one interface with three io handler backends: serial/tcp binary/LBServer
the kernel runs it's own thread for handling all loconet traffic (and future filtering), it only notifies the event loop if something changes
2021-10-17 16:38:51 +02:00
Reinder Feenstra
956c8ad168
Replaced command station and controller by interface with supporting controllers
2021-10-17 16:10:56 +02:00
Reinder Feenstra
b30db09116
server: fixed many warnings
2021-09-11 23:49:38 +02:00
Reinder Feenstra
6420805888
Many translation improvments and cleanup
...
Added option to log missing strings to client
2021-09-10 23:53:59 +02:00
Reinder Feenstra
1e1ed87574
replace Category enum by translatable string
2021-08-22 13:43:08 +02:00
Reinder Feenstra
b18c2269a6
added new log system:
...
- added message codes
- added support for translation
- added support for file logging
2021-08-03 23:56:36 +02:00
Reinder Feenstra
adf7c09709
decoder: replaced speedStep property by trottle
...
this makes setting number of speed steps optional for most systems
TODO: add log messages to notify user of improperly configured decoders.
2021-07-23 17:32:22 +02:00
Reinder Feenstra
5694305ab8
use DisplayName namespace everywhere for setting displayname attribute
2021-06-29 21:04:52 +02:00
Reinder Feenstra
dd759112ac
Added/implmented sensor state and type enums
2021-06-26 19:55:06 +02:00
Reinder Feenstra
03e8636912
Added DisplayName namespace for display name constants
2021-06-25 00:25:26 +02:00
Reinder Feenstra
b39213f2b8
added support for macOS to endian.hpp
2021-05-29 21:43:22 +02:00
Reinder Feenstra
1e69644dba
Added support for sha1 digest calculation of strings and files
2021-05-14 10:56:44 +02:00
Reinder Feenstra
0bd80ec78d
fix: added missing getUniqueId in IF_CLASSID_CREATE macro
2020-12-21 23:08:27 +01:00
Reinder Feenstra
0bca98cb4a
Board: added straight/curve/cross rail tiles
2020-11-28 17:05:52 +01:00
Reinder Feenstra
35f1cfc263
Implemented ClassList attribute
2020-09-02 22:59:07 +02:00
Reinder Feenstra
7c0450f0e3
refactor: renamed functions
...
to_hex -> toHex
to_string -> toString
2020-08-26 18:46:34 +02:00