changeset 35347:11408d97de7a

Make import_file_into_gui() available. This function allows adding files to the GUI's playlist and can be used in other places as well.
author ib
date Thu, 22 Nov 2012 13:10:46 +0000
parents 9eeba22fd78a
children 3aba69339390
files gui/interface.c gui/interface.h
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Thu Nov 22 10:28:30 2012 +0000
+++ b/gui/interface.c	Thu Nov 22 13:10:46 2012 +0000
@@ -835,7 +835,7 @@
 }
 
 // This function adds/inserts one file into the gui playlist.
-static int import_file_into_gui(char *temp, int insert)
+int import_file_into_gui(char *temp, int insert)
 {
     char *filename, *pathname;
     plItem *item;
--- a/gui/interface.h	Thu Nov 22 10:28:30 2012 +0000
+++ b/gui/interface.h	Thu Nov 22 13:10:46 2012 +0000
@@ -150,4 +150,6 @@
 void gmp_msg(int mod, int lev, const char *format, ...);
 //@}
 
+int import_file_into_gui(char *temp, int insert);
+
 #endif /* MPLAYER_GUI_INTERFACE_H */