[rygel] gst-renderer: Better names for variables & parameters
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] gst-renderer: Better names for variables & parameters
- Date: Fri, 23 Oct 2009 17:14:27 +0000 (UTC)
commit ff08a9c36471cbd06417fd306b30912dfdf69372
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun Oct 11 16:23:16 2009 +0300
gst-renderer: Better names for variables & parameters
.../gst-renderer/rygel-gst-av-transport.vala | 6 +++---
src/plugins/gst-renderer/rygel-gst-changelog.vala | 14 +++++++++-----
.../gst-renderer/rygel-gst-rendering-control.vala | 8 ++++----
3 files changed, 16 insertions(+), 12 deletions(-)
---
diff --git a/src/plugins/gst-renderer/rygel-gst-av-transport.vala b/src/plugins/gst-renderer/rygel-gst-av-transport.vala
index da2ad42..a59676a 100644
--- a/src/plugins/gst-renderer/rygel-gst-av-transport.vala
+++ b/src/plugins/gst-renderer/rygel-gst-av-transport.vala
@@ -140,7 +140,7 @@ public class Rygel.GstAVTransport : Service {
private void query_last_change_cb (GstAVTransport s,
string variable,
- ref Value val) {
+ ref Value value) {
// Send current state
GstChangeLog log = new GstChangeLog (null);
@@ -169,8 +169,8 @@ public class Rygel.GstAVTransport : Service {
log.log ("AVTransportURI", escaped);
log.log ("NextAVTransportURI", "NOT_IMPLEMENTED");
- val.init (typeof (string));
- val.set_string (log.finish ());
+ value.init (typeof (string));
+ value.set_string (log.finish ());
}
// Error out if InstanceID is not 0
diff --git a/src/plugins/gst-renderer/rygel-gst-changelog.vala b/src/plugins/gst-renderer/rygel-gst-changelog.vala
index 8c6affd..480e18b 100644
--- a/src/plugins/gst-renderer/rygel-gst-changelog.vala
+++ b/src/plugins/gst-renderer/rygel-gst-changelog.vala
@@ -65,15 +65,19 @@ public class Rygel.GstChangeLog : Object {
}
}
- public void log (string var, string val) {
- hash.set (var, "<%s val=\"%s\"/>".printf (var, val));
+ public void log (string variable, string value) {
+ hash.set (variable, "<%s val=\"%s\"/>".printf (variable, value));
ensure_timeout ();
}
- public void log_with_channel (string var, string val, string channel) {
- hash.set (var, "<%s val=\"%s\" channel=\"%s\"/>".printf (var, val,
- channel));
+ public void log_with_channel (string variable,
+ string value,
+ string channel) {
+ hash.set (variable,
+ "<%s val=\"%s\" channel=\"%s\"/>".printf (variable,
+ value,
+ channel));
ensure_timeout ();
}
diff --git a/src/plugins/gst-renderer/rygel-gst-rendering-control.vala b/src/plugins/gst-renderer/rygel-gst-rendering-control.vala
index 182af94..a627529 100644
--- a/src/plugins/gst-renderer/rygel-gst-rendering-control.vala
+++ b/src/plugins/gst-renderer/rygel-gst-rendering-control.vala
@@ -92,16 +92,16 @@ public class Rygel.GstRenderingControl : Service {
}
private void query_last_change_cb (GstRenderingControl s,
- string var,
- ref GLib.Value val) {
+ string variable,
+ ref GLib.Value value) {
// Send current state
var log = new GstChangeLog (null);
log.log_with_channel ("Mute", mute ? "1" : "0", "Master");
log.log_with_channel ("Volume", this.volume.to_string (), "Master");
- val.init (typeof (string));
- val.set_string (log.finish ());
+ value.init (typeof (string));
+ value.set_string (log.finish ());
}
// Error out if InstanceID is not 0
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]