arvidn / libtorrent

an efficient feature complete C++ bittorrent implementation
http://libtorrent.org
Other
5.27k stars 997 forks source link

C bindings seem to be broken #7747

Open KevinT3Hu opened 1 month ago

KevinT3Hu commented 1 month ago

Please provide the following information

libtorrent version (or branch): RC_2.0

platform/architecture: Linux/amd64

compiler and compiler version: g++ (Gentoo 14.1.1_p20240622 p3) 14.1.1 20240622

The C bindings seem not to align with the latest code api, errors include the params parsing part, fields like paused and tracker_url seem no longer available in source code. Noticing that the c binding was last updated 2 years ago, I assume we need to update it so that it aligns with the latest code.

arvidn commented 1 month ago

are you using the C bindings?

KevinT3Hu commented 1 month ago

are you using the C bindings?

I was trying to use it with Rust and bindgen couldn't handle C++ quite well especially when concerning templates and what.