[gupnp] examples: Use newTargetValue



commit a0f8d6d7acc5c5a6f3d57a0ad75e7ec76b9c0134
Author: Jens Georg <mail jensge org>
Date:   Wed Apr 20 23:01:56 2016 +0200

    examples: Use newTargetValue
    
    Adapt to 2011 spec update
    
    Signed-off-by: Jens Georg <mail jensge org>
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764050

 examples/SwitchPower1.xml |    2 +-
 examples/light-client.c   |    2 +-
 examples/light-server.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/examples/SwitchPower1.xml b/examples/SwitchPower1.xml
index 0204b15..cba5cd1 100644
--- a/examples/SwitchPower1.xml
+++ b/examples/SwitchPower1.xml
@@ -9,7 +9,7 @@
       <name>SetTarget</name>
       <argumentList>
         <argument>
-          <name>NewTargetValue</name>
+          <name>newTargetValue</name>
           <relatedStateVariable>Target</relatedStateVariable>
           <direction>in</direction>
         </argument>
diff --git a/examples/light-client.c b/examples/light-client.c
index 9fa31fa..4ef7108 100644
--- a/examples/light-client.c
+++ b/examples/light-client.c
@@ -58,7 +58,7 @@ send_cmd (GUPnPServiceProxy *proxy)
   /* Set the target */
   if (!gupnp_service_proxy_send_action (proxy, "SetTarget", &error,
                                         /* IN args */
-                                        "NewTargetValue", G_TYPE_BOOLEAN, target, NULL,
+                                        "newTargetValue", G_TYPE_BOOLEAN, target, NULL,
                                         /* OUT args */
                                         NULL)) {
     goto error;
diff --git a/examples/light-server.c b/examples/light-server.c
index c68874e..3d5f589 100644
--- a/examples/light-server.c
+++ b/examples/light-server.c
@@ -51,7 +51,7 @@ set_target_cb (GUPnPService          *service,
 
   /* Get the new target value */
   gupnp_service_action_get (action,
-                            "NewTargetValue", G_TYPE_BOOLEAN, &target,
+                            "newTargetValue", G_TYPE_BOOLEAN, &target,
                             NULL);
 
   /* If the new target doesn't match the current status, change the status and


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]