1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

api: add function hook_line

This commit is contained in:
Sébastien Helleu
2018-08-12 21:45:00 +02:00
parent 12a6f74ec0
commit 42be1a74a0
47 changed files with 3836 additions and 1226 deletions
+23
View File
@@ -79,6 +79,9 @@ char *gui_buffer_reserved_names[] =
NULL
};
char *gui_buffer_type_string[GUI_BUFFER_NUM_TYPES] =
{ "formatted", "free" };
char *gui_buffer_notify_string[GUI_BUFFER_NUM_NOTIFY] =
{ "none", "highlight", "message", "all" };
@@ -118,6 +121,26 @@ char *gui_buffer_properties_set[] =
};
/*
* Searches for buffer type.
*
* Returns pointer to hotlist found, NULL if not found.
*/
int
gui_buffer_search_type (const char *type)
{
int i;
for (i = 0; i < GUI_BUFFER_NUM_TYPES; i++)
{
if (string_strcasecmp (gui_buffer_type_string[i], type) == 0)
return i;
}
return -1;
}
/*
* Gets plugin name of buffer.
*