| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
We prefer spaces now instead of tabs.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
It's unused and features are already attached to a session with
SoupSessionFeature::attach.
|
|
|
|
|
|
| |
SoupSession now notifies all the features about message being queued and
unqueued. This way features implementing attach don't need to chain up,
since there's no longer a default implementation for attach and detach.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Features can be removed at any point from a session, and if they are
removed while there are messages in the queue, it is possible for
callbacks connected to the message signals to be called after the feature
has been disposed. Adding a reference in request_queue()
and removing it in request_enqueue() ensures that the feature will not
be disposed too early.
Add a test case for the SoupCookieJar feature that reproduces this crash.
Fixes #130
|
|
|
|
|
|
|
|
| |
The *_default_init() function is declared by G_DEFINE_INTERFACE, so
doesn’t have to be declared separately. This eliminates some compiler
warnings.
https://bugzilla.gnome.org/show_bug.cgi?id=748514
|
|
|
|
|
|
|
| |
It's similar to the SoupSession::request-started signal, but it's also
emitted for cached resources.
https://bugzilla.gnome.org/show_bug.cgi?id=731153
|
|
|
|
|
|
|
|
|
|
| |
Add g_return_if_fail() checks to soup_session_feature_attach() and
soup_session_feature_detach(), to work around a bug in Eclipse that
was fixed a long time ago
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=404776) but which
people keep reporting against libsoup.
https://bugzilla.gnome.org/show_bug.cgi?id=710242
|
| |
|
|
|
|
|
|
|
|
| |
Especially, include soup.h rather than individually including a bunch
of other public soup-*.h files.
Remove unnecessary system includes (many are leftovers from code that
has moved down into glib).
|
|
|
|
|
| |
Also, prefix virtual method implementation names with the class name,
to be consistent with other code.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Let soup_session_add_feature_by_type() (and remove()) add and remove
"features" from existing features. Eg, to add/remove auth types or
Content-Encodings.
|
|
|
|
|
|
|
|
|
| |
This allows you to disable specific SoupSessionFeatures for particular
messages.
Also update tests/sniffing-test to test it out.
http://bugzilla.gnome.org/show_bug.cgi?id=574773
|
|
|
|
|
|
|
| |
* libsoup/*.c: gtk-doc updates. In particular, document a bunch of
convenience #defines, and add "Since" tags where appropriate.
svn path=/trunk/; revision=1246
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-session-feature.h: remove the dummy typedef for
struct SoupSessionFeature that was needed because we weren't
scanning soup-types.h. Fixes the build with non-GNU compilers.
* libsoup/soup-session-feature.c: document
SoupSessionFeatureInterface
* docs/reference/Makefile.am (IGNORE_HFILES): oops, don't ignore
soup-types.h
* docs/reference/libsoup-2.4-docs.sgml:
* docs/reference/libsoup-2.4-sections.txt: Split
SoupSessionFeature into its own file.
svn path=/trunk/; revision=1231
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-cookie-jar.c:
* libsoup/soup-cookie.c:
* libsoup/soup-cookie.h:
* libsoup/soup-headers.c:
* libsoup/soup-logger.c:
* libsoup/soup-session-feature.c:
* libsoup/soup-session-feature.h:
* libsoup/soup-session.c: doc fixups
* docs/reference/libsoup-2.4-docs.sgml:
* docs/reference/libsoup-2.4-sections.txt:
* docs/reference/libsoup-2.4.types: Add missing bits
svn path=/trunk/; revision=1170
|
|
* libsoup/soup-session-feature.c: New interface type representing
a feature that can be added to a SoupSession.
* libsoup/soup-session.c (soup_session_add_feature): Add a feature
to the session by prepending it to priv->features and calling
soup_session_feature_attach() on it.
(soup_session_add_feature_by_type): Add a feature to the session
by creating an object of the indicated type and passing it to
soup_session_add_feature.
(soup_session_remove_feature)
(soup_session_remove_feature_by_type): Likewise, remove features
(soup_session_class_init, set_property): register/handle
construct-time feature adding/removing properties
(dispose): cleanup features
* libsoup/soup-logger.c: port to SoupSessionFeature
* tests/test-utils.c (soup_test_session_new): Use
soup_session_add_feature rather than soup_logger_attach.
svn path=/trunk/; revision=1133
|