summaryrefslogtreecommitdiff
path: root/cesar/hle/inc/context.h
diff options
context:
space:
mode:
Diffstat (limited to 'cesar/hle/inc/context.h')
-rw-r--r--cesar/hle/inc/context.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/cesar/hle/inc/context.h b/cesar/hle/inc/context.h
new file mode 100644
index 0000000000..cd972a0619
--- /dev/null
+++ b/cesar/hle/inc/context.h
@@ -0,0 +1,43 @@
+#ifndef hle_inc_context_h
+#define hle_inc_context_h
+/* Cesar project {{{
+ *
+ * Copyright (C) 2007 Spidcom
+ *
+ * <<<Licence>>>
+ *
+ * }}} */
+/**
+ * \file hle/inc/context.h
+ * \brief HLE context.
+ * \ingroup hle
+ *
+ */
+
+#include "lib/read_word.h"
+#include "lib/trace.h"
+
+#include "cl/cl.h"
+
+#include "hal/hle/ipmbox.h"
+
+struct hle_t
+{
+ /** CL context */
+ cl_t *cl;
+
+ /** ipmbox context */
+ ipmbox_t *ipmbox;
+
+ /** Interface buffer add callback. */
+ hle_interface_buffer_add_cb_t interface_buffer_add_cb;
+ /** interface user data. */
+ void *interface_buffer_add_user_data;
+
+#if CONFIG_TRACE
+ /** HLE Trace */
+ trace_buffer_t trace;
+#endif /* !CONFIG_TRACE */
+};
+
+#endif /* hle_inc_context_h */