summaryrefslogtreecommitdiffstats
path: root/src/intel
diff options
context:
space:
mode:
authorLionel Landwerlin <[email protected]>2018-07-29 19:32:13 +0100
committerLionel Landwerlin <[email protected]>2018-08-22 18:02:11 +0100
commit475d670ef771ebea73d81c19760b10b22f37fee6 (patch)
tree30895c0d7c0f08daef0e17f104139e9503c4bc7f /src/intel
parented21007a6a8741da1ab5229d5efb9ad47d9c8f8b (diff)
intel: tools: aubwrite: wrap function declarations for c++
Reviewed-by: Rafael Antognolli <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r--src/intel/tools/aub_write.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/tools/aub_write.h b/src/intel/tools/aub_write.h
index b421679b9eb..6a09c1747b9 100644
--- a/src/intel/tools/aub_write.h
+++ b/src/intel/tools/aub_write.h
@@ -31,6 +31,10 @@
#include "dev/gen_device_info.h"
#include "common/gen_gem.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct aub_ppgtt_table {
uint64_t phys_addr;
struct aub_ppgtt_table *subtables[512];
@@ -78,4 +82,8 @@ void aub_write_trace_block(struct aub_file *aub,
void aub_write_exec(struct aub_file *aub, uint64_t batch_addr,
uint64_t offset, int ring_flag);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* INTEL_AUB_WRITE */