0bac95bc0289eeef15823eae59a61f0c1eacc68a
[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 * Copyright (C) 2010 Dan Dennedy <dan@dennedy.org>
5 *
6 * This program 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 * This program 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 this program; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 */
20
21 #ifndef _DV1394_APP_
22 #define _DV1394_APP_
23
24 #include <gtk/gtk.h>
25 #include <mvcp/mvcp.h>
26
27 typedef struct page_t *page;
28
29 typedef struct
30 {
31 GtkWidget *window;
32 GtkWidget *connect;
33 mvcp_parser parser;
34 mvcp command;
35 int page_count;
36 GtkWidget *page_buttons[ 10 ];
37 page pages[ 10 ];
38 int selected_unit;
39
40 // TODO: This comes out later
41 GtkWidget *buttons[ 12 ];
42
43 int trim_in_use;
44 int seek_flag;
45
46 int trim_in;
47 int trim_out;
48 }
49 *dv1394app, dv1394app_t;
50
51 extern dv1394app dv1394app_init( GtkWidget *, char * );
52 extern GtkWidget *dv1394app_get_widget( dv1394app );
53 extern mvcp_parser dv1394app_get_parser( dv1394app );
54 extern mvcp dv1394app_get_command( dv1394app );
55 extern void dv1394app_connect( dv1394app );
56 extern void dv1394app_on_unit_change( dv1394app, int );
57 extern int dv1394app_get_selected_unit( dv1394app );
58 extern void dv1394app_show_status( dv1394app, mvcp_status );
59 extern void dv1394app_disconnect( dv1394app );
60 extern void dv1394app_close( dv1394app );
61
62 #endif
63