diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-10-12 22:16:34 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-10-14 18:32:44 +0200 |
commit | fae153a5d7c1c029ab600ac60d47e2d3c86b6976 (patch) | |
tree | 7e01cbca999c04fc7f99f491baaac49cee8aa68e /parted/strlist.h | |
parent | 959d4c2875216d26b2d113cc7119dd8623493e34 (diff) | |
download | parted-fae153a5d7c1c029ab600ac60d47e2d3c86b6976.tar.gz |
parted: strlist print functions can now send output to any FILE *
This changes the two strlist print functions so that instead of just
sending output to stdout, they can send it to any FILE *. Now the
caller can send errors to stderr instead of stdout.
Diffstat (limited to 'parted/strlist.h')
-rw-r--r-- | parted/strlist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parted/strlist.h b/parted/strlist.h index 32ad8cc..7fe9bf3 100644 --- a/parted/strlist.h +++ b/parted/strlist.h @@ -53,9 +53,9 @@ extern StrList* str_list_join (StrList* a, StrList* b); extern char* str_list_convert (const StrList* list); extern char* str_list_convert_node (const StrList* list); -extern void str_list_print (const StrList* list); +extern void str_list_print (const StrList* list, FILE *fp); extern void str_list_print_wrap (const StrList* list, int line_length, - int offset, int indent); + int offset, int indent, FILE *fp); extern int str_list_match_any (const StrList* list, const char* str); extern int str_list_match_node (const StrList* list, const char* str); extern StrList* str_list_match (const StrList* list, const char* str); |