New interface type representing a feature that can be added to a
authorDan Winship <danw@src.gnome.org>
Tue, 8 Apr 2008 22:05:14 +0000 (22:05 +0000)
committerDan Winship <danw@src.gnome.org>
Tue, 8 Apr 2008 22:05:14 +0000 (22:05 +0000)
commit700b6a340c5142255b2189fb78580ca2dc96a1ae
tree1541a0336852cc927f825dfd5b1d1933ac9d0009
parentf51262fbeef000816ba12a52a7967fd812eab0c6
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
ChangeLog
libsoup/Makefile.am
libsoup/soup-logger.c
libsoup/soup-logger.h
libsoup/soup-session-feature.c [new file with mode: 0644]
libsoup/soup-session-feature.h [new file with mode: 0644]
libsoup/soup-session.c
libsoup/soup-session.h
libsoup/soup-types.h
libsoup/soup.h
tests/test-utils.c