diff options
author | Dan Winship <danw@src.gnome.org> | 2008-04-08 22:05:14 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2008-04-08 22:05:14 +0000 |
commit | 700b6a340c5142255b2189fb78580ca2dc96a1ae (patch) | |
tree | 1541a0336852cc927f825dfd5b1d1933ac9d0009 /tests/test-utils.c | |
parent | f51262fbeef000816ba12a52a7967fd812eab0c6 (diff) | |
download | libsoup-700b6a340c5142255b2189fb78580ca2dc96a1ae.tar.gz libsoup-700b6a340c5142255b2189fb78580ca2dc96a1ae.tar.bz2 libsoup-700b6a340c5142255b2189fb78580ca2dc96a1ae.zip |
New interface type representing a feature that can be added to a
* 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
Diffstat (limited to 'tests/test-utils.c')
-rw-r--r-- | tests/test-utils.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test-utils.c b/tests/test-utils.c index faab14ab..2e501e5f 100644 --- a/tests/test-utils.c +++ b/tests/test-utils.c @@ -3,9 +3,7 @@ #endif #include "test-utils.h" -#include "libsoup/soup-logger.h" -#include "libsoup/soup-misc.h" -#include "libsoup/soup-server.h" +#include "libsoup/soup.h" #include <signal.h> #include <stdio.h> @@ -222,7 +220,7 @@ soup_test_session_new (GType type, ...) } if (logger) - soup_logger_attach (logger, session); + soup_session_add_feature (session, SOUP_SESSION_FEATURE (logger)); return session; } |