You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mlt/src/humperdink/client.h

67 lines
1.6 KiB

/*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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