aboutsummaryrefslogtreecommitdiffstats
path: root/channels-conf/dvb-t/cz-Praha (follow)
AgeCommit message (Collapse)AuthorFilesLines
2007-05-16overall whitespace & encoding fixesChristoph Pfister1-2/+0
patch from Matthias Schwarzott: - use utf8 everywhere for files & file names additionally by me: - remove empty lines at the beginning of the files - remove any control character (< 0x20) except \n and \t - remove trailing whitespace - exactly one newline at the end of the files - remove junk from dvb-t/au-Melbourne-Upwey
2004-03-02- added new DVB-T service lists for Australia, submitted byJohannes Stezenbach1-0/+18
Peter Urbanec and Hamish Moffatt - cleaned up the serivce list mess --- util/szap/channels-conf/dvb-c/de-Berlin | 171 +++++++++++++++ util/szap/channels-conf/dvb-s/Astra-19.2E | 226 +++++++++++++++++++++ util/szap/channels-conf/dvb-t/au-Brisbane | 31 ++ util/szap/channels-conf/dvb-t/au-Melbourne | 18 + util/szap/channels-conf/dvb-t/au-Sydney-NorthShore | 33 +++ util/szap/channels-conf/dvb-t/cz-Praha | 18 + util/szap/channels-conf/dvb-t/de-Berlin | 51 ++++ util/szap/channels-conf/dvb-t/es-Collserola | 25 ++ util/szap/channels-conf/dvb-t/es-Madrid | 16 + util/szap/channels-conf/dvb-t/uk-Crystal-Palace | 70 ++++++ util/szap/channels-conf/dvb-t/uk-Hannington | 28 ++ util/szap/channels-conf/dvb-t/uk-Oxford | 41 +++ util/szap/channels-conf/dvb-t/uk-Reigate | 51 ++++ util/szap/channels-conf/dvb-t/uk-Sandy-Heath | 13 + util/szap/channels.conf-dvbc-berlin | 171 --------------- util/szap/channels.conf-dvbs-astra | 226 --------------------- util/szap/channels.conf-dvbt-australia | 31 -- util/szap/channels.conf-dvbt-berlin | 51 ---- util/szap/channels.conf-dvbt-collserola | 25 -- util/szap/channels.conf-dvbt-crystal-palace | 70 ------ util/szap/channels.conf-dvbt-hannington | 28 -- util/szap/channels.conf-dvbt-madrid | 16 - util/szap/channels.conf-dvbt-oxford | 41 --- util/szap/channels.conf-dvbt-praha | 18 - util/szap/channels.conf-dvbt-reigate | 51 ---- util/szap/channels.conf-dvbt-sandy_heath | 13 - 26 files changed, 792 insertions(+), 741 deletions(-)
2004-01-17DVB apps/utils from old "DVB" CVS tree, mildly edited to makeJohannes Stezenbach1-16/+0
them compile with the dvb-kernel DVB API includes (uint32_t etc.) --- Makefile | 8 TODO | 3 util/scan/dvb-c/at-Vienna | 3 util/scan/dvb-c/ch-unknown | 3 util/scan/dvb-c/de-Berlin | 4 util/scan/dvb-c/de-iesy | 3 util/scan/dvb-c/fi-3ktv | 3 util/scan/dvb-c/fi-vaasa-oncable | 13 + util/scan/dvb-s/Astra-19.2E | 3 util/scan/dvb-s/Hispasat-30.0W | 6 util/scan/dvb-s/Hotbird-13.0E | 3 util/scan/dvb-s/PAS-43.0W | 6 util/scan/dvb-s/Sirius-5.0E | 5 util/scan/dvb-s/Telecom2-8.0W | 4 util/scan/dvb-s/Telstar12-15.0W | 4 util/scan/dvb-s/Thor-1.0W | 8 util/scan/dvb-s/Turksat-42.0E | 4 util/scan/dvb-t/au-Darwin | 5 util/scan/dvb-t/au-canberra | 12 + util/scan/dvb-t/au-sydney_north_shore | 12 + util/scan/dvb-t/au-unknown | 3 util/scan/dvb-t/de-Berlin | 5 util/scan/dvb-t/es-Collserola | 6 util/scan/dvb-t/fi-Espoo | 3 util/scan/dvb-t/fi-Turku | 3 util/scan/dvb-t/uk-BlackHill | 3 util/scan/dvb-t/uk-CrystalPalace | 3 util/scan/dvb-t/uk-Hannington | 3 util/scan/dvb-t/uk-Oxford | 3 util/scan/dvb-t/uk-PontopPike | 3 util/scan/dvb-t/uk-Redruth | 3 util/scan/dvb-t/uk-Reigate | 3 util/scan/dvb-t/uk-Rowridge | 3 util/scan/dvb-t/uk-SandyHeath | 3 util/scan/dvb-t/uk-Storeton | 3 util/scan/dvb-t/uk-WinterHill | 3 util/szap/channels.conf-dvbc-berlin | 171 +++++++++++++++++++++ util/szap/channels.conf-dvbs-astra | 226 ++++++++++++++++++++++++++++ util/szap/channels.conf-dvbt-australia | 31 +++ util/szap/channels.conf-dvbt-berlin | 51 ++++++ util/szap/channels.conf-dvbt-collserola | 25 +++ util/szap/channels.conf-dvbt-crystal-palace | 70 ++++++++ util/szap/channels.conf-dvbt-hannington | 28 +++ util/szap/channels.conf-dvbt-madrid | 16 + util/szap/channels.conf-dvbt-oxford | 41 +++++ util/szap/channels.conf-dvbt-reigate | 51 ++++++ util/szap/channels.conf-dvbt-sandy_heath | 13 + 47 files changed, 888 insertions(+) +++ scanscan/dvb-c/at-Vienna @@ -0,0 +1,3 @@ +# Kabel Vienna +# freq sr fec mod +C 377750000 6900000 NONE QAM256
2007-05-16overall whitespace & encoding fixesChristoph Pfister1-2/+0
patch from Matthias Schwarzott: - use utf8 everywhere for files & file names additionally by me: - remove empty lines at the beginning of the files - remove any control character (< 0x20) except \n and \t - remove trailing whitespace - exactly one newline at the end of the files - remove junk from dvb-t/au-Melbourne-Upwey
2004-03-02- added new DVB-T service lists for Australia, submitted byJohannes Stezenbach1-0/+18
Peter Urbanec and Hamish Moffatt - cleaned up the serivce list mess --- util/szap/channels-conf/dvb-c/de-Berlin | 171 +++++++++++++++ util/szap/channels-conf/dvb-s/Astra-19.2E | 226 +++++++++++++++++++++ util/szap/channels-conf/dvb-t/au-Brisbane | 31 ++ util/szap/channels-conf/dvb-t/au-Melbourne | 18 + util/szap/channels-conf/dvb-t/au-Sydney-NorthShore | 33 +++ util/szap/channels-conf/dvb-t/cz-Praha | 18 + util/szap/channels-conf/dvb-t/de-Berlin | 51 ++++ util/szap/channels-conf/dvb-t/es-Collserola | 25 ++ util/szap/channels-conf/dvb-t/es-Madrid | 16 + util/szap/channels-conf/dvb-t/uk-Crystal-Palace | 70 ++++++ util/szap/channels-conf/dvb-t/uk-Hannington | 28 ++ util/szap/channels-conf/dvb-t/uk-Oxford | 41 +++ util/szap/channels-conf/dvb-t/uk-Reigate | 51 ++++ util/szap/channels-conf/dvb-t/uk-Sandy-Heath | 13 + util/szap/channels.conf-dvbc-berlin | 171 --------------- util/szap/channels.conf-dvbs-astra | 226 --------------------- util/szap/channels.conf-dvbt-australia | 31 -- util/szap/channels.conf-dvbt-berlin | 51 ---- util/szap/channels.conf-dvbt-collserola | 25 -- util/szap/channels.conf-dvbt-crystal-palace | 70 ------ util/szap/channels.conf-dvbt-hannington | 28 -- util/szap/channels.conf-dvbt-madrid | 16 - util/szap/channels.conf-dvbt-oxford | 41 --- util/szap/channels.conf-dvbt-praha | 18 - util/szap/channels.conf-dvbt-reigate | 51 ---- util/szap/channels.conf-dvbt-sandy_heath | 13 - 26 files changed, 792 insertions(+), 741 deletions(-)
0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
/* $Id: plugin_cpuinfo.c,v 1.10 2004/06/17 06:23:43 reinelt Exp $
 *
 * plugin for /proc/cpuinfo parsing
 *
 * Copyright 2003 Michael Reinelt <reinelt@eunet.at>
 * Copyright 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.
 *
 *
 * $Log: plugin_cpuinfo.c,v $
 * Revision 1.10  2004/06/17 06:23:43  reinelt
 *
 * hash handling rewritten to solve performance issues
 *
 * Revision 1.9  2004/03/11 06:39:59  reinelt
 * big patch from Martin:
 * - reuse filehandles
 * - memory leaks fixed
 * - earlier busy-flag checking with HD44780
 * - reuse memory for strings in RESULT and hash
 * - netdev_fast to wavid time-consuming regex
 *
 * Revision 1.8  2004/03/03 03:47:04  reinelt
 * big patch from Martin Hejl:
 * - use qprintf() where appropriate
 * - save CPU cycles on gettimeofday()
 * - add quit() functions to free allocated memory
 * - fixed lots of memory leaks
 *
 * Revision 1.7  2004/01/29 04:40:02  reinelt
 * every .c file includes "config.h" now
 *
 * Revision 1.6  2004/01/21 10:48:17  reinelt
 * hash_age function added
 *
 * Revision 1.5  2004/01/16 11:12:26  reinelt
 * some bugs in plugin_xmms fixed, parsing moved to own function
 * plugin_proc_stat nearly finished
 *
 * Revision 1.4  2004/01/16 07:26:25  reinelt
 * moved various /proc parsing to own functions
 * made some progress with /proc/stat parsing
 *
 * Revision 1.3  2004/01/15 04:29:45  reinelt
 * moved lcd4linux.conf.sample to *.old
 * lcd4linux.conf.sample with new layout
 * new plugins 'loadavg' and 'meminfo'
 * text widget have pre- and postfix
 *
 * Revision 1.2  2004/01/14 11:33:00  reinelt
 * new plugin 'uname' which does what it's called
 * text widget nearly finished
 * first results displayed on MatrixOrbital
 *
 * Revision 1.1  2004/01/13 10:03:01  reinelt
 * new util 'hash' for associative arrays
 * new plugin 'cpuinfo'
 *
 */

