-
Notifications
You must be signed in to change notification settings - Fork 42
doc: Expose all public headers #199
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
base: main
Are you sure you want to change the base?
doc: Expose all public headers #199
Conversation
34339b6
to
13d7f2e
Compare
It's a bit naff, to be honest. I don't understand why there isn't a single header include for libportal, just like every other C library that depends on GLib. Single header inclusion makes it possible to move type declarations around without breaking source compatibility. |
There is, If fixing this is going to require a libportal source-code change anyway, probably including all of the libportal core headers in (but not the GTK and Qt addons, those need to stay separate!) |
It sounds like you're implicitly reporting a bug. What is the bug? It's usually better to describe the bug than making maintainers reverse-engineer it from a proposed fix, particularly in projects that are limited by maintainer bandwidth. Presumably something like this:
|
True, sorry |
Demonstrate bug for flatpak/libportal#199
Yes, it's pretty much that. I also wrote a reproducer in this commit: TheEvilSkeleton/Settings-Not-Included@8eb0714 |
OK, thanks for the reproducer. I think that confirms my belief that a better fix for this would be to add Are there any other public headers that are not included in |
Not that I'm aware of, no |
Admittedly, it took me a good 30 minutes to understand why I couldn't use the instance methods for
Xdp.Settings
, which required me to dig through libportal's source code and realize that these methods aren't part oflibportal/portal.h
. I believe exposing all the public headers would help developers who want to use libportal.#include <libportal/portal.h>
(only) and try to call instance methods onXdpSettings
settings.h
wasn't includedI also wrote a small reproducer: TheEvilSkeleton/Settings-Not-Included@8eb0714