[libsoup/wip/withprivate: 12/26] body-output-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: 12/26] body-output-stream: port to the new private api
- Date: Thu, 10 Nov 2016 13:22:19 +0000 (UTC)
commit c96b1103693baac2573c8c8c49a56edb0860bb8f
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Nov 7 10:43:55 2016 +0100
body-output-stream: port to the new private api
https://bugzilla.gnome.org/show_bug.cgi?id=774189
libsoup/soup-body-output-stream.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/libsoup/soup-body-output-stream.c b/libsoup/soup-body-output-stream.c
index 03353ef..314d7ee 100644
--- a/libsoup/soup-body-output-stream.c
+++ b/libsoup/soup-body-output-stream.c
@@ -43,6 +43,7 @@ enum {
static void soup_body_output_stream_pollable_init (GPollableOutputStreamInterface *pollable_interface,
gpointer interface_data);
G_DEFINE_TYPE_WITH_CODE (SoupBodyOutputStream, soup_body_output_stream, G_TYPE_FILTER_OUTPUT_STREAM,
+ G_ADD_PRIVATE (SoupBodyOutputStream)
G_IMPLEMENT_INTERFACE (G_TYPE_POLLABLE_OUTPUT_STREAM,
soup_body_output_stream_pollable_init))
@@ -50,9 +51,7 @@ G_DEFINE_TYPE_WITH_CODE (SoupBodyOutputStream, soup_body_output_stream, G_TYPE_F
static void
soup_body_output_stream_init (SoupBodyOutputStream *stream)
{
- stream->priv = G_TYPE_INSTANCE_GET_PRIVATE (stream,
- SOUP_TYPE_BODY_OUTPUT_STREAM,
- SoupBodyOutputStreamPrivate);
+ stream->priv = soup_body_output_stream_get_instance_private (stream);
}
static void
@@ -297,8 +296,6 @@ soup_body_output_stream_class_init (SoupBodyOutputStreamClass *stream_class)
GObjectClass *object_class = G_OBJECT_CLASS (stream_class);
GOutputStreamClass *output_stream_class = G_OUTPUT_STREAM_CLASS (stream_class);
- g_type_class_add_private (stream_class, sizeof (SoupBodyOutputStreamPrivate));
-
object_class->constructed = soup_body_output_stream_constructed;
object_class->set_property = soup_body_output_stream_set_property;
object_class->get_property = soup_body_output_stream_get_property;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]