summaryrefslogtreecommitdiff
path: root/libsoup/soup-session-feature.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Port individual docs to gi-docgenMaximiliano Sandoval R2022-04-131-25/+18
|
* Stop using emacs indent-tabs-modeCarlos Garcia Campos2021-03-181-1/+1
| | | | We prefer spaces now instead of tabs.
* docs: use Returns instead of Return value in documentationCarlos Garcia Campos2021-02-111-3/+3
|
* docs: remove since tags from documentationCarlos Garcia Campos2021-02-111-5/+0
|
* SoupSessionFeature: Change to private interfacePatrick Griffis2020-12-011-1/+1
|
* Remove session parameter from SoupSessionFeature::request-queued/unqueuedCarlos Garcia Campos2020-10-251-6/+2
| | | | | It's unused and features are already attached to a session with SoupSessionFeature::attach.
* Stop connecting to SoupSession::request-queued from SoupSessionFeatureCarlos Garcia Campos2020-10-251-70/+41
| | | | | | 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.
* Modernize GObject declarationsPatrick Griffis2020-09-191-11/+11
|
* Make SoupSocket private APIPatrick Griffis2020-09-191-3/+2
|
* SoupSessionFeature: Keep features alive until all messages have been unqueuedClaudio Saavedra2019-01-181-12/+14
| | | | | | | | | | | | | 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
* libsoup: Remove duplicate function declarationsPhilip Withnall2015-04-271-2/+0
| | | | | | | | 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
* Add SoupMessage::starting signalCarlos Garcia Campos2015-03-021-1/+1
| | | | | | | 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
* soup-session-feature: work around an old Eclipse bugDan Winship2015-01-051-0/+6
| | | | | | | | | | 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
* Fix building with MinGW compilerPaweł Forysiuk2012-07-261-4/+4
|
* Clean up includesDan Winship2012-07-131-0/+1
| | | | | | | | 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).
* Reorganize files to need fewer forward declarationsDan Winship2012-07-131-12/+9
| | | | | Also, prefix virtual method implementation names with the class name, to be consistent with other code.
* Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPEDan Winship2012-07-131-21/+3
|
* Lots of gtk-doc fixes (no code changes)Dan Winship2011-09-221-0/+3
|
* Add/update some "Since" flagsDan Winship2011-07-311-0/+38
|
* SoupSession: allow features to implement "subfeatures"Dan Winship2010-12-091-0/+39
| | | | | | 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.
* Add soup_message_disable_feature()Dan Winship2009-08-091-0/+10
| | | | | | | | | 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
* gtk-doc updates. In particular, document a bunch of convenience #defines,Dan Winship2009-03-081-0/+4
| | | | | | | * libsoup/*.c: gtk-doc updates. In particular, document a bunch of convenience #defines, and add "Since" tags where appropriate. svn path=/trunk/; revision=1246
* remove the dummy typedef for struct SoupSessionFeature that was neededDan Winship2009-01-211-1/+13
| | | | | | | | | | | | | | | | | | * 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
* doc fixupsDan Winship2008-10-011-16/+20
| | | | | | | | | | | | | | | | | * 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
* New interface type representing a feature that can be added to aDan Winship2008-04-081-0/+136
* 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