+ module_t *p_module;
+
+ /* And call the module ! All work is done now */
+ playlist_Lock( p_playlist );
+ p_module = module_need( p_export, "playlist export", psz_type, true );
+ playlist_Unlock( p_playlist );
+
+ if( p_module == NULL )
+ msg_Err( p_playlist, "could not export playlist" );
+ else
+ {
+ module_unneed( p_export, p_module );
+ ret = VLC_SUCCESS;
+ }
+ fclose( p_export->p_file );
+ }
+ vlc_object_release( p_export );
+ return ret;
+}
+
+int playlist_Import( playlist_t *p_playlist, const char *psz_file )
+{
+ input_item_t *p_input;
+ const char *const psz_option = "meta-file";
+ char *psz_uri = make_URI( psz_file, NULL );
+
+ if( psz_uri == NULL )
+ return VLC_EGENERIC;