summaryrefslogtreecommitdiffstats
path: root/pcilib/dma.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-06-22 18:32:27 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-06-22 18:32:27 +0200
commite2515f6e1a7b17addda4c558a0a6ca05b4ec6e55 (patch)
treeea63b9499de4abbf7e09c3b6a6952786740be577 /pcilib/dma.h
parent87583e6ec5c1961ef975b873041eeada3e1e6c6d (diff)
downloadpcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.gz
pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.bz2
pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.xz
pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.zip
Keep C++ compilers happy
Diffstat (limited to 'pcilib/dma.h')
-rw-r--r--pcilib/dma.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pcilib/dma.h b/pcilib/dma.h
index 36ead8d..5736669 100644
--- a/pcilib/dma.h
+++ b/pcilib/dma.h
@@ -83,10 +83,17 @@ typedef struct {
} pcilib_dma_description_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
const pcilib_dma_description_t *pcilib_get_dma_description(pcilib_t *ctx);
pcilib_dma_engine_t pcilib_add_dma_engine(pcilib_t *ctx, pcilib_dma_engine_description_t *desc);
int pcilib_get_dma_status(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_engine_status_t *status, size_t n_buffers, pcilib_dma_buffer_status_t *buffers);
int pcilib_init_dma(pcilib_t *ctx);
+#ifdef __cplusplus
+}
+#endif
#endif /* _PCILIB_DMA_H */