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

[RGen] Use GetStruct on Dlfcn to retrieve CoreMedia.CMTime and AVCaptureWhiteBalanceGains #21982

Open
mandel-macaque opened this issue Jan 15, 2025 · 0 comments
Labels
Milestone

Comments

@mandel-macaque
Copy link
Member

While writing the support for static fields we notice that bgen does not use the GetSturct method, but instead does the following:

./AVFoundation/AVCaptureDevice.g.cs:2684:                               return *((global::CoreMedia.CMTime *) Dlfcn.dlsym (Libraries.AVFoundation.Handle, "AVCaptureExposureDurationCurrent"));
./AVFoundation/AVCaptureDevice.g.cs:2825:                               return *((AVCaptureWhiteBalanceGains *) Dlfcn.dlsym (Libraries.AVFoundation.Handle, "AVCaptureWhiteBalanceGainsCurrent"));

We should use the GetStruct call but we have copied the behavior of bgen to make sure that we do not break it when porting to the roslyn code generator. Once we have all bindings we should rivets these two structs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants