-
Notifications
You must be signed in to change notification settings - Fork 21
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
Adds bindins to the "iio_device_get_label()". #25
Conversation
Hey, thanks for the PR. I'm going to go through the API and look for anything else missing to get into a v0.6 release in a few weeks. Let me know if you notice anything else that should be added. |
Oh, actually, you got rid of the 32-bit bindings? Did you test this on a 32-bit system, like an ARMv7 to make sure you didn't break those builds? |
I'm going to close this due to the lack of separate bindings for 64-bit and 32-bit systems. IIRC, these were needed to deal with the different pointer sizes in the C structs. If they're the wrong size, the bindings are mis-aligned, and you get a segfault. I leap-frog'ed the version support to libiio v0.24, but made it conditional based on this or the last one (v0.21). If you needed v0.23 for a specific reason, it would be trivial to add. And I started to add support for the new functions in the latest version, making them dependent on the selected bindings, like:
|
No, I have no mean of testing this. I was wondering why there was two bindings. Because on my host, when I generate the 32bits and 64 bits bindings, they are exactly the same. I trough there was an issue with an earlier version of |
I'm perfeclty fine with that! Thanks for your support fpagliughi! |
Yeah, the problem with the bindings is mostly when you have them in C structs going across the boundary, like:
WIth 64-bit bindings, Honestly, I can't remember if there's anything in the But in order to generate the 32=bit bindings, you have to do it on a 32-bit host... or do it in a cross-compiled environment. I just do it natively on an old Nvidia TK1 board. |
Ho, I trough that the |
It does... but the pointers are simply different sizes on different platforms! |
This should solve #24.