]> git.sesse.net Git - vlc/blob - src/posix/specific.c
LGPL
[vlc] / src / posix / specific.c
1 /*****************************************************************************
2  * specific.c: stubs for POSIX OS-specific initialization
3  *****************************************************************************
4  * Copyright © 2008 Rémi Denis-Courmont
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
19  *****************************************************************************/
20
21 #ifdef HAVE_CONFIG_H
22 # include "config.h"
23 #endif
24
25 #include <vlc_common.h>
26 #include "../libvlc.h"
27 #include <pthread.h>
28
29 static void set_libvlc_path (void)
30 {
31     psz_vlcpath = (char *)PKGLIBDIR;
32 }
33
34 void system_Init (void)
35 {
36     pthread_once_t once = PTHREAD_ONCE_INIT;
37
38     pthread_once (&once, set_libvlc_path);
39 }
40
41 void system_Configure (libvlc_int_t *libvlc,
42                        int argc, const char *const argv[])
43 {
44     (void)libvlc; (void)argc; (void)argv;
45 }
46
47 void system_End (void)
48 {
49 }