~siretart/gxine/bug.542506

« back to all changes in this revision

Viewing changes to src/engine.h

  • Committer: Bazaar Package Importer
  • Author(s): Siggi Langauf
  • Date: 2005-01-05 01:49:18 UTC
  • mto: (2.1.1 etch) (1.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050105014918-wgldiqcd79ck2b0v
Tags: upstream-0.4.1
ImportĀ upstreamĀ versionĀ 0.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 
 
2
 * Copyright (C) 2002-2004 the xine project
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
17
 *
 
18
 * $Id: engine.h,v 1.4 2004/11/05 23:11:46 dsalt Exp $
 
19
 *
 
20
 * init xine engine, set up script engine with player object
 
21
 */
 
22
 
 
23
#ifndef HAVE_ENGINE_H
 
24
#define HAVE_ENGINE_H
 
25
 
 
26
#include <glib.h>
 
27
#include "script_engine.h"
 
28
 
 
29
void engine_init (void);
 
30
 
 
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, ...);
 
33
 
 
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)))
 
38
 
 
39
#endif