summaryrefslogtreecommitdiffstats
path: root/env.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2023-05-25 22:41:04 +0200
committerSuren A. Chilingaryan <csa@suren.me>2023-05-25 22:41:04 +0200
commit6f4af841f6fdd099b97d071ae64c8be60f809456 (patch)
treed4f9a18b38e1ce3cfc0a5336215d5ce3afe830d2 /env.h
downloadpcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.tar.gz
pcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.tar.bz2
pcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.tar.xz
pcidev-6f4af841f6fdd099b97d071ae64c8be60f809456.zip
A sample event engine for pcitool (not requiring any PCIe hardware). Initial (barely tested and intended only as an example) release
Diffstat (limited to 'env.h')
-rw-r--r--env.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/env.h b/env.h
new file mode 100644
index 0000000..7ab3d52
--- /dev/null
+++ b/env.h
@@ -0,0 +1,24 @@
+#ifndef _PCIDEV_ENV_H
+#define _PCIDEV_ENV_H
+
+typedef enum {
+ PCIDEV_DEBUG_RAW_FRAMES_ENV,
+ PCIDEV_DEBUG_BROKEN_FRAMES_ENV,
+ PCIDEV_DEBUG_RAW_PACKETS_ENV,
+ PCIDEV_DEBUG_HARDWARE_ENV,
+ PCIDEV_DEBUG_FRAME_HEADERS_ENV,
+ PCIDEV_DEBUG_API_ENV,
+ PCIDEV_MAX_ENV
+} pcidev_env_t;
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+const char *pcidev_getenv(pcidev_env_t env, const char *var);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PCIDEV_ENV_H */