aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_db.h
diff options
context:
space:
mode:
authorPeter Seebach <seebs@eee12.(none)>2010-04-30 12:09:48 -0500
committerPeter Seebach <seebs@eee12.(none)>2010-04-30 12:31:07 -0500
commitf97830a23402ac218a477828bf481bcff139507d (patch)
treeaaa567769213186d04890ad736908ca4c65085de /pseudo_db.h
parent5ff2692c9959e87fa9d573ecab4808d965da29f1 (diff)
downloadpseudo-f97830a23402ac218a477828bf481bcff139507d.tar.gz
pseudo-f97830a23402ac218a477828bf481bcff139507d.tar.bz2
pseudo-f97830a23402ac218a477828bf481bcff139507d.zip
Cleanup of pdb_history
pdb_history was overloaded as a delete function. Separated this out into a query-builder and a pair of functions to use it, which makes it cleaner.
Diffstat (limited to 'pseudo_db.h')
-rw-r--r--pseudo_db.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/pseudo_db.h b/pseudo_db.h
index f8f5e3c..77ff5b5 100644
--- a/pseudo_db.h
+++ b/pseudo_db.h
@@ -76,7 +76,8 @@ 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 int pdb_delete(pseudo_query_t *traits, unsigned long fields);
+extern log_history pdb_history(pseudo_query_t *traits, unsigned long fields, int unique);
extern log_entry *pdb_history_entry(log_history h);
extern void pdb_history_free(log_history h);
extern void log_entry_free(log_entry *);