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

Missing SWIG bindings for repo::DownloadCallbacks "user_data" #1943

Closed
jrohel opened this issue Dec 9, 2024 · 0 comments · Fixed by #1939
Closed

Missing SWIG bindings for repo::DownloadCallbacks "user_data" #1943

jrohel opened this issue Dec 9, 2024 · 0 comments · Fixed by #1939

Comments

@jrohel
Copy link
Contributor

jrohel commented Dec 9, 2024

This issue is a follow-up to #1441, which was resolved in PR #1849.

The problem is that in addition to user_cb_data, there is another argument of type void * - user_data. It is passed to the target language as input in the repo::DownloadCallbacks::add_new_download method. Its value can be set for different downloaders:

repo::FileDownloader: user_data can be passed as a parameter to the add method for the file being added.
repo::PackageDownloader: user_data can be passed as a parameter to the add method for the package being added.

Methods repo::Repo::set_user_data and repo::Repo::get_user_data to set/get user_data for each repository - used when downloading repository metadata.

Support for user_data is completely missing in SWIG bundings.

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 a pull request may close this issue.

1 participant