prepare for 3.1 release
[dvblast.git] / config.h
blob249cbf5ed703775614d90f42059531efea50eb63
1 /*****************************************************************************
2 * config.h
3 *****************************************************************************
4 * Copyright (C) 2004, 2008-2011 VideoLAN
6 * Authors: Christophe Massiot <massiot@via.ecp.fr>
7 * Andy Gatward <a.j.gatward@reading.ac.uk>
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.
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.
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _DVBLAST_CONFIG_H_
25 #define _DVBLAST_CONFIG_H_
27 #if defined(__linux__)
28 #define DVBAPI_VERSION ((DVB_API_VERSION)*100+(DVB_API_VERSION_MINOR))
29 #define HAVE_DVB_SUPPORT
30 #define HAVE_ASI_SUPPORT
31 #define HAVE_CLOCK_NANOSLEEP
32 #endif
34 #define HAVE_ICONV
36 #define DEFAULT_PORT 3001
37 #define TS_SIZE 188
38 #define MAX_PIDS 8192
39 #define DEFAULT_IPV4_MTU 1500
40 #define DEFAULT_IPV6_MTU 1280
41 #define PADDING_PID 8191
42 #define WATCHDOG_WAIT 10000000LL
43 #define WATCHDOG_REFRACTORY_PERIOD 60000000LL
44 #define MAX_ERRORS 1000
45 #define DEFAULT_VERBOSITY 4
46 #define MAX_POLL_TIMEOUT 100000 /* 100 ms */
47 #define MIN_POLL_TIMEOUT 100 /* 100 us */
48 #define DEFAULT_OUTPUT_LATENCY 200000 /* 200 ms */
49 #define DEFAULT_MAX_RETENTION 40000 /* 40 ms */
50 #define MAX_EIT_RETENTION 500000 /* 500 ms */
51 #define DEFAULT_FRONTEND_TIMEOUT 30000000 /* 30 s */
52 #define EXIT_STATUS_FRONTEND_TIMEOUT 100
54 // Compatability defines
55 #if defined(__APPLE__)
56 #define ip_mreqn ip_mreq
57 #endif
59 #ifndef IPV6_ADD_MEMBERSHIP
60 #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
61 #define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
62 #endif
64 #endif