Rename miracle, valerie, humperdink, and albino.
[melted] / src / mvcp-client / client.h
diff --git a/src/mvcp-client/client.h b/src/mvcp-client/client.h
new file mode 100644 (file)
index 0000000..59d97f9
--- /dev/null
@@ -0,0 +1,66 @@
+/*
+ * client.h -- Valerie client demo
+ * Copyright (C) 2002-2003 Ushodaya Enterprises Limited
+ * Author: Charles Yates <charles.yates@pandora.be>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _DEMO_CLIENT_H_
+#define _DEMO_CLIENT_H_
+
+#include <stdio.h>
+#include <pthread.h>
+#include <valerie/valerie.h>
+
+/** Queue for unit playback
+*/
+
+typedef struct 
+{
+       int mode;
+       int unit;
+       int position;
+       int head;
+       int tail;
+       char list[ 50 ][ PATH_MAX + NAME_MAX ];
+       int ignore;
+}
+*dv_demo_queue, dv_demo_queue_t;
+
+/** Structure for storing app state. 
+*/
+
+typedef struct
+{
+       int disconnected;
+       valerie_parser parser;
+       valerie dv;
+       valerie dv_status;
+       int selected_unit;
+       char current_directory[ 512 ];
+       char last_directory[ 512 ];
+       int showing;
+       int terminated;
+       pthread_t thread;
+       dv_demo_queue_t queues[ MAX_UNITS ];
+}
+*dv_demo, dv_demo_t;
+
+extern dv_demo dv_demo_init( valerie_parser );
+extern void dv_demo_run( dv_demo );
+extern void dv_demo_close( dv_demo );
+
+#endif