xref: /openbmc/qemu/include/qemu/target-info-qapi.h (revision e452053097371880910c744a5d42ae2df058a4a7)
1 /*
2  * QEMU target info API (returning QAPI types)
3  *
4  *  Copyright (c) Linaro
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef QEMU_TARGET_INFO_EXTRA_H
10 #define QEMU_TARGET_INFO_EXTRA_H
11 
12 #include "qapi/qapi-types-common.h"
13 #include "qapi/qapi-types-machine.h"
14 
15 /**
16  * target_arch:
17  *
18  * Returns: QAPI SysEmuTarget enum (e.g. SYS_EMU_TARGET_X86_64).
19  */
20 SysEmuTarget target_arch(void);
21 
22 /**
23  * target_endian_mode:
24  *
25  * Returns: QAPI EndianMode enum (e.g. ENDIAN_MODE_LITTLE).
26  */
27 EndianMode target_endian_mode(void);
28 
29 #endif
30