~benklop/+junk/lcdproc

« back to all changes in this revision

Viewing changes to shared/configfile.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Yoder (Launchpad)
  • Date: 2009-10-11 18:21:07 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20091011182107-twnkyhv1f63lzq3o
Tags: 0.5.3-0ubuntu1
* New upstream version 0.5.3 (LP: #432669)
* Merge source patches from 0.5.2-3 
  - LCDd.conf: Change driver path
  - clients/lcdproc/machine_Linux.c: Change ifdef
* Add clients/examples/lcdident.pl to debian files 
* Updated debian/rules:
  - Cleaned up whitespace
  - Changed config.guess/config.sub lines 
* Added a delay to server/drivers/imonlcd.c for slower models
* Added dependency on autotools-dev to fix launchpad build issue 

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
short config_get_bool(const char *sectionname, const char *keyname,
46
46
                int skip, short default_value);
47
47
 
 
48
/* Tries to interpret a value in the config file as a boolean.
 
49
 * 0, false, off, no, n = 0
 
50
 * 1, true, on, yes, y = 1
 
51
 * 2, or the given 3rd name = 2
 
52
 * If the key is not found or cannot be interpreted, the given default value is
 
53
 * returned.
 
54
 * The skip value can be used to iterate over multiple values with the same
 
55
 * key. Should be 0 to get the first one, 1 for the second etc. and -1 for the
 
56
 * last.
 
57
 */
 
58
short config_get_tristate(const char *sectionname, const char *keyname,
 
59
                int skip, const char *name3rd, short default_value);
 
60
 
48
61
/* Tries to interpret a value in the config file as an integer.*/
49
62
long int config_get_int(const char *sectionname, const char *keyname,
50
63
                int skip, long int default_value);