summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-06-07 21:42:26 +0200
committerDan McGee <dan@archlinux.org>2007-06-09 18:57:49 +0200
commitd317acaee8e9c20056a84ee0fc0089cc6610a412 (patch)
tree1078baa1f9d40c61aa92462d85c258eec2caa8ba /src/pacman/util.h
parent430a19c604e474e90451e6421448a04abe348e6d (diff)
downloadpacman-d317acaee8e9c20056a84ee0fc0089cc6610a412.tar.gz
pacman-d317acaee8e9c20056a84ee0fc0089cc6610a412.tar.xz
Add a series of pm_printf functions to pacman frontend
Add pm_printf, pm_fprintf, and pm_vfprintf to the pacman frontend for use by debug printing and other output messages from pacman. These will be incorporated into the log callback functions in the next iteration of changes. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r--src/pacman/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h
index 065f9531..d41b2ca0 100644
--- a/src/pacman/util.h
+++ b/src/pacman/util.h
@@ -47,6 +47,9 @@ char *strreplace(const char *str, const char *needle, const char *replace);
void list_display(const char *title, const alpm_list_t *list);
void display_targets(const alpm_list_t *syncpkgs);
int yesno(char *fmt, ...);
+int pm_printf(pmloglevel_t level, const char *format, ...);
+int pm_fprintf(FILE *stream, pmloglevel_t level, const char *format, ...);
+int pm_vfprintf(FILE *stream, pmloglevel_t level, const char *format, va_list args);
#endif /* _PM_UTIL_H */