summaryrefslogtreecommitdiffstats
path: root/pcilib/env.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-08 20:06:36 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-08 20:06:36 +0200
commit79d9b2924d7b67ba08e022792adb92770f64e0c8 (patch)
treedc2ce5058978bfe88de1613291f21aa2ca7d9b0c /pcilib/env.h
parenta1889bc2f45b3d944652be6436569980f189922d (diff)
downloadpcitool-79d9b2924d7b67ba08e022792adb92770f64e0c8.tar.gz
pcitool-79d9b2924d7b67ba08e022792adb92770f64e0c8.tar.bz2
pcitool-79d9b2924d7b67ba08e022792adb92770f64e0c8.tar.xz
pcitool-79d9b2924d7b67ba08e022792adb92770f64e0c8.zip
Prevent excessive calling of getenv by debugging code for better performance
Diffstat (limited to 'pcilib/env.h')
-rw-r--r--pcilib/env.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/pcilib/env.h b/pcilib/env.h
new file mode 100644
index 0000000..4fd40f1
--- /dev/null
+++ b/pcilib/env.h
@@ -0,0 +1,12 @@
+#ifndef _PCILIB_ENV_H
+#define _PCILIB_ENV_H
+
+typedef enum {
+ PCILIB_DEBUG_DMA_ENV,
+ PCILIB_DEBUG_MISSING_EVENTS_ENV,
+ PCILIB_MAX_ENV
+} pcilib_env_t;
+
+const char *pcilib_getenv(pcilib_env_t env, const char *var);
+
+#endif /* _PCILIB_ENV_H */