intel: common: make intel utils available from C++
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
This commit is contained in:
@@ -30,6 +30,10 @@
|
|||||||
#include "common/gen_device_info.h"
|
#include "common/gen_device_info.h"
|
||||||
#include "util/hash_table.h"
|
#include "util/hash_table.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct gen_spec;
|
struct gen_spec;
|
||||||
struct gen_group;
|
struct gen_group;
|
||||||
struct gen_field;
|
struct gen_field;
|
||||||
@@ -164,4 +168,9 @@ void gen_print_group(FILE *out,
|
|||||||
uint64_t offset, const uint32_t *p,
|
uint64_t offset, const uint32_t *p,
|
||||||
bool color);
|
bool color);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#endif /* GEN_DECODER_H */
|
#endif /* GEN_DECODER_H */
|
||||||
|
@@ -28,6 +28,10 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Intel hardware information and quirks
|
* Intel hardware information and quirks
|
||||||
*/
|
*/
|
||||||
@@ -198,4 +202,8 @@ struct gen_device_info
|
|||||||
bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
|
bool gen_get_device_info(int devid, struct gen_device_info *devinfo);
|
||||||
const char *gen_get_device_name(int devid);
|
const char *gen_get_device_name(int devid);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* GEN_DEVICE_INFO_H */
|
#endif /* GEN_DEVICE_INFO_H */
|
||||||
|
@@ -24,6 +24,10 @@
|
|||||||
#ifndef GEN_DISASM_H
|
#ifndef GEN_DISASM_H
|
||||||
#define GEN_DISASM_H
|
#define GEN_DISASM_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
struct gen_disasm;
|
struct gen_disasm;
|
||||||
|
|
||||||
struct gen_disasm *gen_disasm_create(int pciid);
|
struct gen_disasm *gen_disasm_create(int pciid);
|
||||||
@@ -32,4 +36,8 @@ void gen_disasm_disassemble(struct gen_disasm *disasm,
|
|||||||
|
|
||||||
void gen_disasm_destroy(struct gen_disasm *disasm);
|
void gen_disasm_destroy(struct gen_disasm *disasm);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* GEN_DISASM_H */
|
#endif /* GEN_DISASM_H */
|
||||||
|
Reference in New Issue
Block a user