mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 08:13:14 +02:00
Move WeeChat core completions from gui-completion.c to wee-completion.c
This commit is contained in:
@@ -23,6 +23,7 @@ SET(LIB_CORE_SRC
|
||||
weechat.c weechat.h
|
||||
wee-backtrace.c wee-backtrace.h
|
||||
wee-command.c wee-command.h
|
||||
wee-completion.c wee-completion.h
|
||||
wee-config.c wee-config.h
|
||||
wee-config-file.c wee-config-file.h
|
||||
wee-debug.c wee-debug.h
|
||||
|
||||
@@ -27,6 +27,8 @@ lib_weechat_core_a_SOURCES = weechat.c \
|
||||
wee-backtrace.h \
|
||||
wee-command.c \
|
||||
wee-command.h \
|
||||
wee-completion.c \
|
||||
wee-completion.h \
|
||||
wee-config.c \
|
||||
wee-config.h \
|
||||
wee-config-file.c \
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* Copyright (C) 2003-2010 Sebastien Helleu <flashcode@flashtux.org>
|
||||
*
|
||||
* This file is part of WeeChat, the extensible chat client.
|
||||
*
|
||||
* WeeChat is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* WeeChat is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __WEECHAT_COMPLETION_H
|
||||
#define __WEECHAT_COMPLETION_H 1
|
||||
|
||||
struct t_gui_buffer;
|
||||
struct t_gui_completion;
|
||||
|
||||
extern int completion_list_add_filename_cb (void *data,
|
||||
const char *completion_item,
|
||||
struct t_gui_buffer *buffer,
|
||||
struct t_gui_completion *completion);
|
||||
extern void completion_init ();
|
||||
|
||||
#endif /* __WEECHAT_COMPLETION_H */
|
||||
+2
-1
@@ -54,6 +54,7 @@
|
||||
|
||||
#include "weechat.h"
|
||||
#include "wee-command.h"
|
||||
#include "wee-completion.h"
|
||||
#include "wee-config.h"
|
||||
#include "wee-debug.h"
|
||||
#include "wee-hook.h"
|
||||
@@ -389,7 +390,7 @@ main (int argc, char *argv[])
|
||||
gui_main_pre_init (&argc, &argv); /* pre-initiliaze interface */
|
||||
weechat_init_vars (); /* initialize some variables */
|
||||
command_init (); /* initialize WeeChat commands */
|
||||
gui_completion_init (); /* add core completion hooks */
|
||||
completion_init (); /* add core completion hooks */
|
||||
gui_keyboard_init (); /* init keyboard */
|
||||
if (!config_weechat_init ()) /* init options with default values */
|
||||
exit (EXIT_FAILURE);
|
||||
|
||||
+2
-1152
File diff suppressed because it is too large
Load Diff
@@ -77,6 +77,5 @@ extern void gui_completion_search (struct t_gui_completion *completion,
|
||||
int direction, const char *data, int size,
|
||||
int pos);
|
||||
extern void gui_completion_print_log (struct t_gui_completion *completion);
|
||||
extern void gui_completion_init ();
|
||||
|
||||
#endif /* __WEECHAT_GUI_COMPLETION_H */
|
||||
|
||||
Reference in New Issue
Block a user