diff options
author | James Booth <boothj5@gmail.com> | 2016-10-11 23:40:15 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-10-11 23:40:15 +0100 |
commit | af42bc4434a4eedaf13e057a73e17fe46e0eb110 (patch) | |
tree | 7df2b67234ff9095b7072a8cc5017cda170ce0fc /src/ui | |
parent | 0890179fc42a7304dc03c76bd680e61a43f6e072 (diff) | |
download | profani-tty-af42bc4434a4eedaf13e057a73e17fe46e0eb110.tar.gz |
Add win_print_http_upload
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 6 | ||||
-rw-r--r-- | src/ui/window.h | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index a410d6d5..b0ca6215 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1039,6 +1039,12 @@ win_printf(ProfWin *window, const char show_char, int pad_indent, GDateTime *tim } void +win_print_http_upload(ProfWin *window, const char *const message, char *url) +{ + win_print_with_receipt(window, '!', 0, NULL, 0, THEME_TEXT_ME, NULL, message, url); +} + +void win_print_with_receipt(ProfWin *window, const char show_char, int pad_indent, GTimeVal *tstamp, int flags, theme_item_t theme_item, const char *const from, const char *const message, char *id) { diff --git a/src/ui/window.h b/src/ui/window.h index cc9ae8df..4b82b1d4 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -61,8 +61,12 @@ void win_show_status_string(ProfWin *window, const char *const from, const char *const default_show); void win_print_incoming_message(ProfWin *window, GDateTime *timestamp, const char *const from, const char *const message, prof_enc_t enc_mode); + +void win_print_http_upload(ProfWin *window, const char *const message, char *url); + void win_print_with_receipt(ProfWin *window, const char show_char, int pad_indent, GTimeVal *tstamp, int flags, theme_item_t theme_item, const char *const from, const char *const message, char *id); + void win_newline(ProfWin *window); void win_redraw(ProfWin *window); int win_roster_cols(void); |