LabVIEW references are all handled through something called Cookie Jars.
The API for this is undocumented but there is a public reference as it is used for the OpenG Zip library with the C source at https://github.com/Open-G/lvzip-library/blob/c6ae51670d185d062002d8fae7d4e4c7ec425b1b/c_source/refnum.c#L41
This would always be in a questionable place support wise but it would be a massive bonus since we could retain Rust drop semantics automatically and detect invalid references.
LabVIEW references are all handled through something called Cookie Jars.
The API for this is undocumented but there is a public reference as it is used for the OpenG Zip library with the C source at https://github.com/Open-G/lvzip-library/blob/c6ae51670d185d062002d8fae7d4e4c7ec425b1b/c_source/refnum.c#L41
This would always be in a questionable place support wise but it would be a massive bonus since we could retain Rust drop semantics automatically and detect invalid references.