[gupnp] Allow actions without arguments
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gupnp] Allow actions without arguments
- Date: Fri, 18 Jul 2014 19:13:55 +0000 (UTC)
commit 1105badf8bb7dfaa468f7fe0f55e9076a95d3f68
Author: Etienne Peron <etienne peron parrot com>
Date: Mon Jun 30 11:28:02 2014 +0200
Allow actions without arguments
https://bugzilla.gnome.org/show_bug.cgi?id=733241
libgupnp/gupnp-service-introspection.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/libgupnp/gupnp-service-introspection.c b/libgupnp/gupnp-service-introspection.c
index 4453495..492e7de 100644
--- a/libgupnp/gupnp-service-introspection.c
+++ b/libgupnp/gupnp-service-introspection.c
@@ -595,7 +595,6 @@ get_actions (xmlNode *list_element)
action_node;
action_node = action_node->next) {
GUPnPServiceActionInfo *action_info;
- GList *arguments;
char *name;
if (strcmp ("action", (char *) action_node->name) != 0)
@@ -606,16 +605,9 @@ get_actions (xmlNode *list_element)
if (!name)
continue;
- arguments = get_action_arguments (action_node);
- if (!arguments) {
- g_free (name);
-
- continue;
- }
-
action_info = g_slice_new0 (GUPnPServiceActionInfo);
action_info->name = name;
- action_info->arguments = arguments;
+ action_info->arguments = get_action_arguments (action_node);
actions = g_list_append (actions, action_info);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]