1 /** \file uicart.h 2 * \brief Widget to attach carts - header 3 * 4 * \author Bas Wassink <b.wassink@ziggo.nl> 5 */ 6 7 /* 8 * This file is part of VICE, the Versatile Commodore Emulator. 9 * See README for copyright notice. 10 * 11 * This program is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 2 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with this program; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 24 * 02111-1307 USA. 25 * 26 */ 27 28 #ifndef VICE_UICART_H 29 #define VICE_UICART_H 30 31 #include "vice.h" 32 #include <gtk/gtk.h> 33 34 #include "cartridge.h" 35 36 void uicart_set_list_func(cartridge_info_t *(*func)(void)); 37 void uicart_set_detect_func(int (*func)(const char *)); 38 void uicart_set_attach_func(int (*func)(int, const char *)); 39 void uicart_set_freeze_func(void (*func)(void)); 40 void uicart_set_detach_func(void (*func)(int)); 41 void uicart_set_default_func(void (*func)(void)); 42 void uicart_set_filename_func(const char * (*func)(void)); 43 void uicart_set_wipe_func(void (*func)(void)); 44 45 gboolean uicart_smart_attach_dialog(GtkWidget *widget, gpointer user_data); 46 gboolean uicart_trigger_freeze(void); 47 gboolean uicart_detach(void); 48 49 void uicart_show_dialog(GtkWidget *widget, gpointer data); 50 51 void uicart_shutdown(void); 52 53 #endif 54