Initial commit.
[qa-tools:testrunner-lite.git] / src / hwinfo.h
1 /*
2  * This file is part of testrunner-lite
3  *
4  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5  *
6  * Contact: Sampo Saaristo <ext-sampo.2.saaristo@nokia.com>
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License
10  * version 2.1 as published by the Free Software Foundation.
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  *
22  */
23
24 #ifndef HWINFO_H
25 #define HWINFO_H
26
27 /* ------------------------------------------------------------------------- */
28 /* INCLUDES */
29 #include "testrunnerlite.h"
30
31 /* ------------------------------------------------------------------------- */
32 /* CONSTANTS */
33 /* None */
34
35 /* ------------------------------------------------------------------------- */
36 /* MACROS */
37 /* None */
38
39 /* ------------------------------------------------------------------------- */
40 /* DATA TYPES */
41 /* ------------------------------------------------------------------------- */
42 typedef struct {
43         unsigned char *product; 
44         unsigned char *hw_build;
45         unsigned char *nolo;
46         unsigned char *boot_mode;
47         unsigned char *production_sn;
48         unsigned char *product_code; 
49         unsigned char *basic_product_code;
50 } hw_info;
51 /* ------------------------------------------------------------------------- */
52 /* FORWARD DECLARATIONS */
53 /* None */
54
55 /* ------------------------------------------------------------------------- */
56 /* STRUCTURES */
57 /* None */
58
59 /* ------------------------------------------------------------------------- */
60 /* FUNCTION PROTOTYPES */
61 /* ------------------------------------------------------------------------- */
62 int read_hwinfo (hw_info *);
63 /* ------------------------------------------------------------------------- */
64 void print_hwinfo (hw_info *);
65 /* ------------------------------------------------------------------------- */
66 void clean_hwinfo (hw_info *);
67 /* ------------------------------------------------------------------------- */
68 #endif                          /* HWINFO_H */
69 /* End of file */