diff options
author | Lionel Landwerlin <[email protected]> | 2017-09-27 20:57:28 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-11-01 17:23:49 +0000 |
commit | cab93a901e14e97d4d243e4a451521dad957f0ac (patch) | |
tree | 0644b03ec24dbab596a48c15f7c0eb71967b4947 /src/intel/common | |
parent | ea14ba01791c5f29eb235c77ff0fe34ad8cd29e7 (diff) |
intel: common: make intel utils available from C++
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/common')
-rw-r--r-- | src/intel/common/gen_decoder.h | 9 | ||||
-rw-r--r-- | src/intel/common/gen_device_info.h | 8 |
2 files changed, 17 insertions, 0 deletions
diff --git a/src/intel/common/gen_decoder.h b/src/intel/common/gen_decoder.h index 5d5ce7825f4..f2291f43e92 100644 --- a/src/intel/common/gen_decoder.h +++ b/src/intel/common/gen_decoder.h @@ -30,6 +30,10 @@ #include "common/gen_device_info.h" #include "util/hash_table.h" +#ifdef __cplusplus +extern "C" { +#endif + struct gen_spec; struct gen_group; struct gen_field; @@ -164,4 +168,9 @@ void gen_print_group(FILE *out, uint64_t offset, const uint32_t *p, bool color); +#ifdef __cplusplus +} +#endif + + #endif /* GEN_DECODER_H */ diff --git a/src/intel/common/gen_device_info.h b/src/intel/common/gen_device_info.h index 59b345e949c..30ddd905be1 100644 --- a/src/intel/common/gen_device_info.h +++ b/src/intel/common/gen_device_info.h @@ -28,6 +28,10 @@ #include <stdbool.h> #include <stdint.h> +#ifdef __cplusplus +extern "C" { +#endif + /** * 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); const char *gen_get_device_name(int devid); +#ifdef __cplusplus +} +#endif + #endif /* GEN_DEVICE_INFO_H */ |