From d317acaee8e9c20056a84ee0fc0089cc6610a412 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Thu, 7 Jun 2007 15:42:26 -0400 Subject: 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 --- src/pacman/util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pacman/util.h') 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 */ -- cgit v1.2.3