[rygel] core: Hide internal API
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Hide internal API
- Date: Wed, 2 Sep 2009 13:38:05 +0000 (UTC)
commit 892e1ffa900f51c5bcc5a17d48fd084beba3b961
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Sep 2 14:04:01 2009 +0300
core: Hide internal API
src/rygel/rygel-main.vala | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index 4f9ba0d..9676875 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -37,7 +37,7 @@ public class Rygel.Main : Object {
private int exit_code;
- public Main () throws GLib.Error {
+ private Main () throws GLib.Error {
Environment.set_application_name (_(BuildConfig.PACKAGE_NAME));
this.config = MetaConfig.get_default ();
@@ -54,7 +54,12 @@ public class Rygel.Main : Object {
Utils.on_application_exit (this.application_exit_cb);
}
- public int run () {
+ public void exit (int exit_code) {
+ this.exit_code = exit_code;
+ this.main_loop.quit ();
+ }
+
+ private int run () {
this.plugin_loader.load_plugins ();
this.main_loop.run ();
@@ -62,11 +67,6 @@ public class Rygel.Main : Object {
return this.exit_code;
}
- public void exit (int exit_code) {
- this.exit_code = exit_code;
- this.main_loop.quit ();
- }
-
private void application_exit_cb () {
this.exit (0);
}
@@ -188,7 +188,7 @@ public class Rygel.Main : Object {
}
}
- public static int main (string[] args) {
+ private static int main (string[] args) {
Main main;
DBusService service;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]