diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-06-22 18:32:27 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-06-22 18:32:27 +0200 |
commit | e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55 (patch) | |
tree | ea63b9499de4abbf7e09c3b6a6952786740be577 /pcilib/pci.h | |
parent | 87583e6ec5c1961ef975b873041eeada3e1e6c6d (diff) | |
download | pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.gz pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.bz2 pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.tar.xz pcitool-e2515f6e1a7b17addda4c558a0a6ca05b4ec6e55.zip |
Keep C++ compilers happy
Diffstat (limited to 'pcilib/pci.h')
-rw-r--r-- | pcilib/pci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pcilib/pci.h b/pcilib/pci.h index ce8d119..d176caf 100644 --- a/pcilib/pci.h +++ b/pcilib/pci.h @@ -75,6 +75,10 @@ struct pcilib_s { #endif /* PCILIB_FILE_IO */ }; +#ifdef __cplusplus +extern "C" { +#endif + pcilib_context_t *pcilib_get_implementation_context(pcilib_t *ctx); const pcilib_board_info_t *pcilib_get_board_info(pcilib_t *ctx); const pcilib_pcie_link_info_t *pcilib_get_pcie_link_info(pcilib_t *ctx); @@ -82,4 +86,8 @@ const pcilib_pcie_link_info_t *pcilib_get_pcie_link_info(pcilib_t *ctx); int pcilib_map_register_space(pcilib_t *ctx); int pcilib_map_data_space(pcilib_t *ctx, uintptr_t addr); +#ifdef __cplusplus +} +#endif + #endif /* _PCITOOL_PCI_H */ |