~ubuntu-branches/debian/sid/gsmartcontrol/sid

« back to all changes in this revision

Viewing changes to src/gsc_settings.h

  • Committer: Package Import Robot
  • Author(s): Giuseppe Iuculano
  • Date: 2013-05-31 11:41:52 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130531114152-5ljhkuswwpt4kdwo
Tags: 0.8.7-1
* [314881d] Updated debian/watch
* [18ebada] Imported Upstream version 0.8.7
* [c2a1f1b] debian/rules: Provide build-arch and build-indep
* [d3036a4] Enabled Hardening Options
* [2edfb87] Refreshed patches and removed patches apllied upstream
* [ac3b953] Bump to standard versions 3.9.4
* [292c276] Remove quilt from depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**************************************************************************
2
2
 Copyright:
3
 
      (C) 2008 - 2011  Alexander Shaduri <ashaduri 'at' gmail.com>
 
3
      (C) 2008 - 2012  Alexander Shaduri <ashaduri 'at' gmail.com>
4
4
 License: See LICENSE_gsmartcontrol.txt
5
5
***************************************************************************/
 
6
/// \file
 
7
/// \author Alexander Shaduri
 
8
/// \ingroup gsc
 
9
/// \weakgroup gsc
 
10
/// @{
6
11
 
7
12
#ifndef GSC_SETTINGS_H
8
13
#define GSC_SETTINGS_H
12
17
 
13
18
 
14
19
 
15
 
// Initialize ALL default settings here.
16
 
 
17
 
// Absolute paths go to root node, relative ones go to /config and /default.
18
 
 
19
 
// Note: There must be no degradation if /config is removed entirely
20
 
// during runtime. /default must provide every path which /config could
21
 
// have held.
22
 
// ALL runtime (that is, non-config-file-writable) settings go to /runtime.
23
 
 
24
 
 
 
20
/// Initializes ALL default settings.
 
21
/// Absolute paths go to root node, relative ones go to /config and /default.
 
22
/// Note: There must be no degradation if /config is removed entirely
 
23
/// during runtime. /default must provide every path which /config could
 
24
/// have held.
 
25
/// ALL runtime (that is, non-config-file-writable) settings go to /runtime.
25
26
inline void init_default_settings()
26
27
{
27
28
        // Populate /default
50
51
        rconfig::set_default_data("system/linux_proc_partitions_path", "/proc/partitions");  // file in linux /proc/partitions format
51
52
        rconfig::set_default_data("system/linux_proc_devices_path", "/proc/devices");  // file in linux /proc/devices format
52
53
        rconfig::set_default_data("system/linux_proc_scsi_scsi_path", "/proc/scsi/scsi");  // file in linux /proc/scsi/scsi format
 
54
        rconfig::set_default_data("system/linux_proc_scsi_sg_devices_path", "/proc/scsi/sg/devices");  // file in linux /proc/scsi/sg/devices format
53
55
        rconfig::set_default_data("system/linux_max_scan_ports", int32_t(23));  // maximum number of RAID ports to scan if no other method is available
54
56
        rconfig::set_default_data("system/solaris_dev_path", "/dev/rdsk");  // path to /dev/rdsk for solaris.
55
57
        rconfig::set_default_data("system/unix_sdev_path", "/dev");  // path to /dev. used by other unices
61
63
 
62
64
        rconfig::set_default_data("gui/smartctl_output_filename_format", "{model}_{serial}_{date}.txt");  // when suggesting filename
63
65
 
 
66
        rconfig::set_default_data("gui/icons_show_device_name", false);  // text under icons
 
67
        rconfig::set_default_data("gui/icons_show_serial_number", false);  // text under icons
 
68
 
64
69
 
65
70
        // Populate /runtime too, just in case. The values don't really matter.
66
71
 
79
84
 
80
85
 
81
86
#endif
 
87
 
 
88
/// @}