summaryrefslogtreecommitdiffstats
path: root/pcilib/bank.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/bank.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/bank.h')
-rw-r--r--pcilib/bank.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/pcilib/bank.h b/pcilib/bank.h
index 8b461af..a0ba9fe 100644
--- a/pcilib/bank.h
+++ b/pcilib/bank.h
@@ -86,6 +86,10 @@ struct pcilib_register_bank_context_s {
const pcilib_register_protocol_api_description_t *api; /**< API functions */
};
+#ifdef __cplusplus
+extern "C" {
+#endif
+
// we don't copy strings, they should be statically allocated
int pcilib_init_register_banks(pcilib_t *ctx);
void pcilib_free_register_banks(pcilib_t *ctx);
@@ -102,4 +106,8 @@ pcilib_register_protocol_t pcilib_find_register_protocol_by_addr(pcilib_t *ctx,
pcilib_register_protocol_t pcilib_find_register_protocol_by_name(pcilib_t *ctx, const char *name);
pcilib_register_protocol_t pcilib_find_register_protocol(pcilib_t *ctx, const char *name);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _PCILIB_BANK_H */