diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-11-07 10:13:44 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2016-11-14 17:26:12 +0100 |
commit | bd93c273ea787df4f3fe03c9cf6c8e53d8fc5fc9 (patch) | |
tree | d006cc1bda799eee7c760033b55a37a2ba43d21e /libsoup/soup-client-input-stream.c | |
parent | 0868f5ff7423c8eff6ffb22da76806b1337696cf (diff) | |
download | libsoup-bd93c273ea787df4f3fe03c9cf6c8e53d8fc5fc9.tar.gz |
Port some of the classes to the new glib private api
We are already depending on the a newly enough glib so
we are now allowed to clean up a bit and use the new private
api.
https://bugzilla.gnome.org/show_bug.cgi?id=774189
Diffstat (limited to 'libsoup/soup-client-input-stream.c')
-rw-r--r-- | libsoup/soup-client-input-stream.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libsoup/soup-client-input-stream.c b/libsoup/soup-client-input-stream.c index 17983069..c305dd84 100644 --- a/libsoup/soup-client-input-stream.c +++ b/libsoup/soup-client-input-stream.c @@ -34,15 +34,14 @@ static GPollableInputStreamInterface *soup_client_input_stream_parent_pollable_i static void soup_client_input_stream_pollable_init (GPollableInputStreamInterface *pollable_interface, gpointer interface_data); G_DEFINE_TYPE_WITH_CODE (SoupClientInputStream, soup_client_input_stream, SOUP_TYPE_FILTER_INPUT_STREAM, + G_ADD_PRIVATE (SoupClientInputStream) G_IMPLEMENT_INTERFACE (G_TYPE_POLLABLE_INPUT_STREAM, soup_client_input_stream_pollable_init)) static void soup_client_input_stream_init (SoupClientInputStream *stream) { - stream->priv = G_TYPE_INSTANCE_GET_PRIVATE (stream, - SOUP_TYPE_CLIENT_INPUT_STREAM, - SoupClientInputStreamPrivate); + stream->priv = soup_client_input_stream_get_instance_private (stream); } static void @@ -215,8 +214,6 @@ soup_client_input_stream_class_init (SoupClientInputStreamClass *stream_class) GObjectClass *object_class = G_OBJECT_CLASS (stream_class); GInputStreamClass *input_stream_class = G_INPUT_STREAM_CLASS (stream_class); - g_type_class_add_private (stream_class, sizeof (SoupClientInputStreamPrivate)); - object_class->finalize = soup_client_input_stream_finalize; object_class->set_property = soup_client_input_stream_set_property; object_class->get_property = soup_client_input_stream_get_property; |