aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/General/Configuration/UserConfig.cs
diff options
context:
space:
mode:
authorMW2007-07-21 15:50:29 +0000
committerMW2007-07-21 15:50:29 +0000
commitb3cef2fc2a02510c550843fe080ff2d77d2fb743 (patch)
tree92fd4b9d0cd4a2d4aeba4cca21117807b1a3763f /OpenSim/Framework/General/Configuration/UserConfig.cs
parent* Issue#206 - Casting of a LLUUID from XMLRPC hashtable causes an error. (Tha... (diff)
downloadopensim-SC-b3cef2fc2a02510c550843fe080ff2d77d2fb743.zip
opensim-SC-b3cef2fc2a02510c550843fe080ff2d77d2fb743.tar.gz
opensim-SC-b3cef2fc2a02510c550843fe080ff2d77d2fb743.tar.bz2
opensim-SC-b3cef2fc2a02510c550843fe080ff2d77d2fb743.tar.xz
Re-added the ability to set the database provider (dll) in the config file for the userserver and gridserver.
Diffstat (limited to 'OpenSim/Framework/General/Configuration/UserConfig.cs')
-rw-r--r--OpenSim/Framework/General/Configuration/UserConfig.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Framework/General/Configuration/UserConfig.cs b/OpenSim/Framework/General/Configuration/UserConfig.cs
index a027ffc..2183491 100644
--- a/OpenSim/Framework/General/Configuration/UserConfig.cs
+++ b/OpenSim/Framework/General/Configuration/UserConfig.cs
@@ -14,6 +14,8 @@ namespace OpenSim.Framework.Configuration
14 public string GridSendKey = ""; 14 public string GridSendKey = "";
15 public string GridRecvKey = ""; 15 public string GridRecvKey = "";
16 16
17 public string DatabaseProvider = "";
18
17 private ConfigurationMember configMember; 19 private ConfigurationMember configMember;
18 20
19 public UserConfig(string description, string filename) 21 public UserConfig(string description, string filename)
@@ -29,7 +31,7 @@ namespace OpenSim.Framework.Configuration
29 configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false); 31 configMember.addConfigurationOption("default_grid_server", ConfigurationOption.ConfigurationTypes.TYPE_STRING_NOT_EMPTY, "Default Grid Server URI", "http://127.0.0.1:8001/", false);
30 configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false); 32 configMember.addConfigurationOption("grid_send_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to send to grid server", "null", false);
31 configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false); 33 configMember.addConfigurationOption("grid_recv_key", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "Key to expect from grid server", "null", false);
32 34 configMember.addConfigurationOption("database_provider", ConfigurationOption.ConfigurationTypes.TYPE_STRING, "DLL for database provider", "OpenSim.Framework.Data.MySQL.dll", false);
33 35
34 } 36 }
35 37
@@ -49,6 +51,9 @@ namespace OpenSim.Framework.Configuration
49 case "grid_recv_key": 51 case "grid_recv_key":
50 this.GridRecvKey = (string)configuration_result; 52 this.GridRecvKey = (string)configuration_result;
51 break; 53 break;
54 case "database_provider":
55 this.DatabaseProvider = (string)configuration_result;
56 break;
52 } 57 }
53 58
54 return true; 59 return true;