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:
@@ -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".
|
||||
*/
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user