summaryrefslogtreecommitdiffstats
path: root/pcilib/error.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/error.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/error.h')
-rw-r--r--pcilib/error.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/pcilib/error.h b/pcilib/error.h
index e68d102..9b5492b 100644
--- a/pcilib/error.h
+++ b/pcilib/error.h
@@ -31,9 +31,18 @@ enum {
PCILIB_ERROR_BUSY = EBUSY
} pcilib_errot_t;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void pcilib_log_message(const char *file, int line, pcilib_log_flags_t flags, pcilib_log_priority_t prio, const char *msg, ...);
void pcilib_log_vmessage(const char *file, int line, pcilib_log_flags_t flags, pcilib_log_priority_t prio, const char *msg, va_list va);
+
+#ifdef __cplusplus
+}
+#endif
+
#define pcilib_log(prio, ...) \
pcilib_log_message(__FILE__, __LINE__, PCILIB_LOG_DEFAULT, prio, __VA_ARGS__)