00001 /* 00002 * This file is part of testrunner-lite 00003 * 00004 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 00005 * 00006 * Contact: Sampo Saaristo <ext-sampo.2.saaristo@nokia.com> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU Lesser General Public License 00010 * version 2.1 as published by the Free Software Foundation. 00011 * 00012 * This program is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00020 * 02110-1301 USA 00021 * 00022 */ 00023 00024 #ifndef HWINFO_H 00025 #define HWINFO_H 00026 00027 /* ------------------------------------------------------------------------- */ 00028 /* INCLUDES */ 00029 #include "testrunnerlite.h" 00030 00031 /* ------------------------------------------------------------------------- */ 00032 /* CONSTANTS */ 00033 /* None */ 00034 00035 /* ------------------------------------------------------------------------- */ 00036 /* MACROS */ 00037 /* None */ 00038 00039 /* ------------------------------------------------------------------------- */ 00040 /* DATA TYPES */ 00041 /* ------------------------------------------------------------------------- */ 00042 typedef struct { 00043 unsigned char *product; 00044 unsigned char *hw_build; 00045 unsigned char *extra; 00046 } hw_info; 00047 /* ------------------------------------------------------------------------- */ 00048 /* FORWARD DECLARATIONS */ 00049 /* None */ 00050 00051 /* ------------------------------------------------------------------------- */ 00052 /* STRUCTURES */ 00053 /* None */ 00054 00055 /* ------------------------------------------------------------------------- */ 00056 /* FUNCTION PROTOTYPES */ 00057 /* ------------------------------------------------------------------------- */ 00058 int read_hwinfo (hw_info *); 00059 /* ------------------------------------------------------------------------- */ 00060 void print_hwinfo (hw_info *); 00061 /* ------------------------------------------------------------------------- */ 00062 void clean_hwinfo (hw_info *); 00063 /* ------------------------------------------------------------------------- */ 00064 #endif /* HWINFO_H */ 00065 /* End of file */