OSDN Git Service

f873c871f1f5f4a008add346d36182bb32138714
[handbrake-jp/handbrake-jp-git.git] / gtk / src / callbacks.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3  * callbacks.h
4  * Copyright (C) John Stebbins 2008 <stebbins@stebbins>
5  * 
6  * callbacks.h is free software.
7  * 
8  * You may redistribute it and/or modify it under the terms of the
9  * GNU General Public License, as published by the Free Software
10  * Foundation; either version 2 of the License, or (at your option)
11  * any later version.
12  * 
13  * callbacks.h is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  * 
18  * You should have received a copy of the GNU General Public License
19  * along with callbacks.h.  If not, write to:
20  *      The Free Software Foundation, Inc.,
21  *      51 Franklin Street, Fifth Floor
22  *      Boston, MA  02110-1301, USA.
23  */
24
25 #if !defined(_CALLBACKS_H_)
26 #define _CALLBACKS_H_
27
28 #if defined(_WIN32)
29 #include <windows.h>
30 #endif
31
32 #include <gtk/gtk.h>
33 #include "settings.h"
34
35 void ghb_check_all_depencencies(signal_user_data_t *ud);
36 gboolean ghb_timer_cb(gpointer data);
37 gboolean ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data);
38 void warn_log_handler(
39         const gchar *domain, GLogLevelFlags flags, const gchar *msg, gpointer ud);
40 void debug_log_handler(
41         const gchar *domain, GLogLevelFlags flags, const gchar *msg, gpointer ud);
42 void ghb_hbfd(signal_user_data_t *ud, gboolean hbfd);
43 gboolean ghb_file_menu_add_dvd(signal_user_data_t *ud);
44 void ghb_udev_init(void);
45 gboolean ghb_message_dialog(
46         GtkMessageType type, const gchar *message, 
47         const gchar *no, const gchar *yes);
48 void ghb_error_dialog(
49         GtkMessageType type, const gchar *message, const gchar *cancel);
50 void ghb_init_dep_map(void);
51 void ghb_cancel_encode(signal_user_data_t *ud, const gchar *extra_msg);
52 gboolean ghb_cancel_encode2(signal_user_data_t *ud, const gchar *extra_msg);
53 GValue* ghb_start_next_job(signal_user_data_t *ud, gboolean find_first);
54 void ghb_check_dependency(
55         signal_user_data_t *ud, GtkWidget *widget, const gchar *alt_name);
56 void ghb_do_scan( signal_user_data_t *ud, const gchar *filename, 
57         gint titlenum, gboolean force);
58 void ghb_log(gchar *log, ...);
59 gpointer ghb_check_update(signal_user_data_t *ud);
60 void ghb_uninhibit_gsm(void);
61 void ghb_inhibit_gsm(signal_user_data_t *ud);
62 #if defined(_WIN32)
63 void wm_drive_changed(MSG *msg, signal_user_data_t *ud);
64 #endif
65 gpointer ghb_cache_volnames(signal_user_data_t *ud);
66 void ghb_volname_cache_init(void);
67 void ghb_update_destination_extension(signal_user_data_t *ud);
68 void ghb_update_pending(signal_user_data_t *ud);
69
70 #endif // _CALLBACKS_H_
71