aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_db.h
diff options
context:
space:
mode:
authorPeter Seebach <seebs@eee12.(none)>2010-04-20 12:31:12 -0500
committerPeter Seebach <peter.seebach@windriver.com>2010-04-26 17:13:45 -0700
commit4d0e478c61252362bc8a9691b39a6446deda2406 (patch)
treebcdc401466a40d2c4ee53a73f4ba70a2b35b55f3 /pseudo_db.h
parentff60bb3be1e9193defb6bc1b0b8d595c5482c7f8 (diff)
downloadpseudo-4d0e478c61252362bc8a9691b39a6446deda2406.tar.gz
pseudo-4d0e478c61252362bc8a9691b39a6446deda2406.tar.bz2
pseudo-4d0e478c61252362bc8a9691b39a6446deda2406.zip
Add sanity check
It is possible for the database to get out of sync with the filesystem. Detecting this after the fact can be hard. Provide a hook for requesting a check. Also merge in some LD_LIBRARY_PATH fixes.
Diffstat (limited to 'pseudo_db.h')
-rw-r--r--pseudo_db.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pseudo_db.h b/pseudo_db.h
index aeacc95..2760278 100644
--- a/pseudo_db.h
+++ b/pseudo_db.h
@@ -68,6 +68,13 @@ 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_traits(pseudo_query_t *traits);
+struct pdb_file_list;
+typedef struct pdb_file_list *pdb_file_list;
+
+extern pdb_file_list pdb_files(void);
+extern pseudo_msg_t *pdb_file(pdb_file_list);
+extern void pdb_files_done(pdb_file_list);
+
extern log_history pdb_history(pseudo_query_t *traits, unsigned long fields, int unique, int delete);
extern log_entry *pdb_history_entry(log_history h);
extern void pdb_history_free(log_history h);