/* Directory hotlist -- for the Midnight Commander
 * Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 * 2003, 2004, 2005, 2006, 2007,2008  Free Software Foundation, Inc.
 * 
 * 
 * See OrigAuthors.txt in top directory of module
 * 
 * This program 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 2 of the License, or
 * (at your option) any later version.
 * 
 * This program 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 this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  
 */
/* -------------------------------------------------------------------------- */
#include <config.h>
#include <stdlib.h>

#define USE_MC_MODULE__HOTLIST_PRIVATE_H 1
#include "hotlist/private.h"
/* -------------------------------------------------------------------------- */
/* ************************************************************************** */
char *
hotlist_cmd (
    int vfs_or_hotlist )
{

    char *target = NULL;
    hotlist_m_loadall(NULL, vfs_or_hotlist);
    Gf_default_hotlist->state.type = vfs_or_hotlist;

    hotlist_v_main_window_show(Gf_default_hotlist);

/*
    // display file info 
    attrset ( SELECTED_COLOR );

    hotlist_state.running = 1;
    run_dlg ( hotlist_dlg );
    hotlist_state.running = 0;
    save_hotlist (  );

    switch ( hotlist_dlg->ret_value ) {
	case B_CANCEL:
	    break;

	case B_ENTER:
	    if ( l_hotlist->current->data ) {
		struct hotlist *hlp =
		    ( struct hotlist * ) l_hotlist->current->data;
		target = g_strdup ( hlp->directory );
	    } else
		target = g_strdup ( l_hotlist->current->text );
	    break;
    }

    hotlist_done (  );
    current_group = hotlist;	// next time, start with the root group 
*/
    return target;

}

/* -------------------------------------------------------------------------- */
int save_hotlist (void) {
    // Временная заглушка
    return 0;
}
/* -------------------------------------------------------------------------- */
void done_hotlist (void) {
    // Временная заглушка
}
/* -------------------------------------------------------------------------- */
void add2hotlist_cmd (void) {
    // Временная заглушка
}
/* -------------------------------------------------------------------------- */
