ekiga r7574 - trunk/lib/engine/framework
- From: jpuydt svn gnome org
- To: svn-commits-list gnome org
- Subject: ekiga r7574 - trunk/lib/engine/framework
- Date: Sun, 18 Jan 2009 16:49:11 +0000 (UTC)
Author: jpuydt
Date: Sun Jan 18 16:49:11 2009
New Revision: 7574
URL: http://svn.gnome.org/viewvc/ekiga?rev=7574&view=rev
Log:
Added preliminary code to disable the initialization of some subsystem at runtime
Modified:
trunk/lib/engine/framework/kickstart.cpp
Modified: trunk/lib/engine/framework/kickstart.cpp
==============================================================================
--- trunk/lib/engine/framework/kickstart.cpp (original)
+++ trunk/lib/engine/framework/kickstart.cpp Sun Jan 18 16:49:11 2009
@@ -37,6 +37,8 @@
#define KICKSTART_DEBUG 1
+#include <algorithm>
+
#if KICKSTART_DEBUG
#include <iostream>
#endif
@@ -83,8 +85,15 @@
int* argc,
char** argv[])
{
+ std::list<std::string> disabled;
bool went_on;
+// disabled.push_back ("AVAHI");
+// disabled.push_back ("AVAHIPUB");
+// disabled.push_back ("EVOLUTION");
+// disabled.push_back ("LDAP");
+// disabled.push_back ("HISTORY");
+
// this makes sure we loop only if something needs to be done
went_on = !(blanks.empty () && partials.empty ());
@@ -106,7 +115,17 @@
iter != temp.end ();
++iter) {
- bool result = (*iter)->try_initialize_more (core, argc, argv);
+ bool result = false;
+ if (std::find (disabled.begin (),
+ disabled.end (), (*iter)->get_name ())
+ == disabled.end ()) {
+
+ result = (*iter)->try_initialize_more (core, argc, argv);
+ } else {
+
+ std::cout << "KickStart(kick): " << (*iter)->get_name ()
+ << " is disabled" << std::endl;
+ }
if (result) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]