summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-10-16 19:01:06 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2012-10-16 19:01:06 (GMT)
commitcee549473dacfa3e82cb13bd9bbe1c8f0e8c1a6a (patch)
tree58e52874ac32273aa1a6a99b83bdc9c09ebb076d /util.h
parent7de1003a14fb4b41920896c550db4e58f53aea8d (diff)
downloadvdr-plugin-eepg-cee549473dacfa3e82cb13bd9bbe1c8f0e8c1a6a.tar.gz
vdr-plugin-eepg-cee549473dacfa3e82cb13bd9bbe1c8f0e8c1a6a.tar.bz2
fix some includes
Diffstat (limited to 'util.h')
-rw-r--r--util.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/util.h b/util.h
index f15bce6..88e6c62 100644
--- a/util.h
+++ b/util.h
@@ -28,6 +28,32 @@ time_t LocalTime2UTC (time_t t);
time_t UTC2LocalTime (time_t t);
void GetLocalTimeOffset (void);
void CleanString (unsigned char *String);
+void decodeText2 (const unsigned char *from, int len, char *buffer, int buffsize);
+char *freesat_huffman_decode (const unsigned char *src, size_t size);
+
+struct sNode
+{
+ char *Value;
+ struct sNode *P0;
+ struct sNode *P1;
+};
+
+typedef struct sNode sNodeH;
+
+struct hufftab {
+ unsigned int value;
+ short bits;
+ char next;
+};
+
+#define START '\0'
+#define STOP '\0'
+#define ESCAPE '\1'
+
+static struct hufftab *tables[2][128];
+static int table_size[2][128];
+static sNodeH* sky_tables[2];
+
#define Asprintf(a, b, c...) void( asprintf(a, b, c) < 0 ? esyslog("memory allocation error - %s", b) : void() )