bilelmoussaoui / oo7

James Bond went on a new mission as a Secret Service provider
https://bilelmoussaoui.github.io/oo7/oo7/
MIT License
57 stars 11 forks source link

Export a C API #84

Open bilelmoussaoui opened 3 months ago

bilelmoussaoui commented 3 months ago

To fully replace libsecret. I wouldn't try to make it glib-y as that would be painful, depends on whoever does the work.

A6GibKm commented 3 months ago

I kinda want to leave glib out of the equation, but it could buy so much for us: Language bindings.

bilelmoussaoui commented 3 months ago

I kinda want to leave glib out of the equation, but it could buy so much for us: Language bindings.

I don't care about other languages. They can create bindings from the exported C API if they want to

sophie-h commented 2 months ago

I don't think it's a good idea to try to replace a glib API by not providing a glib API

ueno commented 2 months ago

I would suggest starting with the simple API, which should be sufficient for most applications and independent of glib, though supporting async operations might be tricky.

bilelmoussaoui commented 2 months ago

I don't think it's a good idea to try to replace a glib API by not providing a glib API

The problem is converting a Rust future to a gio::Task and then wrapping it in a C API would be just painful to maintain and very error-prone. But I leave that to whoever want to implement it to see what is easier to achieve