openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
freesatv2.cpp File Reference
#include "freesatv2.h"
#include <asm/types.h>
#include "cfile.h"

Classes

struct  huffTableEntry
 

Macros

#define START   '\0'
 
#define STOP   '\0'
 
#define ESCAPE   '\1'
 
#define DATADIR   "/usr/share"
 
#define FREESAT_DATA_DIRECTORY   DATADIR
 
#define TABLE1_FILENAME   FREESAT_DATA_DIRECTORY "/enigma2/freesat.t1"
 
#define TABLE2_FILENAME   FREESAT_DATA_DIRECTORY "/enigma2/freesat.t2"
 

Functions

static void loadFile (huffTableEntry **table, const char *filename)
 
static unsigned char resolveChar (const char *str)
 Convert a textual character description into a value. More...
 
static unsigned long decodeBinary (const char *binary)
 Decode a binary string into a value. More...
 

Macro Definition Documentation

◆ DATADIR

#define DATADIR   "/usr/share"

◆ ESCAPE

#define ESCAPE   '\1'

◆ FREESAT_DATA_DIRECTORY

#define FREESAT_DATA_DIRECTORY   DATADIR

◆ START

#define START   '\0'

◆ STOP

#define STOP   '\0'

◆ TABLE1_FILENAME

#define TABLE1_FILENAME   FREESAT_DATA_DIRECTORY "/enigma2/freesat.t1"

◆ TABLE2_FILENAME

#define TABLE2_FILENAME   FREESAT_DATA_DIRECTORY "/enigma2/freesat.t2"

Function Documentation

◆ decodeBinary()

static unsigned long decodeBinary ( const char *  binary)
static

Decode a binary string into a value.

Parameters
binary- Binary string to decode
Returns
Decoded value

◆ loadFile()

static void loadFile ( huffTableEntry **  table,
const char *  filename 
)
static

◆ resolveChar()

static unsigned char resolveChar ( const char *  str)
static

Convert a textual character description into a value.

Parameters
str- Encoded (in someway) string
Returns
Raw character