aboutsummaryrefslogtreecommitdiffstats
path: root/enums
diff options
context:
space:
mode:
authorPeter Seebach <peter.seebach@windriver.com>2010-11-30 15:36:42 -0600
committerPeter Seebach <peter.seebach@windriver.com>2010-11-30 16:29:48 -0600
commit00d0ce665b4b25ba60f67317c4840b357f84ed15 (patch)
tree06ecf64b51fb5e8eb3423b14bf8236555b89b73f /enums
parentca54fdb785b17fb251c28b28f51d0e666b1f2e22 (diff)
downloadpseudo-00d0ce665b4b25ba60f67317c4840b357f84ed15.tar.gz
pseudo-00d0ce665b4b25ba60f67317c4840b357f84ed15.tar.bz2
pseudo-00d0ce665b4b25ba60f67317c4840b357f84ed15.zip
Major shift: All the id_t types have been reworked so that they
are generated from text files and templates, making it now (we hope) impossible for the list of strings to get out of sync with the enum.
Diffstat (limited to 'enums')
-rw-r--r--enums/msg_type.in6
-rw-r--r--enums/op.in23
-rw-r--r--enums/query_field.in28
-rw-r--r--enums/query_type.in9
-rw-r--r--enums/res.in4
-rw-r--r--enums/sev.in6
6 files changed, 76 insertions, 0 deletions
diff --git a/enums/msg_type.in b/enums/msg_type.in
new file mode 100644
index 0000000..0313073
--- /dev/null
+++ b/enums/msg_type.in
@@ -0,0 +1,6 @@
+msg_type: PSEUDO_MSG
+ping
+shutdown
+op
+ack
+nak
diff --git a/enums/op.in b/enums/op.in
new file mode 100644
index 0000000..65eb73c
--- /dev/null
+++ b/enums/op.in
@@ -0,0 +1,23 @@
+op: OP
+chdir
+chmod
+chown
+chroot
+close
+creat
+dup
+fchmod
+fchown
+fstat
+link
+mkdir
+mknod
+open
+rename
+stat
+unlink
+symlink
+exec
+may-unlink
+did-unlink
+cancel-unlink
diff --git a/enums/query_field.in b/enums/query_field.in
new file mode 100644
index 0000000..5124c5d
--- /dev/null
+++ b/enums/query_field.in
@@ -0,0 +1,28 @@
+query_field: PSQF
+# Note: These are later used as bitwise masks into a value,
+# currently an unsigned long; if the number of these gets up
+# near 32, that may take rethinking. The first thing to
+# go would probably be something special to do for FTYPE and
+# PERM because they aren't "real" database fields -- both
+# of them actually imply MODE.
+access
+client
+dev
+fd
+ftype
+gid
+id
+inode
+mode
+op
+order
+path
+perm
+program
+result
+severity
+stamp
+tag
+text
+type
+uid
diff --git a/enums/query_type.in b/enums/query_type.in
new file mode 100644
index 0000000..5bfc741
--- /dev/null
+++ b/enums/query_type.in
@@ -0,0 +1,9 @@
+query_type: PSQT; sql = LITTLE BOBBY TABLES
+exact, =
+less, <
+greater, >
+bitand, &
+notequal, !=
+like, LIKE
+notlike, NOT LIKE
+sqlpat, LIKE
diff --git a/enums/res.in b/enums/res.in
new file mode 100644
index 0000000..435338f
--- /dev/null
+++ b/enums/res.in
@@ -0,0 +1,4 @@
+res: RESULT
+succeed
+fail
+error
diff --git a/enums/sev.in b/enums/sev.in
new file mode 100644
index 0000000..24c2c6e
--- /dev/null
+++ b/enums/sev.in
@@ -0,0 +1,6 @@
+sev: SEVERITY
+debug
+info
+warn
+error
+critical