summaryrefslogtreecommitdiff
path: root/src/xine-engine/xine_private.h
blob: 6bdebd4eb04120bd0e6743271565ba503a08f126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 * Copyright (C) 2000-2011 the xine project
 *
 * This file is part of xine, a free video player.
 *
 * xine is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * xine is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
 */

#ifndef HAVE_XINE_PRIVATE_H
#define HAVE_XINE_PRIVATE_H

#ifndef XINE_LIBRARY_COMPILE
# error xine_private.h is for libxine private use only!
#endif

#include "configure.h"

/* Export internal only for functions that are unavailable to plugins */
#if defined(SUPPORT_ATTRIBUTE_VISIBILITY_INTERNAL)
# define INTERNAL __attribute__((__visibility__("internal")))
#elif defined(SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT)
# define INTERNAL __attribute__((__visibility__("default")))
#else
# define INTERNAL
#endif

#ifdef __cplusplus
extern "C" {
#endif

/*
 * make file descriptors and sockets uninheritable
 */
int _x_set_file_close_on_exec(int fd) INTERNAL;

int _x_set_socket_close_on_exec(int s) INTERNAL;

#ifdef __cplusplus
}
#endif

#endif