summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/cso_cache/cso_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/auxiliary/cso_cache/cso_cache.h')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_cache.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.h b/src/gallium/auxiliary/cso_cache/cso_cache.h
index 116e2eaa2c..58664cdd94 100644
--- a/src/gallium/auxiliary/cso_cache/cso_cache.h
+++ b/src/gallium/auxiliary/cso_cache/cso_cache.h
@@ -37,8 +37,15 @@
#include "pipe/p_state.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
struct cso_hash;
+struct cso_hash_iter;
+
struct cso_cache {
struct cso_hash *blend_hash;
struct cso_hash *depth_stencil_hash;
@@ -104,4 +111,9 @@ struct cso_hash_iter cso_find_state_template(struct cso_cache *sc,
void * cso_take_state(struct cso_cache *sc, unsigned hash_key,
enum cso_cache_type type);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif