r600g: pad the DMA CS to a multiple of 8 dwords
[mesa.git] / src / mesa / main / simple_list.h
index 63475f6f740ba1d4d8f5853eb8d9ce491552d477..9417108a07f9dc1a8f5db37a1d99170c1fc55e50 100644 (file)
 #ifndef _SIMPLE_LIST_H
 #define _SIMPLE_LIST_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+struct simple_node {
+   struct simple_node *next;
+   struct simple_node *prev;
+};
+
 /**
  * Remove an element from list.
  *
@@ -194,4 +203,8 @@ do {                                                \
 #define foreach_s(ptr, t, list)   \
         for(ptr=(list)->next,t=(ptr)->next; list != ptr; ptr=t, t=(t)->next)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif