summaryrefslogtreecommitdiff
path: root/libsoup/soup-request-data.c
diff options
context:
space:
mode:
authorIgnacio Casal Quinteiro <icq@gnome.org>2016-12-01 08:43:32 +0100
committerIgnacio Casal Quinteiro <icq@gnome.org>2016-12-03 21:56:33 +0100
commitcb2f7854ccb4069197898b693ff82c29cc69a5ef (patch)
tree1e91af654fce067dde056fe6386a208f4c9a96b4 /libsoup/soup-request-data.c
parentefcb377dde512f453ee90e31682540678f37fdae (diff)
downloadlibsoup-cb2f7854ccb4069197898b693ff82c29cc69a5ef.tar.gz
Port more classes to the new private api
Now only SoupMessage is missing since the private from this class is accessed from other classes.
Diffstat (limited to 'libsoup/soup-request-data.c')
-rw-r--r--libsoup/soup-request-data.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libsoup/soup-request-data.c b/libsoup/soup-request-data.c
index 1b441319..3e075073 100644
--- a/libsoup/soup-request-data.c
+++ b/libsoup/soup-request-data.c
@@ -38,17 +38,18 @@
* #SoupRequestData implements #SoupRequest for "data" URIs.
*/
-G_DEFINE_TYPE (SoupRequestData, soup_request_data, SOUP_TYPE_REQUEST)
struct _SoupRequestDataPrivate {
gsize content_length;
char *content_type;
};
+G_DEFINE_TYPE_WITH_PRIVATE (SoupRequestData, soup_request_data, SOUP_TYPE_REQUEST)
+
static void
soup_request_data_init (SoupRequestData *data)
{
- data->priv = G_TYPE_INSTANCE_GET_PRIVATE (data, SOUP_TYPE_REQUEST_DATA, SoupRequestDataPrivate);
+ data->priv = soup_request_data_get_instance_private (data);
}
static void
@@ -151,8 +152,6 @@ soup_request_data_class_init (SoupRequestDataClass *request_data_class)
SoupRequestClass *request_class =
SOUP_REQUEST_CLASS (request_data_class);
- g_type_class_add_private (request_data_class, sizeof (SoupRequestDataPrivate));
-
request_class->schemes = data_schemes;
object_class->finalize = soup_request_data_finalize;