/* $Id: evaluator.h 1092 2010-01-23 12:04:55Z volker $
* $URL: https://ssl.bulix.org/svn/lcd4linux/trunk/evaluator.h $
*
* expression evaluation
*
* Copyright (C) 2003 Michael Reinelt <michael@reinelt.co.at>
* Copyright (C) 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
*
* This file is part of LCD4Linux.
*
* LCD4Linux 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, or (at your option)
* any later version.
*
* LCD4Linux 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*
*/
#ifndef _EVALUATOR_H_
#define _EVALUATOR_H_
/* RESULT bitmask */
#define R_NUMBER 1
#define R_STRING 2
typedef struct {
int type;
int size;
double number;
char *string;
} RESULT;
/* strndup() may be not available on several platforms */
#ifndef HAVE_STRNDUP
#include <string.h>
char *strndup(const char *source, size_t len);
#endif
int SetVariable(const char *name, RESULT * value);
int SetVariableNumeri# Channel table for Paço do Lumiar - MA - Brazil
# Source: http://www.portalbsd.com.br/terrestres_channels.php?channels=3258
# Physical channel 22
[TV Guará]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 521142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 25
[Rede Vida]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 539142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 28
[TV Meio Norte MA]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 557142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 29
[TV Mirante]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 563142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 36
[TV Cidade/MA]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 605142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 38
[TV Difusora]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 617142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 41
[TV São Luís]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 635142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 49
[TV Aparecida]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 683142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 51
[TV Senado, TV Assembleia MA, TV Câmara]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 695142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0
# Physical channel 54
[TV UFMA]
DELIVERY_SYSTEM = ISDBT
BANDWIDTH_HZ = 6000000
FREQUENCY = 713142857
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
INVERSION = AUTO
GUARD_INTERVAL = AUTO
TRANSMISSION_MODE = AUTO
ISDBT_LAYER_ENABLED = 7
ISDBT_SOUND_BROADCASTING = 0
ISDBT_SB_SUBCHANNEL_ID = 0
ISDBT_SB_SEGMENT_IDX = 0
ISDBT_SB_SEGMENT_COUNT = 0
ISDBT_LAYERA_FEC = AUTO
ISDBT_LAYERA_MODULATION = QAM/AUTO
ISDBT_LAYERA_SEGMENT_COUNT = 0
ISDBT_LAYERA_TIME_INTERLEAVING = 0
ISDBT_LAYERB_FEC = AUTO
ISDBT_LAYERB_MODULATION = QAM/AUTO
ISDBT_LAYERB_SEGMENT_COUNT = 0
ISDBT_LAYERB_TIME_INTERLEAVING = 0
ISDBT_LAYERC_FEC = AUTO
ISDBT_LAYERC_MODULATION = QAM/AUTO
ISDBT_LAYERC_SEGMENT_COUNT = 0
ISDBT_LAYERC_TIME_INTERLEAVING = 0