diff options
Diffstat (limited to 'src/apk_print.h')
-rw-r--r-- | src/apk_print.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/apk_print.h b/src/apk_print.h index 1d5dfd6..f8a2003 100644 --- a/src/apk_print.h +++ b/src/apk_print.h @@ -41,11 +41,16 @@ int apk_get_screen_width(void); const char *apk_get_human_size(off_t size, off_t *dest); struct apk_indent { - int x; - int indent; + FILE *f; + unsigned int x, indent, width; }; void apk_print_progress(size_t done, size_t total); + +void apk_print_indented_init(struct apk_indent *i, int err); +void apk_print_indented_line(struct apk_indent *i, const char *fmt, ...); +void apk_print_indented_group(struct apk_indent *i, int indent, const char *fmt, ...); +void apk_print_indented_end(struct apk_indent *i); int apk_print_indented(struct apk_indent *i, apk_blob_t blob); void apk_print_indented_words(struct apk_indent *i, const char *text); void apk_print_indented_fmt(struct apk_indent *i, const char *fmt, ...) |