projects
/
platform
/
upstream
/
libpciaccess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5c8620
)
Fix function prototypes for C++
author
Danny van Dyk
<danny.dyk@uni-dortmund.de>
Sat, 29 Mar 2008 00:01:29 +0000
(17:01 -0700)
committer
Ian Romanick
<idr@us.ibm.com>
Sat, 29 Mar 2008 00:01:58 +0000
(17:01 -0700)
include/pciaccess.h
patch
|
blob
|
history
diff --git
a/include/pciaccess.h
b/include/pciaccess.h
index
3138877
..
de8b4b3
100644
(file)
--- 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
*/