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