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 a way to remap user property flags in users gobject_core #36

Open
thiblahute opened this issue Aug 19, 2022 · 1 comment
Open

Add a way to remap user property flags in users gobject_core #36

thiblahute opened this issue Aug 19, 2022 · 1 comment
Milestone

Comments

@thiblahute
Copy link

thiblahute commented Aug 19, 2022

For example in GStreamer we have specified some flags: https://gstreamer.freedesktop.org/documentation/gstreamer/gstparamspec.html?gi-language=c#constants

Now in the gst::element proc macro we should be able to specify those flags directly like:

#[gst::element(....)]
mod impl {
     struct MyElement {
        #[property(get, set, mutable_ready, controllable)]
        uri: Mutex<String>,
    }
}

but I haven't been able to figure out how to do that cleanly.

@thiblahute
Copy link
Author

And if we want to go fancy mutable_XX and controllable should imply set

@jf2048 jf2048 added this to the 0.1.alpha milestone Oct 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants