servo / core-foundation-rs

Rust bindings to Core Foundation and other low level libraries on Mac OS X and iOS
Other
991 stars 216 forks source link

Usage of dispatch_queue_t ? #635

Open NyaomiDEV opened 1 year ago

NyaomiDEV commented 1 year ago

I was trying to build myself a little hacky thing to control what's playing on my Mac from another application, however, to do that I need to get MediaRemote to work (which is almost fairly easy, just use CFBundleCreate and start from there.)

The issue I found is that there's no sign of something I can use to get a dispatch_queue_t ref to pass to, for example, void MRMediaRemoteGetNowPlayingInfo(dispatch_queue_t queue, MRMediaRemoteGetNowPlayingInfoCallback block).

Am I missing something?

madsmtm commented 1 year ago

I'd recommend you check out the dispatch crate