GNOME Bugzilla – Bug 584413
It is not possible to forward declare SoupCookieJar in C++ code
Last modified: 2009-12-17 11:02:03 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:
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).
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...