summaryrefslogtreecommitdiff
path: root/src/perl/textui
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2014-06-30 00:07:14 +0200
committerAlexander Færøy <ahf@0x90.dk>2014-06-30 00:07:14 +0200
commit2e6f16c0faf345245c5a224de529827a51203d1c (patch)
tree33ed0d8312d2b9ce694a472ae32d7716ee1c211b /src/perl/textui
parent588597744e7efb38ab87fef9e70b1428fe654067 (diff)
parente71c9f1b06fe73971497d7f4722466070f66748c (diff)
downloadirssi-2e6f16c0faf345245c5a224de529827a51203d1c.zip
Merge pull request #11 from ailin-nemui/print_text_after_time-api
add print_text_after_time to specify time stamp for lines
Diffstat (limited to 'src/perl/textui')
-rw-r--r--src/perl/textui/TextUI.xs15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/perl/textui/TextUI.xs b/src/perl/textui/TextUI.xs
index fe51076a..ae986aaf 100644
--- a/src/perl/textui/TextUI.xs
+++ b/src/perl/textui/TextUI.xs
@@ -139,11 +139,12 @@ CODE:
MODULE = Irssi::TextUI PACKAGE = Irssi::UI::Window
void
-print_after(window, prev, level, str)
+print_after(window, prev, level, str, time = 0)
Irssi::UI::Window window
Irssi::TextUI::Line prev
int level
char *str
+ time_t time
PREINIT:
TEXT_DEST_REC dest;
char *text;
@@ -152,21 +153,22 @@ CODE:
format_create_dest(&dest, NULL, NULL, level, window);
text = format_string_expand(str, NULL);
text2 = g_strconcat(text, "\n", NULL);
- gui_printtext_after(&dest, prev, text2);
+ gui_printtext_after_time(&dest, prev, text2, time);
g_free(text);
g_free(text2);
void
-gui_printtext_after(window, prev, level, str)
+gui_printtext_after(window, prev, level, str, time = 0)
Irssi::UI::Window window
Irssi::TextUI::Line prev
int level
char *str
+ time_t time
PREINIT:
TEXT_DEST_REC dest;
CODE:
format_create_dest(&dest, NULL, NULL, level, window);
- gui_printtext_after(&dest, prev, str);
+ gui_printtext_after_time(&dest, prev, str, time);
Irssi::TextUI::Line
last_line_insert(window)
@@ -179,17 +181,18 @@ OUTPUT:
MODULE = Irssi::TextUI PACKAGE = Irssi::Server
void
-gui_printtext_after(server, target, prev, level, str)
+gui_printtext_after(server, target, prev, level, str, time = 0)
Irssi::Server server
char *target
Irssi::TextUI::Line prev
int level
char *str
+ time_t time
PREINIT:
TEXT_DEST_REC dest;
CODE:
format_create_dest(&dest, server, target, level, NULL);
- gui_printtext_after(&dest, prev, str);
+ gui_printtext_after_time(&dest, prev, str, time);
BOOT:
irssi_boot(TextUI__Statusbar);