/* 
 * exported functions:
 *
 * int plugin_init_cpuinfo (void)
 *  adds functions to access /proc/cpuinfo
 *
 */


#include "config.h"

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>

#include "debug.h"
#include "plugin.h"
#include "hash.h"


static HASH CPUinfo;
static FILE *stream = NULL;

static int parse_cpuinfo (void)
{
  int age;
  
  // reread every second only
  age = hash_age(&CPUinfo, NULL);
  if (age > 0 && age <= 1000) return 0;
  
  if (stream == NULL) stream = fopen("/proc/cpuinfo", "r");
  if (stream == NULL) {
    error ("fopen(/proc/cpuinfo) failed: %s", strerror(errno));
    return -1;
  }
  rewind(stream);
  while (!feof(stream)) {
    char buffer[256];
    char *c, *key, *val;
    fgets (buffer, sizeof(buffer), stream);
    c = strchr(buffer, ':');
    if (c == NULL) continue;
    key = buffer; val = c+1;
    // strip leading blanks from key
    while (isspace(*key)) *key++ = '\0';
    // strip trailing blanks from key
    do *c = '\0'; while (isspace(*--c));
    // strip leading blanks from value
    while (isspace(*val)) *val++ = '\0';
    // strip trailing blanks from value
    for (c = val; *c != '\0'; c++);
    while (isspace(*--c)) *c = '\0';
    
    // add entry to hash table
    hash_put (&CPUinfo, key, val);
      
  }
  return 0;
}
  

static void my_cpuinfo (RESULT *result, RESULT *arg1)
{
  char *key, *val;
  
  if (parse_cpuinfo() < 0) {
    SetResult(&result, R_STRING, ""); 
    return;
  }
  
  key = R2S(arg1);
  val = hash_get(&CPUinfo, key, NULL);
  if (val == NULL) val = "";
  
  SetResult(&result, R_STRING, val); 
}


int plugin_init_cpuinfo (void)
{
  hash_create (&CPUinfo);
  AddFunction ("cpuinfo", 1, my_cpuinfo);
  return 0;
}

void plugin_exit_cpuinfo(void) 
{
  if (stream != NULL) {
    fclose (stream);
    stream = NULL;
  }
  hash_destroy(&CPUinfo);
}