206 Commits

Author SHA1 Message Date
Paul Gofman
6ebd1d11de fixup! lsteamclient: Allocate memory for every path conversion.
CW-Bug-Id: #22896
2023-10-24 10:18:09 -06:00
Rémi Bernon
f0947060cc fixup! lsteamclient: Add some missing exports for SDK 1.58. 2023-10-18 21:36:39 +02:00
Rémi Bernon
b04135b480 lsteamclient: Add some missing exports for SDK 1.58. 2023-10-18 20:20:40 +02:00
Rémi Bernon
1f57edc2a4 lsteamclient: Wrap parameters in structures.
CW-Bug-Id: #22729
2023-09-28 09:33:20 +02:00
Rémi Bernon
4b053446c4 lsteamclient: Simplify unix side parameter conversions.
CW-Bug-Id: #22729
2023-09-28 09:33:20 +02:00
Rémi Bernon
f7c7f8a4c7 lsteamclient: Allocate memory for every path conversion.
CW-Bug-Id: #22729
2023-09-28 09:33:20 +02:00
Rémi Bernon
ad66ff5780 lsteamclient: Simplify path convertion using separate dicts.
CW-Bug-Id: #22729
2023-09-28 09:33:20 +02:00
Rémi Bernon
8faa764636 lsteamclient: Use a generic interface wrapper struct.
CW-Bug-Id: #22729
2023-09-28 09:33:12 +02:00
Rémi Bernon
c60e8927be lsteamclient: Use with statement to generate the .c files.
CW-Bug-Id: #22729
2023-09-28 09:33:10 +02:00
Rémi Bernon
9761d7045e lsteamclient: Generate the .h and .cpp files separately.
CW-Bug-Id: #22729
2023-09-28 09:33:09 +02:00
Rémi Bernon
7326c1d673 lsteamclient: Pass write function as parameter to handle_method*.
CW-Bug-Id: #22729
2023-09-28 09:33:08 +02:00
Rémi Bernon
d9ccd61c11 lsteamclient: Replace do_cb_wrap with (alloc|convert)_callback.
CW-Bug-Id: #22729
2023-09-28 09:33:07 +02:00
Rémi Bernon
6260055bd2 lsteamclient: Split do_cb_wrap into conversion helpers.
CW-Bug-Id: #22729
2023-09-28 09:33:07 +02:00
Rémi Bernon
3479873c06 lsteamclient: Consistently use the computed return type.
CW-Bug-Id: #22729
2023-09-28 09:33:05 +02:00
Rémi Bernon
9f71e16ff9 lsteamclient: Always use a return result variable.
CW-Bug-Id: #22729
2023-09-28 09:33:03 +02:00
Rémi Bernon
9cb3da4806 lsteamclient: Fix some compilation warnings.
CW-Bug-Id: #22729
2023-09-27 16:15:34 +03:00
Rémi Bernon
9c99b17a44 lsteamclient: Build using makedep rules.
CW-Bug-Id: #22729
2023-09-27 16:15:34 +03:00
Rémi Bernon
981eab406d lsteamclient: Cleanup C method generator.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
fc59438043 lsteamclient: Generate thiscall wrappers separately.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
96bf31be96 lsteamclient: Introduce a new Method cursor wrapper.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
8a120213e6 lsteamclient: Introduce a new Class cursor wrapper.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
a38b4562a1 lsteamclient: Use the names array for the param converters.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
cdcced0ddf lsteamclient: Use declspec to generate C++ method signature.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
3eaaff84f7 lsteamclient: Split C++/C method generation helpers.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
4ea34adb14 lsteamclient: Reorder do_cb_wrap first parameters.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
031bcf671e lsteamclient: Split cpp_h generation to a dedicated method.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
2a780473e1 lsteamclient: Return all struct abis from find_struct.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
4270de7e02 lsteamclient: Filter structs and classes while parsing.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
ff93611af1 lsteamclient: Use the all_records dict to lookup structs.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
7756658df1 lsteamclient: Introduce new canonical_typename helper.
CW-Bug-Id: #22729
2023-09-27 16:04:49 +03:00
Rémi Bernon
09df35ed1f lsteamclient: Sort classes by their version string.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
18b465a393 lsteamclient: Filter classes by version before generating.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
cd3d0d1978 lsteamclient: Strip interface version suffixes early.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
5a44cce1d4 lsteamclient: Parse SDK versions and ABIs in parallel.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
4dea878825 lsteamclient: Split loading, parsing, and generating steps.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
e08712c5aa lsteamclient: Introduce a dedicated parsing function.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
977b589c03 lsteamclient: Use a dict for SDK sources / class mapping.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
5e80091874 lsteamclient: Use upper-case global constants.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Rémi Bernon
319f323c88 lsteamclient: Remove unused imports and duplicate entries.
CW-Bug-Id: #22729
2023-09-27 16:04:48 +03:00
Arkadiusz Hiler
72d88cd736 lsteamclient: Generate SteamWorks SDK 1.58 support. 2023-09-18 17:19:45 +03:00
Arkadiusz Hiler
b50c43e427 lsteamclient: Import SteamWorks SDK 1.58. 2023-09-18 17:19:45 +03:00
Paul Gofman
516f76e446 lsteamclient: Terminate callback thread on Steam interface shutdown.
CW-Bug-Id: #22649
2023-09-12 14:44:08 +03:00
Paul Gofman
e8df09e258 lsteamclient: Also overload lin SteamNetworkingMessage_t.m_pfnRelease.
CW-Bug-Id: #22649

So msg wrapper is freed when the message is released from steamclient
side.
2023-09-12 14:44:08 +03:00
Paul Gofman
8a109013b4 lsteamclient: Handle calls to SteamNetworkingMessage_t.m_pfnFreeData from native threads.
CW-Bug-Id: #22649
2023-09-12 14:44:08 +03:00
Paul Gofman
a798b8308f lsteamclient: Use a list to map lin SteamNetworkingMessage_t to wrapper.
CW-Bug-Id: #22649
2023-09-12 14:44:08 +03:00
Paul Gofman
a7bdd61d20 lsteamclient: Use plain memory allocation / free for SteamNetworkingMessage_t wrapper.
CW-Bug-Id: #22649
2023-09-12 14:44:08 +03:00
Paul Gofman
6ed890c9e9 lsteamclient: Avoid code duplication in handling SteamNetworkingMessage_t wrapping.
CW-Bug-Id: #22649
2023-09-12 14:44:08 +03:00
Rémi Bernon
ea07c02886 lsteamclient: Generate SteamWorks SDK 1.57 support. 2023-05-19 18:05:40 +03:00
Rémi Bernon
a33bbf115c lsteamclient: Import SteamWorks SDK 1.57. 2023-05-19 18:05:32 +03:00
Rémi Bernon
582047e3be lsteamclient: Generate SteamWorks SDK 1.56 support. 2023-05-19 18:05:27 +03:00