/* $Id$ * $URL$ * * hashes (associative arrays) * * Copyright (C) 2003 Michael Reinelt * Copyright (C) 2004 The LCD4Linux Team * * 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 _HASH_H_ #define _HASH_H_ /* struct timeval */ #include typedef struct { int size; char *value; struct timeval timestamp; } HASH_SLOT; typedef struct { char *key; int val; } HASH_COLUMN; typedef struct { char *key; int index; int nSlot; HASH_SLOT *Slot; } HASH_ITEM; typedef struct { int sorted; struct timeval timestamp; int nItems; HASH_ITEM *Items; int nColumns; HASH_COLUMN *Columns; char *delimiter; } HASH; void hash_create(HASH * Hash); int hash_age(HASH * Hash, const char *key); void hash_set_column(HASH * Hash, const int number, const char *column); void hash_set_delimiter(HASH * Hash, const char *delimiter); char *hash_get(HASH * Hash, const char *key, const char *column); double hash_get_delta(HASH * Hash, const char *key, const char *column, const int delay); double hash_get_regex(HASH * Hash, const char *key, const char *column, const int delay); void hash_put(HASH * Hash, const char *key, const char *value); void hash_put_delta(HASH * Hash, const char *key, const char *value); void hash_destroy(HASH * Hash); #endif og msg
AgeCommit message (Collapse)AuthorFilesLines
2019-09-22dvb-s: update all tables from LyngSatMauro Carvalho Chehab151-4470/+5108
It is time to sync the existing entires with the latest tuning parameters found at http://www.lyngsat.com. The updates are done via some scripting. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-12ke-Nairobi: fix delivery system for two DVB-T2 channelsMauro Carvalho Chehab1-2/+2
There's a typo there. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-12Makefile: fix dvbv3/dvbv5 outputMauro Carvalho Chehab1-3/+4
Changeset 3ccfafaa5202 ("Improve Makefile to avoid "Argument list too long" error") fixed one issue, but broke dvbv3 output. It seems that dvbv5 output was broke since... forever. So, fix it too. Fixes: 3ccfafaa5202 ("Improve Makefile to avoid "Argument list too long" error") Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-08-12Improve Makefile to avoid "Argument list too long" errorJames Le Cuirot1-6/+10
I wouldn't expect a foreach loop to be prone to this issue but it's not the right way to write a Makefile anyway. Note that conversion failures are now fatal and the dvb-t/ke-Nairobi file is failing to convert at the moment. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-25UPC Czech Republic: added mux 538 MHz with 256 QAMJosef Schlehofer1-5/+13
2019-03-25UPC Czech Republic: added more muxes and change QAM/256 on 626 MHzJosef Schlehofer1-3/+19
They recently changed QAM to 256 (from 64) on 626 MHz Source: https://www.upczone.cz/topic/5650-nov%C3%A9-stanice/?do=findComment&comment=98118
2019-03-25Update Astra-19.2ECvH1-4/+5
2019-03-14Intelsat-907-27.5W: update from current LyngSat dataMauro Carvalho Chehab1-24/+197
Update channel list from LyngSat. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-14Intelsat-905-24.5W: update from current LyngSat dataMauro Carvalho Chehab1-18/+711
Update channel list from LyngSat. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2019-03-14Add missing satellitesMauro Carvalho Chehab219-2/+61017
The entries for those satellites were obtained from www.lyngsat.com via script. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>