1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 12:26:40 +02:00

tests: add function record_count_messages

This commit is contained in:
Sébastien Helleu
2024-10-12 21:02:21 +02:00
parent 00578a70e1
commit 977b3581fa
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -204,6 +204,16 @@ record_search (const char *buffer, const char *prefix, const char *message,
return NULL;
}
/*
* Returns the number of messages displayed during the recording.
*/
int
record_count_messages ()
{
return arraylist_size (recorded_messages);
}
/*
* Adds all recorded messages to the dynamic string "msg".
*/
+1
View File
@@ -26,6 +26,7 @@ extern void record_start ();
extern void record_stop ();
extern struct t_hashtable *record_search (const char *buffer, const char *prefix,
const char *message, const char *tags);
extern int record_count_messages ();
extern void record_dump (char **msg);
extern void record_error_missing (const char *message);