OSDN Git Service

LinGui:
[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_hal_init(void);
45 gboolean ghb_message_dialog(
46         GtkMessageType type, const gchar *message, 
47         const gchar *no, const gchar *yes);
48 void ghb_init_dep_map(void);
49 gboolean ghb_cancel_encode(const gchar *extra_msg);
50 GValue* ghb_start_next_job(signal_user_data_t *ud, gboolean find_first);
51 void ghb_check_dependency(signal_user_data_t *ud, GtkWidget *widget);
52 void ghb_do_scan( signal_user_data_t *ud, const gchar *filename, 
53         gint titlenum, gboolean force);
54 void ghb_log(gchar *log, ...);
55 gpointer ghb_check_update(signal_user_data_t *ud);
56 void ghb_uninhibit_gpm(void);
57 void ghb_inhibit_gpm(void);
58 #if defined(_WIN32)
59 void wm_drive_changed(MSG *msg, signal_user_data_t *ud);
60 #endif
61
62 #endif // _CALLBACKS_H_
63