[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cdi-devel] [PATCH] Remove dependency on cdi-osdep.h in cdi.h



Hi,

This patch removes the dependency on cdi-osdep.h in cdi.h, in order to handle situations where cdi-osdep.h may need to define OS-specific functions and structs which need cdi.h (and other headers which might include cdi.h).

Cheers,
Matt

Signed-off-by: Matthew Iselin <matthew@xxxxxxxxxxxxxx>
---
 include/cdi.h     |    1 -
 include/cdi/dma.h |    1 +
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/cdi.h b/include/cdi.h
index f45181a..bf72639 100644
--- a/include/cdi.h
+++ b/include/cdi.h
@@ -16,7 +16,6 @@
 
 #include <stdint.h>
 
-#include "cdi-osdep.h"
 #include "cdi/lists.h"
 
 typedef enum {
diff --git a/include/cdi/dma.h b/include/cdi/dma.h
index 8d50640..7b3d159 100644
--- a/include/cdi/dma.h
+++ b/include/cdi/dma.h
@@ -14,6 +14,7 @@
 #include <stdint.h>
 #include <stdio.h>
 #include "cdi.h"
+#include "cdi-osdep.h"
 
 struct cdi_dma_handle {
     uint8_t     channel;
-- 
1.6.0.4