summaryrefslogtreecommitdiffstats
path: root/pcilib/pcilib.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/pcilib.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/pcilib.h')
-rw-r--r--pcilib/pcilib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcilib/pcilib.h b/pcilib/pcilib.h
index 9710642..8a43bfb 100644
--- a/pcilib/pcilib.h
+++ b/pcilib/pcilib.h
@@ -129,6 +129,10 @@ typedef int (*pcilib_dma_callback_t)(void *ctx, pcilib_dma_flags_t flags, size_t
typedef int (*pcilib_event_callback_t)(pcilib_event_id_t event_id, pcilib_event_info_t *info, void *user);
typedef int (*pcilib_event_rawdata_callback_t)(pcilib_event_id_t event_id, pcilib_event_info_t *info, pcilib_event_flags_t flags, size_t size, void *data, void *user);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int pcilib_set_logger(pcilib_log_priority_t min_prio, pcilib_logger_t logger, void *arg);
@@ -236,4 +240,8 @@ int pcilib_return_data(pcilib_t *ctx, pcilib_event_id_t event_id, pcilib_event_d
*/
int pcilib_grab(pcilib_t *ctx, pcilib_event_t event_mask, size_t *size, void **data, pcilib_timeout_t timeout);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _PCITOOL_PCILIB_H */