summaryrefslogtreecommitdiff
path: root/src/libvmon/defs/proc_files.def
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@gnugeneration.com>2016-08-28 00:36:53 -0700
committerVito Caputo <vcaputo@gnugeneration.com>2016-09-09 14:14:31 -0700
commit4642216f70dd98134a79f9299b7ca4bc876649c7 (patch)
treebdf9fd892bc54a2f2a678a9828c6af9d9fc8bed2 /src/libvmon/defs/proc_files.def
parente99f5ac1293a0ae1f498bc4c73c4c04e4edb8665 (diff)
*: refactor all the things
Long overdue house cleaning. The addition of compositing/monitoring overlays in vwm3 pushed vwm well past what is a reasonable size for a simple thousand line file. This is a first step towards restoring sanity in the code, but no behavioral differences are intended, this is mostly just shuffling around and organizing code. I expect some performance regressions initially, follow-on commits will make more improvements to that end as the dust settles.
Diffstat (limited to 'src/libvmon/defs/proc_files.def')
-rw-r--r--src/libvmon/defs/proc_files.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libvmon/defs/proc_files.def b/src/libvmon/defs/proc_files.def
new file mode 100644
index 0000000..6e3db98
--- /dev/null
+++ b/src/libvmon/defs/proc_files.def
@@ -0,0 +1,8 @@
+#include "_begin.def"
+
+ /* member name, symbolic constant, human label, human description (think UI/help) */
+ /* /proc/$pid/fd */
+vmon_datum_int( fdnum, FILES_FDNUM, "FdNum", "File descriptor number (historically 0-255)")
+vmon_datum_char_array( object_path, FILES_OBJPATH, "ObjPath", "Object path this descriptor represents a handle for")
+
+#include "_end.def"
© All Rights Reserved