You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
It doesn't make sense that a low-level C binding library would have structs with private fields. At least in cases where there is no accessible constructor; an example that I'm running into is GSourceFuncs.
The text was updated successfully, but these errors were encountered:
So far we've been making private fields which are explicitly marked as private upstream (GSourceFuncs). This does cause problems in various places so I'm considering relaxing this rule. I'm reluctant to simply publish all fields though.
An example that I think needs to have a public field is Volatile.
Currently, it seems impossible to create a Volatile to set the ref_count to -1.
Could you please change to definition to:
@gkoz@EPashkin@GuillaumeGomez I use Volatile multiple times in my gdbus crate as you can see here.
Could you please change the definition?
Or is there another way to achieve what I want.
Thanks.
It doesn't make sense that a low-level C binding library would have structs with private fields. At least in cases where there is no accessible constructor; an example that I'm running into is GSourceFuncs.
The text was updated successfully, but these errors were encountered: