1 |
/* CDVDiso |
2 |
* Copyright (C) 2002-2004 CDVDiso Team |
3 |
* |
4 |
* This program is free software; you can redistribute it and/or modify |
5 |
* it under the terms of the GNU General Public License as published by |
6 |
* the Free Software Foundation; either version 2 of the License, or |
7 |
* (at your option) any later version. |
8 |
* |
9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
* GNU General Public License for more details. |
13 |
* |
14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with this program; if not, write to the Free Software |
16 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 |
*/ |
18 |
|
19 |
#include <stdio.h> |
20 |
#include <stdlib.h> |
21 |
#include <stdarg.h> |
22 |
#include <time.h> |
23 |
#include <string.h> |
24 |
#include <sys/types.h> |
25 |
#include <sys/stat.h> |
26 |
#include <unistd.h> |
27 |
#include <fcntl.h> |
28 |
#include <sys/ioctl.h> |
29 |
#include <linux/cdrom.h> |
30 |
#include <zlib.h> |
31 |
#include <bzlib.h> |
32 |
#include <gtk/gtk.h> |
33 |
|
34 |
#ifdef __cplusplus |
35 |
extern "C" |
36 |
{ |
37 |
#endif |
38 |
|
39 |
#include "support.h" |
40 |
#include "callbacks.h" |
41 |
#include "interface.h" |
42 |
|
43 |
#ifdef __cplusplus |
44 |
} |
45 |
#endif |
46 |
|
47 |
#include "CDVDiso.h" |
48 |
|
49 |
void SaveConf(); |
50 |
void LoadConf(); |
51 |
extern void SysMessageLoc(char *fmt, ...); |
52 |
|
53 |
extern char *LibName; |
54 |
|
55 |
extern const u8 revision; |
56 |
extern const u8 build; |
57 |
|
58 |
extern GtkWidget *AboutDlg, *ConfDlg, *MsgDlg, *FileSel; |
59 |
extern GtkWidget *Edit, *CdEdit; |
60 |
extern bool stop; |
61 |
|
62 |
extern GtkWidget *Method,*Progress; |
63 |
extern GtkWidget *BtnCompress, *BtnDecompress; |
64 |
extern GtkWidget *BtnCreate, *BtnCreateZ; |
65 |
|
66 |
extern GList *methodlist; |
67 |
|
68 |
// Make it easier to check and set checkmarks in the gui |
69 |
#define is_checked(main_widget, widget_name) (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(lookup_widget(main_widget, widget_name)))) |
70 |
#define set_checked(main_widget,widget_name, state) gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(lookup_widget(main_widget, widget_name)), state) |
71 |
|
72 |
|
73 |
extern void OnFileSel(GtkButton *button, gpointer user_data); |
74 |
extern void OnStop(GtkButton *button, gpointer user_data); |
75 |
extern void OnCompress(GtkButton *button, gpointer user_data); |
76 |
extern void OnDecompress(GtkButton *button, gpointer user_data); |
77 |
extern void OnCreate(GtkButton *button, gpointer user_data); |
78 |
extern void OnCreateZ(GtkButton *button, gpointer user_data); |
79 |
extern void OnOk(GtkButton *button, gpointer user_data); |
80 |
extern void OnCancel(GtkButton *button, gpointer user_data); |
81 |
|