Commit fd46c31c authored by Zeeshan Ali (Khattak)'s avatar Zeeshan Ali (Khattak)
Browse files

Don't use deprecated APIs

Don't use deprecated glib, gobject and libsoup APIs.
parent 07b825b1
......@@ -322,7 +322,6 @@ gupnp_context_manager_class_init (GUPnPContextManagerClass *klass)
GUPNP_TYPE_CONTEXT_MANAGER,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_PRIVATE |
G_PARAM_STATIC_NAME |
G_PARAM_STATIC_NICK |
G_PARAM_STATIC_BLURB));
......
......@@ -154,7 +154,8 @@ gupnp_context_constructor (GType type,
if (g_getenv ("GUPNP_DEBUG")) {
SoupLogger *logger;
logger = soup_logger_new (SOUP_LOGGER_LOG_BODY, -1);
soup_logger_attach (logger, context->priv->session);
soup_session_add_feature (context->priv->session,
SOUP_SESSION_FEATURE (logger));
}
return object;
......@@ -789,7 +790,7 @@ host_path_handler (SoupServer *server,
(g_mapped_file_get_contents (mapped_file) + offset,
length,
mapped_file,
(GDestroyNotify) g_mapped_file_free);
(GDestroyNotify) g_mapped_file_unref);
soup_message_body_append_buffer (msg->response_body, buffer);
......
......@@ -125,7 +125,9 @@ gupnp_service_get_session (GUPnPService *service)
if (g_getenv ("GUPNP_DEBUG")) {
SoupLogger *logger;
logger = soup_logger_new (SOUP_LOGGER_LOG_BODY, -1);
soup_logger_attach (logger, service->priv->session);
soup_session_add_feature (
service->priv->session,
SOUP_SESSION_FEATURE (logger));
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment