Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DLNA-RUI
gupnp
Commits
fd46c31c
Commit
fd46c31c
authored
Aug 24, 2010
by
Zeeshan Ali (Khattak)
Browse files
Don't use deprecated APIs
Don't use deprecated glib, gobject and libsoup APIs.
parent
07b825b1
Changes
3
Hide whitespace changes
Inline
Side-by-side
libgupnp/gupnp-context-manager.c
View file @
fd46c31c
...
...
@@ -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
));
...
...
libgupnp/gupnp-context.c
View file @
fd46c31c
...
...
@@ -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_
f
re
e
);
(
GDestroyNotify
)
g_mapped_file_
un
re
f
);
soup_message_body_append_buffer
(
msg
->
response_body
,
buffer
);
...
...
libgupnp/gupnp-service.c
View file @
fd46c31c
...
...
@@ -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
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment