Commit graph

208 commits

Author SHA1 Message Date
Rémi Bernon
99e5c542c0 lsteamclient: Generate functions with calling convention.
CW-Bug-Id: #22729
2023-12-19 19:42:15 +01:00
Rémi Bernon
fb4497a377 lsteamclient: Use standard fixed size integer types.
CW-Bug-Id: #22729
2023-12-19 19:42:15 +01:00
Rémi Bernon
07e95d32c1 lsteamclient: Use integer types instead of enums.
CW-Bug-Id: #22729
2023-12-19 19:42:15 +01:00
Rémi Bernon
312c50426b lsteamclient: Use SOURCES instead of C(XX)_SRCS. 2023-12-19 19:42:15 +01:00
Rémi Bernon
fb8548e79f lsteamclient: Wrap parameters in structures.
CW-Bug-Id: #22729
2023-12-19 19:42:15 +01:00
Rémi Bernon
4852a1bfdd lsteamclient: Simplify unix side parameter conversions.
CW-Bug-Id: #22729
2023-12-19 19:42:15 +01:00
Rémi Bernon
26174adf32 lsteamclient: Allocate memory for every path conversion.
CW-Bug-Id: #22729
2023-12-19 19:42:15 +01:00
Rémi Bernon
80104ca5d9 lsteamclient: Simplify path convertion using separate dicts.
CW-Bug-Id: #22729
2023-12-19 19:42:15 +01:00
Rémi Bernon
259895dcf3 lsteamclient: Use a generic interface wrapper struct.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
338ec9aa0a lsteamclient: Use with statement to generate the .c files.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
48eebd5c23 lsteamclient: Generate the .h and .cpp files separately.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
47ae1fde89 lsteamclient: Pass write function as parameter to handle_method*.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
85b9f9ea6f lsteamclient: Replace do_cb_wrap with (alloc|convert)_callback.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
d81a972d3f lsteamclient: Split do_cb_wrap into conversion helpers.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
d46fb7c78a lsteamclient: Consistently use the computed return type.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
536b237731 lsteamclient: Always use a return result variable.
CW-Bug-Id: #22729
2023-12-19 19:42:14 +01:00
Rémi Bernon
fb7270ecbf lsteamclient: Fix some compilation warnings.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
c59345eb5b lsteamclient: Build using makedep rules.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
0040deb754 lsteamclient: Cleanup C method generator.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
ec53c8a649 lsteamclient: Generate thiscall wrappers separately.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
26eddba698 lsteamclient: Introduce a new Method cursor wrapper.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
2087258dc1 lsteamclient: Introduce a new Class cursor wrapper.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
0c8b164036 lsteamclient: Use the names array for the param converters.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
da3bf9b709 lsteamclient: Use declspec to generate C++ method signature.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
9082bfb035 lsteamclient: Split C++/C method generation helpers.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
5120d0f423 lsteamclient: Reorder do_cb_wrap first parameters.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
16c292fa1b lsteamclient: Split cpp_h generation to a dedicated method.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
3a7b436f7a lsteamclient: Return all struct abis from find_struct.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
cb630d307e lsteamclient: Filter structs and classes while parsing.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
819257a800 lsteamclient: Use the all_records dict to lookup structs.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
5537343715 lsteamclient: Introduce new canonical_typename helper.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
f6ebb7f506 lsteamclient: Sort classes by their version string.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
6451808497 lsteamclient: Filter classes by version before generating.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
3008287221 lsteamclient: Strip interface version suffixes early.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
7d61cb59ad lsteamclient: Parse SDK versions and ABIs in parallel.
CW-Bug-Id: #22729
2023-12-19 19:42:13 +01:00
Rémi Bernon
07e1819ebb lsteamclient: Split loading, parsing, and generating steps.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
2ac946310c lsteamclient: Introduce a dedicated parsing function.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
7f722fb6d1 lsteamclient: Use a dict for SDK sources / class mapping.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
5fd4f7d72e lsteamclient: Use upper-case global constants.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
2cb0c9a2b6 lsteamclient: Remove unused imports and duplicate entries.
CW-Bug-Id: #22729
2023-12-19 19:42:12 +01:00
Rémi Bernon
435b67aaf7 lsteamclient: Add some missing exports for SDK 1.58. 2023-10-19 13:42:29 +03:00
Arkadiusz Hiler
c0d0b2f295 lsteamclient: Generate SteamWorks SDK 1.58 support. 2023-09-27 20:14:12 +03:00
Arkadiusz Hiler
45dff33596 lsteamclient: Import SteamWorks SDK 1.58. 2023-09-27 20:14:12 +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