1 /** \file   archdep_get_runtime_info.h
2  * \brief   Get runtime information - header
3  *
4  * \author  Bas Wassink <b.wassink@ziggo.nl>
5  */
6 
7 /*
8  * This file is part of VICE, the Versatile Commodore Emulator.
9  * See README for copyright notice.
10  *
11  *  This program is free software; you can redistribute it and/or modify
12  *  it under the terms of the GNU General Public License as published by
13  *  the Free Software Foundation; either version 2 of the License, or
14  *  (at your option) any later version.
15  *
16  *  This program is distributed in the hope that it will be useful,
17  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *  GNU General Public License for more details.
20  *
21  *  You should have received a copy of the GNU General Public License
22  *  along with this program; if not, write to the Free Software
23  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
24  *  02111-1307  USA.
25  *
26  */
27 
28 #ifndef ARCHDEP_GET_RUNTIME_INFO_H
29 #define ARCHDEP_GET_RUNTIME_INFO_H
30 
31 #include <stdbool.h>
32 
33 /** \brief  Maximum size of a string in the archdep_runtime_info_t struct
34  */
35 #define ARCHDEP_RUNTIME_STRMAX  1024
36 
37 
38 /** \brief  Object to store runtime info
39  */
40 typedef struct archdep_runtime_info_s {
41     char os_name[ARCHDEP_RUNTIME_STRMAX];       /**< OS name */
42     char os_version[ARCHDEP_RUNTIME_STRMAX];    /**< OS version */
43     char os_release[ARCHDEP_RUNTIME_STRMAX];    /**< OS release */
44     char machine[ARCHDEP_RUNTIME_STRMAX];       /**< machine type */
45 } archdep_runtime_info_t;
46 
47 bool archdep_get_runtime_info(archdep_runtime_info_t *info);
48 
49 #endif
50 
51