Commit graph

29 commits

Author SHA1 Message Date
Stefan Persson
194ca57295 Fixed telldus-core segfault because of config file path not set in correct order 2013-09-12 11:54:16 +02:00
Micke Prag
2cb1a2ac97 Set the flag O_CLOEXEC on all file handles so they don't interferes with the execution of scripts. See #100 2012-12-04 17:28:49 +01:00
Micke Prag
fac773249c Rename SettingsConfusePath.h to config.h so it can be used by other configurable options 2012-11-22 13:10:10 +01:00
Micke Prag
1ea754da3d Bugfix, all the parameters for a device tried to be saved as non parameters 2012-06-20 17:12:30 +02:00
Micke Prag
6666dc0294 Do not use namespace using-directives according to Google style guidelines "build/namespaces" 2012-06-19 12:30:51 +02:00
Micke Prag
dc357ddeca Remove extra blank lines according to Google style guidelines "whitespace/blank_line" 2012-06-19 12:30:51 +02:00
Micke Prag
3a0cee353a Fix include header order according to Google style guidelines "build/include_order" 2012-06-19 12:30:50 +02:00
Micke Prag
75f21588e5 Should have a space between // and comment "whitespace/comments" 2012-06-19 12:30:50 +02:00
Micke Prag
e1608f94a8 { should almost always be at the end of the previous line, according to Google style guidelines "whitespace/braces" 2012-06-19 12:30:50 +02:00
Micke Prag
8d0228ced2 Add copyright message according to Google style guidelines "legal/copyright" 2012-06-19 12:30:50 +02:00
Micke Prag
5b5be387cd Include the directory when naming .h files. According to Google style guideline "build/include". 2012-06-19 12:30:49 +02:00
Micke Prag
4af5c5b658 Check that the option we set in Settings::setStringSetting() actually
exists before write when using libConfuse. Writing to a non existing
option makes telldusd SIGABRT. Closes #207.
2012-06-01 15:28:59 +02:00
Erik Johansson
104ce0fb23 Use configured paths when accessing settings files 2012-03-13 15:00:07 +01:00
Micke Prag
39265caa01 Refactor to reuse same functions in settings for both devices and controllers 2012-02-23 12:14:32 +01:00
Micke Prag
1ad79b663e Add function Settings::getNumberOfControllers() 2012-02-23 10:07:18 +01:00
Micke Prag
541e656fe1 Add controllers to our settings file 2012-02-23 10:07:18 +01:00
Stefan Persson
d7cce515ff Added setting for 'Not wait for confirmation from TellStick', see ticket 98, in Linux 2012-01-11 14:53:46 +01:00
Micke Prag
c4ef481232 Error codes are already negative 2011-03-03 15:36:46 +00:00
Micke Prag
8d15204aef Return real error messages in Settings that actually reports what went wrong 2011-03-03 15:27:45 +00:00
Micke Prag
42b078206f Make sure we can write the file before we try 2011-03-03 15:12:50 +00:00
Micke Prag
bea7b7bfd1 Added settings user and group to the config file under Linux 2011-03-03 15:01:42 +00:00
Micke Prag
0be5a12de0 Use real conversions in SettingsConfuse 2011-03-02 15:05:46 +00:00
Stefan Persson
d3fe7dc954 Minimal code cleanup 2010-10-29 07:37:17 +00:00
Micke Prag
b5fc49747f Fixed small error in the returned value from Settings::getDeviceStateValue() using libConfuse engine 2010-10-28 09:32:06 +00:00
Stefan Persson
10f86876b1 Implemented some locks in settings for linux 2010-10-27 12:19:36 +00:00
Micke Prag
29a759d6e0 Fixed compiler warnings 2010-10-25 15:29:19 +00:00
Stefan Persson
13253a0aa5 New wstring to string conversion method. Untested and only used in SendRawCommand so far (with todo's on other places where it should be used). 2010-10-18 08:42:49 +00:00
Micke Prag
0f8f381b94 Test the returned value from libconfuse. Else we risk a crash 2010-10-13 10:28:18 +00:00
Micke Prag
cf72154123 Added SettingsConfuse, untested 2010-10-12 07:20:17 +00:00