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 584413 - It is not possible to forward declare SoupCookieJar in C++ code
It is not possible to forward declare SoupCookieJar in C++ code
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: API
unspecified
Other All
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks:
 
 
Reported: 2009-06-01 06:30 UTC by Holger Hans Peter Freyther
Modified: 2009-12-17 11:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Change the SoupCookieJar type to be similar to other parts of soup (1.62 KB, patch)
2009-06-01 06:33 UTC, Holger Hans Peter Freyther
committed Details | Review

Description Holger Hans Peter Freyther 2009-06-01 06:30:38 UTC
Please describe the problem:
For all of Gtk+/Cairo/FontConfig and most of soup it is possible to write typedef struct _SoupFooBar SoupFooBar; for forward declaration but not with the SoupCookieJar.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Holger Hans Peter Freyther 2009-06-01 06:33:18 UTC
Created attachment 135702 [details] [review]
Change the SoupCookieJar type to be similar to other parts of soup

This is moving the type into soup-types.h and will only create a struct _SoupCookieJar. This will allow to have a forward declaration of SoupCookieJar  in C++ (e.g. WebKit/GTK+) but it might be too late to do this change as it might break existing code...(which is unlikely as it should operate on the SoupCookieJar type which continues to exist).
Comment 2 Dan Winship 2009-12-17 11:02:00 UTC
Someone at the hackfest is working on WebKit compile speed and we ran into
this again. So I committed the patch, although I'm not sure I recommend
trying to forward-declare libsoup's types this way...