aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
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 /pseudo.h
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 'pseudo.h')
-rw-r--r--pseudo.h89
1 files changed, 1 insertions, 88 deletions
diff --git a/pseudo.h b/pseudo.h
index a568bca..9b06651 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -26,94 +26,7 @@ void pseudo_dump_env(char **envp);
int pseudo_set_value(const char * key, const char * value);
char * pseudo_get_value(const char * key);
-typedef enum {
- OP_UNKNOWN = -1,
- OP_NONE = 0,
- OP_CHDIR,
- OP_CHMOD,
- OP_CHOWN,
- OP_CHROOT,
- OP_CLOSE,
- OP_CREAT,
- OP_DUP,
- OP_FCHMOD,
- OP_FCHOWN,
- OP_FSTAT,
- OP_LINK,
- OP_MKDIR,
- OP_MKNOD,
- OP_OPEN,
- OP_RENAME,
- OP_STAT,
- OP_UNLINK,
- /* added after the original release, so they have to go out of order
- * to avoid breaking the operation numbers in old logs.
- */
- OP_SYMLINK,
- OP_EXEC,
- OP_MAY_UNLINK,
- OP_DID_UNLINK,
- OP_CANCEL_UNLINK,
- OP_MAX
-} op_id_t;
-extern char *pseudo_op_name(op_id_t id);
-extern op_id_t pseudo_op_id(char *name);
-
-typedef enum {
- RESULT_UNKNOWN = -1,
- RESULT_NONE = 0,
- RESULT_SUCCEED,
- RESULT_FAIL,
- RESULT_ERROR,
- RESULT_MAX
-} res_id_t;
-extern char *pseudo_res_name(res_id_t id);
-extern res_id_t pseudo_res_id(char *name);
-
-typedef enum {
- SEVERITY_UNKNOWN = -1,
- SEVERITY_NONE = 0,
- SEVERITY_DEBUG,
- SEVERITY_INFO,
- SEVERITY_WARN,
- SEVERITY_ERROR,
- SEVERITY_CRITICAL,
- SEVERITY_MAX
-} sev_id_t;
-extern char *pseudo_sev_name(sev_id_t id);
-extern sev_id_t pseudo_sev_id(char *name);
-
-typedef enum pseudo_query_type {
- PSQT_UNKNOWN = -1,
- PSQT_NONE,
- PSQT_EXACT, PSQT_LESS, PSQT_GREATER, PSQT_BITAND,
- PSQT_NOTEQUAL, PSQT_LIKE, PSQT_NOTLIKE, PSQT_SQLPAT,
- PSQT_MAX
-} pseudo_query_type_t;
-extern char *pseudo_query_type_name(pseudo_query_type_t id);
-extern char *pseudo_query_type_sql(pseudo_query_type_t id);
-extern pseudo_query_type_t pseudo_query_type_id(char *name);
-
-/* 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.
- */
-typedef enum pseudo_query_field {
- PSQF_UNKNOWN = -1,
- PSQF_NONE, /* so that these are always non-zero */
- PSQF_ACCESS,
- PSQF_CLIENT, PSQF_DEV, PSQF_FD, PSQF_FTYPE,
- PSQF_GID, PSQF_ID, PSQF_INODE, PSQF_MODE,
- PSQF_OP, PSQF_ORDER, PSQF_PATH, PSQF_PERM,
- PSQF_PROGRAM, PSQF_RESULT, PSQF_SEVERITY, PSQF_STAMP,
- PSQF_TAG, PSQF_TEXT, PSQF_TYPE, PSQF_UID,
- PSQF_MAX
-} pseudo_query_field_t;
-extern char *pseudo_query_field_name(pseudo_query_field_t id);
-extern pseudo_query_field_t pseudo_query_field_id(char *name);
+#include "pseudo_tables.h"
extern void pseudo_debug_verbose(void);
extern void pseudo_debug_terse(void);