path: root/pseudo_db.h
diff options
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_db.h
parentca54fdb785b17fb251c28b28f51d0e666b1f2e22 (diff)
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_db.h')
1 files changed, 6 insertions, 6 deletions
diff --git a/pseudo_db.h b/pseudo_db.h
index bd09c89..fe2fb12 100644
--- a/pseudo_db.h
+++ b/pseudo_db.h
@@ -20,7 +20,7 @@
typedef struct {
time_t stamp;
pseudo_msg_type_t type;
- op_id_t op;
+ pseudo_op_t op;
int access;
unsigned long client;
unsigned long fd;
@@ -30,8 +30,8 @@ typedef struct {
unsigned long gid;
unsigned long uid;
char *path;
- res_id_t result;
- sev_id_t severity;
+ pseudo_res_t result;
+ pseudo_sev_t severity;
char *text;
char *tag;
char *program;
@@ -65,14 +65,14 @@ union pseudo_query_data {
typedef struct pseudo_query {
- enum pseudo_query_type type;
- enum pseudo_query_field field;
+ pseudo_query_type_t type;
+ pseudo_query_field_t field;
union pseudo_query_data data;
struct pseudo_query *next;
} pseudo_query_t;
extern int pdb_log_entry(log_entry *e);
-extern int pdb_log_msg(sev_id_t severity, pseudo_msg_t *msg, const char *program, const char *tag, const char *text, ...);
+extern int pdb_log_msg(pseudo_sev_t severity, pseudo_msg_t *msg, const char *program, const char *tag, const char *text, ...);
extern int pdb_log_traits(pseudo_query_t *traits);
struct pdb_file_list;