aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2008-02-22 18:28:30 +0900
committerJosé Fonseca <[email protected]>2008-02-23 00:51:37 +0900
commit901b03e84dce21f4241375da179b2199a3162e0c (patch)
tree600f0a99db24d805ed9d2408ff6ef922dc9e4878 /src
parent6c597238b2e168b63738ac8cc9167c1d09185aad (diff)
gallium: Wrap decls in extern "C".
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_cache.h12
-rw-r--r--src/gallium/auxiliary/cso_cache/cso_hash.h10
2 files changed, 22 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_cache.h b/src/gallium/auxiliary/cso_cache/cso_cache.h
index 116e2eaa2c8..58664cdd941 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
diff --git a/src/gallium/auxiliary/cso_cache/cso_hash.h b/src/gallium/auxiliary/cso_cache/cso_hash.h
index ffd99beba95..2e8b69675cb 100644
--- a/src/gallium/auxiliary/cso_cache/cso_hash.h
+++ b/src/gallium/auxiliary/cso_cache/cso_hash.h
@@ -33,6 +33,12 @@
#ifndef CSO_HASH_H
#define CSO_HASH_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
struct cso_hash;
struct cso_node;
@@ -68,4 +74,8 @@ void *cso_hash_find_data_from_template( struct cso_hash *hash,
int size );
+#ifdef __cplusplus
+}
+#endif
+
#endif