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