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

add hid_version/hid_version_str API #192

Merged
merged 3 commits into from
Oct 14, 2020
Merged

add hid_version/hid_version_str API #192

merged 3 commits into from
Oct 14, 2020

Conversation

Youw
Copy link
Member

@Youw Youw commented Sep 27, 2020

  • API functions to get runtime version of the library;
  • macros to get static/compile-time version of the library;
  • VERSION file;

- API functions to get runtime version of the library;
- macros to get static/compile-time version of the library;
- VERSION file;
@Youw Youw requested a review from a team September 27, 2020 23:32
HACKING.txt Outdated Show resolved Hide resolved
HACKING.txt Outdated Show resolved Hide resolved
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "hidapi"
spec.version = "0.9.0"
spec.version = "<fill me up from VERSION file, before submit>"
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like it's possible to read version from VERSION file
spec.version = File.read('../VERSION')
I'm going to try this during publishing 0.10.0, and if it will work, I create a PR

Copy link
Member Author

Choose a reason for hiding this comment

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

sounds great

@Youw Youw merged commit 8f72236 into master Oct 14, 2020
@Youw Youw deleted the version-update branch October 14, 2020 15:41
Youw added a commit that referenced this pull request Nov 23, 2020
- API functions to get runtime version of the library;
- macros to get static/compile-time version of the library;
- VERSION file;
@mcuee mcuee added the Core Related to common codes like hidapi.h label Jul 18, 2021
SomberNight added a commit to SomberNight/cython-hidapi that referenced this pull request Aug 22, 2022
`hid_version_str` was added to the underlying C library in 0.10.0,
in libusb/hidapi#192

Note that the method added here returns the version of the C library,
which is different from the version of cython-hidapi, i.e. the `hid` python package.
It would be good to also make the latter available at runtime somehow.
prusnak pushed a commit to trezor/cython-hidapi that referenced this pull request Aug 22, 2022
`hid_version_str` was added to the underlying C library in 0.10.0,
in libusb/hidapi#192

Note that the method added here returns the version of the C library,
which is different from the version of cython-hidapi, i.e. the `hid` python package.
It would be good to also make the latter available at runtime somehow.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Related to common codes like hidapi.h
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants