Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kannibalox feature/lua #1380

Merged
merged 98 commits into from
Jan 18, 2025
Merged

Kannibalox feature/lua #1380

merged 98 commits into from
Jan 18, 2025

Conversation

rakshasa
Copy link
Owner

No description provided.

By default, builds will still not have XMLRPC enabled at all and the
configure flag `--with-xmlrpc-tinyxml2` must be specified. If both
xmlrpc-c and tinyxml2 are specified, xmlrpc-c takes precedence.

Basic benchmarks indicate tinyxml2 is 2x faster for small
requests/responses, and that only increases as response sizes get
larger.
Also use `||` instead of `or`, and throw an error if an unknown boolean
string is received
Also remove uses element_access for single child accesses
rakshasa and others added 22 commits January 18, 2025 18:21
We can't have two classes with the same name in the rpc namespace. It causes ODR and lto-type-mismatches when compiling rTorrent with LTO.

This pull request addresses the problem by renaming the `xmlrpc_error` error class to `xmlrpc_error_c` in the xmlrpc_c file.
We need to follow the same specification as xmlrpc-c until we deprecate it. It is breaking various software such as sonarr. We can't have xmlrpc using i8 and tinyxml2 using i4, while we allow both to be used.
Specifically this fixes errors related to undefined macros in headers, since those aren't recorded
in compile_commands.json
This commit removes rak:mem_fun and replaces it with std::function and lambdas.
This commit replaces the `rak/functional.h` features with lambdas and std functions.

There was one instance with `std::sort` where the comparison operator was always evaluating to false and it wasn't sorting anything. This is removed in favour of the default comparison operator.

`std::sort(transferChunks.begin(), transferChunks.end());`
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

src/control.h Outdated Show resolved Hide resolved
src/control.h Outdated Show resolved Hide resolved
rakshasa and others added 3 commits January 19, 2025 03:32
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@rakshasa rakshasa merged commit 2e0a417 into master Jan 18, 2025
2 checks passed
@rakshasa rakshasa deleted the kannibalox-feature/lua branch January 18, 2025 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants