summaryrefslogtreecommitdiff
path: root/conf.go
diff options
context:
space:
mode:
Diffstat (limited to 'conf.go')
-rw-r--r--conf.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf.go b/conf.go
index 6dcbe84..8e373c0 100644
--- a/conf.go
+++ b/conf.go
@@ -45,6 +45,7 @@ type getPasswordRequest struct {
type Config struct {
configfile string
RDXportEndpoint string
+ TempDir string
db_host string
db_user string
db_passwd string
@@ -142,7 +143,7 @@ func (self *Config) Cleanup() {
}
}
-func NewConfig(configfile, rdxport_endpoint *string) (conf *Config, err error) {
+func NewConfig(configfile, rdxport_endpoint, temp_dir *string) (conf *Config, err error) {
conf = new(Config)
conf.configfile = *configfile
if err = conf.read_config_file(); err != nil {
@@ -151,6 +152,7 @@ func NewConfig(configfile, rdxport_endpoint *string) (conf *Config, err error) {
conf.quit = make(chan bool)
conf.done = make(chan bool)
conf.RDXportEndpoint = *rdxport_endpoint
+ conf.TempDir = *temp_dir
conf.password_cache = make(map[string]string)
conf.getPasswordChan = make(chan getPasswordRequest)