~ubuntu-branches/ubuntu/karmic/hddtemp/karmic

« back to all changes in this revision

Viewing changes to src/db.h

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2004-05-04 01:48:26 UTC
  • Revision ID: james.westby@ubuntu.com-20040504014826-px26mjroiu8gos6c
Tags: upstream-0.3-beta11
ImportĀ upstreamĀ versionĀ 0.3-beta11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2002  Emmanuel VARAGNAT <coredump@free.fr>
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
17
 *
 
18
 */
 
19
 
 
20
#ifndef __DB_H__
 
21
#define __DB_H__
 
22
 
 
23
#ifndef DEFAULT_DATABASE_PATH
 
24
#define DEFAULT_DATABASE_PATH  "/usr/share/misc/hddtemp.db"
 
25
#endif
 
26
 
 
27
struct harddrive_entry {
 
28
  const char             *regexp;
 
29
  short int              attribute_id;
 
30
  const char             *description;
 
31
  unsigned char          unit;
 
32
  struct harddrive_entry *next;
 
33
};
 
34
 
 
35
extern struct harddrive_entry   *supported_drives;
 
36
 
 
37
struct harddrive_entry *is_a_supported_drive(const char* model);
 
38
void load_database(const char* filename);
 
39
 
 
40
#endif