intel: common: make intel utils available from C++
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 27 Sep 2017 19:57:28 +0000 (20:57 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 1 Nov 2017 17:23:49 +0000 (17:23 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Scott D Phillips <scott.d.phillips@intel.com>
src/intel/common/gen_decoder.h
src/intel/common/gen_device_info.h
src/intel/tools/gen_disasm.h

index 5d5ce7825f429f93b279e8e78ad3adab140d5265..f2291f43e92181600edb78005e0883013e824539 100644 (file)
 #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 */
index 59b345e949ca7a204fea10f0e948495f675bfc82..30ddd905be1f3895c15aff5b0276eac5aa101a9c 100644 (file)
 #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 */
index 24b56c9a8e1ad98cf84af8d8c3830da9e1aa020d..d2764bb90b7f6ff18d01e21888e6dedb69f6c1e5 100644 (file)
 #ifndef GEN_DISASM_H
 #define GEN_DISASM_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct gen_disasm;
 
 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);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* GEN_DISASM_H */