]> git.sesse.net Git - vlc/blob - include/tests.h
ef66c974b909b938858b1b3a0aa69c12fa4cc671
[vlc] / include / tests.h
1 /*****************************************************************************
2  * tests.h: several test functions needed by the plugins
3  *****************************************************************************
4  * Copyright (C) 1996, 1997, 1998, 1999, 2000 VideoLAN
5  * $Id: tests.h,v 1.10 2001/05/14 15:58:03 reno Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  * 
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23
24 #define CPU_CAPABILITY_NONE    0
25 #define CPU_CAPABILITY_486     1<<0
26 #define CPU_CAPABILITY_586     1<<1
27 #define CPU_CAPABILITY_PPRO    1<<2
28 #define CPU_CAPABILITY_MMX     1<<3
29 #define CPU_CAPABILITY_3DNOW   1<<4
30 #define CPU_CAPABILITY_MMXEXT  1<<5
31 #define CPU_CAPABILITY_SSE     1<<6
32 #define CPU_CAPABILITY_ALTIVEC 1<<16
33
34 /*****************************************************************************
35  * TestVersion: tests if the given string equals the current version
36  *****************************************************************************/
37 int TestVersion  ( char * psz_version );
38 int TestProgram  ( char * psz_program );
39 int TestMethod   ( char * psz_var, char * psz_method );
40 int TestCPU      ( int i_capabilities );
41