mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 02:46:22 +00:00
Store plugin completers by plugin name
This commit is contained in:
@@ -117,6 +117,15 @@ autocomplete_add(Autocomplete ac, const char *item)
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
autocomplete_add_all(Autocomplete ac, char **items)
|
||||
{
|
||||
int i = 0;
|
||||
for (i = 0; i < g_strv_length(items); i++) {
|
||||
autocomplete_add(ac, items[i]);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
autocomplete_remove(Autocomplete ac, const char *const item)
|
||||
{
|
||||
@@ -139,6 +148,15 @@ autocomplete_remove(Autocomplete ac, const char *const item)
|
||||
return;
|
||||
}
|
||||
|
||||
void
|
||||
autocomplete_remove_all(Autocomplete ac, char **items)
|
||||
{
|
||||
int i = 0;
|
||||
for (i = 0; i < g_strv_length(items); i++) {
|
||||
autocomplete_remove(ac, items[i]);
|
||||
}
|
||||
}
|
||||
|
||||
GSList*
|
||||
autocomplete_create_list(Autocomplete ac)
|
||||
{
|
||||
|
||||
@@ -50,7 +50,9 @@ void autocomplete_clear(Autocomplete ac);
|
||||
void autocomplete_free(Autocomplete ac);
|
||||
|
||||
void autocomplete_add(Autocomplete ac, const char *item);
|
||||
void autocomplete_add_all(Autocomplete ac, char **items);
|
||||
void autocomplete_remove(Autocomplete ac, const char *const item);
|
||||
void autocomplete_remove_all(Autocomplete ac, char **items);
|
||||
|
||||
// find the next item prefixed with search string
|
||||
gchar* autocomplete_complete(Autocomplete ac, const gchar *search_str, gboolean quote);
|
||||
|
||||
Reference in New Issue
Block a user