a008e4ee236b22312850542aad0b6a9c116904d7
[rugen] / src / dv1394app.h
1 /*
2 * dv1394app.h -- GTK+ 2 dv1394d client demo
3 * Copyright (C) 2002-2003 Charles Yates <charles.yates@pandora.be>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 #ifndef _DV1394_APP_
21 #define _DV1394_APP_
22
23 #include <gtk/gtk.h>
24 #include <valerie/valerie.h>
25
26 typedef struct page_t *page;
27
28 typedef struct
29 {
30 GtkWidget *window;
31 GtkWidget *connect;
32 valerie_parser parser;
33 valerie command;
34 int page_count;
35 GtkWidget *page_buttons[ 10 ];
36 page pages[ 10 ];
37 int selected_unit;
38
39 // TODO: This comes out later
40 GtkWidget *buttons[ 12 ];
41
42 int trim_in_use;
43 int seek_flag;
44
45 int trim_in;
46 int trim_out;
47 }
48 *dv1394app, dv1394app_t;
49
50 extern dv1394app dv1394app_init( GtkWidget *, char * );
51 extern GtkWidget *dv1394app_get_widget( dv1394app );
52 extern valerie_parser dv1394app_get_parser( dv1394app );
53 extern valerie dv1394app_get_command( dv1394app );
54 extern void dv1394app_connect( dv1394app );
55 extern void dv1394app_on_unit_change( dv1394app, int );
56 extern int dv1394app_get_selected_unit( dv1394app );
57 extern void dv1394app_show_status( dv1394app, valerie_status );
58 extern void dv1394app_disconnect( dv1394app );
59 extern void dv1394app_close( dv1394app );
60
61 #endif
62