summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDanny van Dyk <danny.dyk@uni-dortmund.de>2008-03-28 17:01:29 -0700
committerIan Romanick <idr@us.ibm.com>2008-03-28 17:01:58 -0700
commitec53d6ef2bdf0e7a087ffd45fe112290f2181656 (patch)
treeb602d8e801f497231cc58ec030c365a802218688 /include
parenta5c862029846ddd5cecf44819f2a967e2a1672a9 (diff)
downloadlibpciaccess-ec53d6ef2bdf0e7a087ffd45fe112290f2181656.tar.gz
libpciaccess-ec53d6ef2bdf0e7a087ffd45fe112290f2181656.tar.bz2
libpciaccess-ec53d6ef2bdf0e7a087ffd45fe112290f2181656.zip
Fix function prototypes for C++
Diffstat (limited to 'include')
-rw-r--r--include/pciaccess.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/pciaccess.h b/include/pciaccess.h
index 3138877..de8b4b3 100644
--- a/include/pciaccess.h
+++ b/include/pciaccess.h
@@ -46,6 +46,10 @@ struct pci_device_iterator;
struct pci_id_match;
struct pci_slot_match;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
int pci_device_read_rom(struct pci_device *dev, void *buffer);
int __deprecated pci_device_map_region(struct pci_device *dev,
@@ -126,6 +130,10 @@ int pci_device_cfg_write_u32(struct pci_device *dev, uint32_t data,
int pci_device_cfg_write_bits(struct pci_device *dev, uint32_t mask,
uint32_t data, pciaddr_t offset);
+#ifdef __cplusplus
+}
+#endif
+
/**
* \name Mapping flags passed to \c pci_device_map_range
*/