Browse Source

Move src/filemanager/complete.c to lib/widget/input_complete.c

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
Slava Zanko 14 years ago
parent
commit
e784cf65a5

+ 1 - 0
lib/widget/Makefile.am

@@ -12,6 +12,7 @@ libmcwidget_la_SOURCES = \
 	hline.c hline.h \
 	history.c history.h \
 	input.c input.h \
+	input_complete.c input_complete.h \
 	listbox-window.c listbox-window.h \
 	listbox.c listbox.h \
 	label.c label.h \

+ 2 - 0
lib/widget/input.c

@@ -50,6 +50,8 @@
 #include "lib/keybind.h"        /* global_keymap_t */
 #include "lib/widget.h"
 
+#include "input_complete.h"
+
 #include "src/main.h"           /* home_dir */
 #include "src/filemanager/midnight.h"   /* current_panel */
 #include "src/clipboard.h"      /* copy_file_to_ext_clip, paste_to_file_from_ext_clip */

+ 0 - 3
lib/widget/input.h

@@ -88,9 +88,6 @@ void input_disable_update (WInput * in);
 void input_clean (WInput * in);
 void input_free_completions (WInput * in);
 
-/* src/complete.c */
-void complete (WInput * in);
-
 /*** inline functions ****************************************************************************/
 
 #endif /* MC__WIDGET_INPUT_H */

+ 2 - 0
src/filemanager/complete.c → lib/widget/input_complete.c

@@ -46,6 +46,8 @@
 #include "lib/util.h"
 #include "lib/widget.h"
 
+#include "input_complete.h"
+
 /*** global variables ****************************************************************************/
 
 /* Linux declares environ in <unistd.h>, so don't repeat it here. */

+ 18 - 0
lib/widget/input_complete.h

@@ -0,0 +1,18 @@
+#ifndef MC__WIDGET_INPUT_COMPLETE_H
+#define MC__WIDGET_INPUT_COMPLETE_H
+
+/*** typedefs(not structures) and defined constants **********************************************/
+
+/*** enums ***************************************************************************************/
+
+/*** structures declarations (and typedefs of structures)*****************************************/
+
+/*** global variables defined in .c file *********************************************************/
+
+/*** declarations of public functions ************************************************************/
+
+void complete (WInput * in);
+
+/*** inline functions ****************************************************************************/
+
+#endif /* MC__WIDGET_INPUT_COMPLETE_H */

+ 0 - 1
src/filemanager/Makefile.am

@@ -8,7 +8,6 @@ libmcfilemanager_la_SOURCES = \
 	chown.c chown.h \
 	cmd.c cmd.h \
 	command.c command.h \
-	complete.c \
 	dir.c dir.h \
 	ext.c ext.h \
 	file.c file.h \