[libsoup/wip/withprivate: 24/26] filter-input-stream: port to the new private api
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/withprivate: 24/26] filter-input-stream: port to the new private api
- Date: Mon, 7 Nov 2016 15:08:08 +0000 (UTC)
commit b4b9abd0074e51239dd6f78be82323eff7888e68
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Nov 7 11:21:05 2016 +0100
filter-input-stream: port to the new private api
libsoup/soup-filter-input-stream.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libsoup/soup-filter-input-stream.c b/libsoup/soup-filter-input-stream.c
index 8067b88..cde4d12 100644
--- a/libsoup/soup-filter-input-stream.c
+++ b/libsoup/soup-filter-input-stream.c
@@ -29,15 +29,14 @@ struct _SoupFilterInputStreamPrivate {
static void soup_filter_input_stream_pollable_init (GPollableInputStreamInterface *pollable_interface,
gpointer interface_data);
G_DEFINE_TYPE_WITH_CODE (SoupFilterInputStream, soup_filter_input_stream, G_TYPE_FILTER_INPUT_STREAM,
+ G_ADD_PRIVATE (SoupFilterInputStream)
G_IMPLEMENT_INTERFACE (G_TYPE_POLLABLE_INPUT_STREAM,
soup_filter_input_stream_pollable_init))
static void
soup_filter_input_stream_init (SoupFilterInputStream *stream)
{
- stream->priv = G_TYPE_INSTANCE_GET_PRIVATE (stream,
- SOUP_TYPE_FILTER_INPUT_STREAM,
- SoupFilterInputStreamPrivate);
+ stream->priv = soup_filter_input_stream_get_instance_private (stream);
}
static void
@@ -149,8 +148,6 @@ soup_filter_input_stream_class_init (SoupFilterInputStreamClass *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 (SoupFilterInputStreamPrivate));
-
object_class->finalize = soup_filter_input_stream_finalize;
input_stream_class->read_fn = soup_filter_input_stream_read_fn;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]