1 /*
2  * Copyright (C) 2002 2003 2004 2006, Magnus Hjorth
3  *
4  * This file is part of mhWaveEdit.
5  *
6  * mhWaveEdit is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * mhWaveEdit is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with mhWaveEdit; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19  */
20 
21 
22 #ifndef PIPEDIALOG_H_INCLUDED
23 #define PIPEDIALOG_H_INCLUDED
24 
25 #include <gtk/gtk.h>
26 #include "effectdialog.h"
27 #include "historybox.h"
28 
29 
30 #define PIPE_DIALOG(obj) GTK_CHECK_CAST(obj,pipe_dialog_get_type(),PipeDialog)
31 #define PIPE_DIALOG_CLASS(klass) GTK_CHECK_CLASS_CAST(klass,pipe_dialog_get_type(),PipeDialogClass)
32 #define IS_PIPE_DIALOG(obj) GTK_CHECK_TYPE(obj,pipe_dialog_get_type())
33 
34 typedef struct {
35 
36      EffectDialog ed;
37      HistoryBox *cmd;
38      GtkToggleButton *sendwav;
39 
40 } PipeDialog;
41 
42 
43 typedef struct {
44      EffectDialogClass edc;
45 } PipeDialogClass;
46 
47 GtkType pipe_dialog_get_type(void);
48 
49 gpointer pipe_dialog_open_pipe(gchar *command, int *fds, gboolean open_out);
50 gboolean pipe_dialog_error_check(gpointer handle);
51 void pipe_dialog_close(gpointer handle);
52 void pipe_dialog_close_input(gpointer handle);
53 
54 Chunk *pipe_dialog_pipe_chunk(Chunk *chunk, gchar *command, gboolean sendwav,
55 			      int dither_mode, StatusBar *bar,
56 			      off_t *clipcount);
57 gboolean pipe_dialog_send_chunk(Chunk *chunk, gchar *command, gboolean sendwav,
58 				int dither_mode, StatusBar *bar,
59 				off_t *clipcount);
60 
61 #endif
62