After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 603696 - soup-connection.h should be installed in include directory
soup-connection.h should be installed in include directory
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: Misc
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2009-12-03 13:13 UTC by Vincent Untz
Modified: 2009-12-03 14:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch (1016 bytes, patch)
2009-12-03 13:17 UTC, Vincent Untz
rejected Details | Review

Description Vincent Untz 2009-12-03 13:13:09 UTC
With bug 598163, a connection-created signal was added to SoupSession (note that it wasn't added to the soup-session.h, though; I'm not sure if it's to preserve the ABI or if it's an accident).

If you connect to this signal, you'll get a SoupConnection object, which therefore should make SoupConnection public API.

Note that the current situation breaks the gir-repository build:

/gnome/usr/bin/g-ir-compiler --includedir=. --includedir=.  Soup-2.4.gir -o Soup-2.4.typelib

** WARNING **: Entry 'SoupConnection' not found
aborting...
make: *** [Soup-2.4.typelib] Abandon
Comment 1 Vincent Untz 2009-12-03 13:17:58 UTC
Created attachment 149007 [details] [review]
Patch
Comment 2 Dan Winship 2009-12-03 14:16:32 UTC
Comment on attachment 149007 [details] [review]
Patch

SoupConnection is private (and eventually being replaced by something else as part of bug 591739). The goal of the 598163 patches was that soup-fly could treat the connection just as a GObject, using its properties and signals but not needing to know anything at compile time. I forgot that this would mess up introspection...

But we definitely don't want to make SoupConnection public. So the right fix is to make the SoupSession:connection-created parameter be G_TYPE_OBJECT instead of SOUP_TYPE_CONNECTION. Feel free to do that and commit the change.
Comment 3 Vincent Untz 2009-12-03 14:40:03 UTC
Yeah, I was wondering if it was right to do it this way. I pushed the fix you suggested, thanks!