summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-11 12:57:55 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-03-11 12:57:55 +0100
commita383fdf9843640811067117b26622bf3644ac498 (patch)
tree67d5700675a47186635e24068d12ff4b6fc6dabc
parente3f49e9e7f5e12fd9e0331d9e92cf0316507b82c (diff)
downloadipecamera-a383fdf9843640811067117b26622bf3644ac498.tar.gz
ipecamera-a383fdf9843640811067117b26622bf3644ac498.tar.bz2
ipecamera-a383fdf9843640811067117b26622bf3644ac498.tar.xz
ipecamera-a383fdf9843640811067117b26622bf3644ac498.zip
Move model decription to public header
-rw-r--r--pci.h1
-rw-r--r--pcilib.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/pci.h b/pci.h
index 74699cd..7da0a11 100644
--- a/pci.h
+++ b/pci.h
@@ -29,7 +29,6 @@ pcilib_protocol_description_t pcilib_protocol[3] = {
extern void (*pcilib_error)(const char *msg, ...);
extern void (*pcilib_warning)(const char *msg, ...);
-extern pcilib_model_description_t pcilib_model[];
extern pcilib_protocol_description_t pcilib_protocol[];
#endif /* _PCILIB_PCI_C */
diff --git a/pcilib.h b/pcilib.h
index 7541c80..b1288a8 100644
--- a/pcilib.h
+++ b/pcilib.h
@@ -99,6 +99,10 @@ typedef struct {
pcilib_register_range_t *ranges;
} pcilib_model_description_t;
+#ifndef _PCILIB_PCI_C
+extern pcilib_model_description_t pcilib_model[];
+#endif /* ! _PCILIB_PCI_C */
+
int pcilib_set_error_handler(void (*err)(const char *msg, ...));
pcilib_model_t pcilib_get_model(pcilib_t *ctx);