Revision a24dbbce src/tune.h

View differences:

src/tune.h
1 1
#ifndef _TUNE_H
2 2
#define _TUNE_H
3 3

  
4
#ifdef NEWSTRUCT
5
  #include <linux/dvb/frontend.h>
6
#else
7

  
8
// The following defines make the "OLDSTRUCT" driver more compatible with NEWSTRUCT.
9

  
10
  #include <ost/frontend.h>
11

  
12
#define fe_status_t FrontendStatus
13
#define fe_spectral_inversion_t SpectralInversion
14
#define fe_modulation_t Modulation
15
#define fe_code_rate_t CodeRate
16
#define fe_transmit_mode_t TransmitMode
17
#define fe_guard_interval_t GuardInterval
18
#define fe_bandwidth_t BandWidth
19
#define fe_sec_voltage_t SecVoltage
20
#define dmx_pes_filter_params dmxPesFilterParams
21
#define dmx_sct_filter_params dmxSctFilterParams
22
#define dmx_pes_type_t dmxPesType_t
23
#endif
4
#include <linux/dvb/frontend.h>
5
#include <linux/dvb/version.h>
24 6

  
25 7
#include "dvb_defaults.h"
26 8

  
9
#undef DVB_ATSC
10
#if defined(DVB_API_VERSION_MINOR)
11
#if DVB_API_VERSION == 3 && DVB_API_VERSION_MINOR >= 1
12
#define DVB_ATSC 1
13
#endif
14
#endif
15

  
16

  
27 17
#ifdef __cplusplus
28 18
extern "C" {
29 19
#endif
30 20

  
31
int tune_it(int fd_frontend, int fd_sec, unsigned int freq, unsigned int srate, char pol, int tone, fe_spectral_inversion_t specInv, unsigned int diseqc,fe_modulation_t modulation,fe_code_rate_t HP_CodeRate,fe_transmit_mode_t TransmissionMode,fe_guard_interval_t guardInterval, fe_bandwidth_t bandwidth);
21
int tune_it(int fd_frontend, unsigned int freq, unsigned int srate, char pol, int tone, fe_spectral_inversion_t specInv, unsigned char diseqc,fe_modulation_t modulation,fe_code_rate_t HP_CodeRate,fe_transmit_mode_t TransmissionMode,fe_guard_interval_t guardInterval, fe_bandwidth_t bandwidth, fe_code_rate_t LP_CodeRate, fe_hierarchy_t hier);
32 22

  
33 23
#ifdef __cplusplus
34 24
}

Also available in: Unified diff