1 /** 2 * vimb - a webkit based vim like browser. 3 * 4 * Copyright (C) 2012-2018 Daniel Carl 5 * 6 * This program is free software: you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation, either version 3 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program. If not, see http://www.gnu.org/licenses/. 18 */ 19 20 #ifndef _COMPLETION_H 21 #define _COMPLETION_H 22 23 #include <glib.h> 24 25 #include "main.h" 26 27 typedef void (*CompletionSelectFunc) (Client *c, char *match); 28 29 enum { 30 COMPLETION_STORE_FIRST, 31 #ifdef FEATURE_TITLE_IN_COMPLETION 32 COMPLETION_STORE_SECOND, 33 #endif 34 COMPLETION_STORE_NUM 35 }; 36 37 38 void completion_clean(Client *c); 39 void completion_cleanup(Client *c); 40 gboolean completion_create(Client *c, GtkTreeModel *model, 41 CompletionSelectFunc selfunc, gboolean back); 42 void completion_init(Client *c); 43 gboolean completion_next(Client *c, gboolean back); 44 45 #endif /* end of include guard: _COMPLETION_H */ 46