initial import
[dosrtxon] / libs / mikmod / playercode / mlreg.c
1 /*      MikMod sound library
2         (c) 1998, 1999 Miodrag Vallat and others - see file AUTHORS for
3         complete list.
4
5         This library is free software; you can redistribute it and/or modify
6         it under the terms of the GNU Library General Public License as
7         published by the Free Software Foundation; either version 2 of
8         the License, or (at your option) any later version.
9
10         This program is distributed in the hope that it will be useful,
11         but WITHOUT ANY WARRANTY; without even the implied warranty of
12         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13         GNU Library General Public License for more details.
14
15         You should have received a copy of the GNU Library General Public
16         License along with this library; if not, write to the Free Software
17         Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18         02111-1307, USA.
19 */
20
21 /*==============================================================================
22
23   $Id$
24
25   Routine for registering all loaders in libmikmod for the current platform.
26
27 ==============================================================================*/
28
29 #ifdef HAVE_CONFIG_H
30 #include "config.h"
31 #endif
32
33 #include "mikmod_internals.h"
34
35 static void MikMod_RegisterAllLoaders_internal(void)
36 {
37         _mm_registerloader(&load_it);
38         _mm_registerloader(&load_mod);
39         _mm_registerloader(&load_s3m);
40         _mm_registerloader(&load_xm);
41 }
42
43 MIKMODAPI void MikMod_RegisterAllLoaders(void)
44 {
45         MUTEX_LOCK(lists);
46         MikMod_RegisterAllLoaders_internal();
47         MUTEX_UNLOCK(lists);
48 }
49 /* ex:set ts=4: */