summaryrefslogtreecommitdiffstats
path: root/pcilib/error.h
diff options
context:
space:
mode:
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__)