[rygel] core: Rename create_root_device() to create()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Subject: [rygel] core: Rename create_root_device() to create()
- Date: Mon, 1 Jun 2009 09:52:33 -0400 (EDT)
commit fb7d71dfc96edc2dfac66817c325a6ae8986c13c
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sun May 31 22:00:16 2009 +0300
core: Rename create_root_device() to create()
Rename RootDeviceFactory.create_root_device() to create().
---
src/rygel/rygel-main.vala | 2 +-
src/rygel/rygel-root-device-factory.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index 3a87bf7..585b939 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -69,7 +69,7 @@ public class Rygel.Main : Object {
private void on_plugin_loaded (PluginLoader plugin_loader,
Plugin plugin) {
try {
- var device = this.device_factory.create_root_device (plugin);
+ var device = this.device_factory.create (plugin);
device.available = plugin.available;
diff --git a/src/rygel/rygel-root-device-factory.vala b/src/rygel/rygel-root-device-factory.vala
index f2c6032..5898617 100644
--- a/src/rygel/rygel-root-device-factory.vala
+++ b/src/rygel/rygel-root-device-factory.vala
@@ -48,7 +48,7 @@ public class Rygel.RootDeviceFactory {
this.context = create_upnp_context ();
}
- public RootDevice create_root_device (Plugin plugin) throws GLib.Error {
+ public RootDevice create (Plugin plugin) throws GLib.Error {
if (!this.config.get_enabled (plugin.name)) {
throw new RootDeviceFactoryError.PLUGIN_DISABLED (
"Plugin disabled in user configuration.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]