Merge mlt++/CUSTOMISING into docs/melted++.
[melted] / src / humperdink / client.h
1 /*
2 * client.h -- Valerie client demo
3 * Copyright (C) 2002-2003 Ushodaya Enterprises Limited
4 * Author: Charles Yates <charles.yates@pandora.be>
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 _DEMO_CLIENT_H_
22 #define _DEMO_CLIENT_H_
23
24 #include <stdio.h>
25 #include <pthread.h>
26 #include <valerie/valerie.h>
27
28 /** Queue for unit playback
29 */
30
31 typedef struct
32 {
33 int mode;
34 int unit;
35 int position;
36 int head;
37 int tail;
38 char list[ 50 ][ PATH_MAX + NAME_MAX ];
39 int ignore;
40 }
41 *dv_demo_queue, dv_demo_queue_t;
42
43 /** Structure for storing app state.
44 */
45
46 typedef struct
47 {
48 int disconnected;
49 valerie_parser parser;
50 valerie dv;
51 valerie dv_status;
52 int selected_unit;
53 char current_directory[ 512 ];
54 char last_directory[ 512 ];
55 int showing;
56 int terminated;
57 pthread_t thread;
58 dv_demo_queue_t queues[ MAX_UNITS ];
59 }
60 *dv_demo, dv_demo_t;
61
62 extern dv_demo dv_demo_init( valerie_parser );
63 extern void dv_demo_run( dv_demo );
64 extern void dv_demo_close( dv_demo );
65
66 #endif