2
* Copyright (C) 2002-2004 the xine project
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
* $Id: engine.h,v 1.4 2004/11/05 23:11:46 dsalt Exp $
20
* init xine engine, set up script engine with player object
27
#include "script_engine.h"
29
void engine_init (void);
31
int engine_exec (const char *cmd, se_print_cb_t cb, void *cb_data);
32
int v_engine_exec (const char *cmd, se_print_cb_t cb, void *cb_data, ...);
34
/* non-zero on failure */
35
#define engine_mutex_trylock(s) \
36
(!(!pthread_mutex_trylock (&engine_lock) || \
37
(se->print_cb (se->print_cb_data, "sorry - engine busy."), 0)))