summaryrefslogtreecommitdiff
path: root/libdtv/libsi/include
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-01-06 14:44:27 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-01-06 14:44:27 +0100
commit4e15f6d658139fca773b76088bf1523839c20ffd (patch)
tree6d51dd4546800274eeddace2069fe08837186076 /libdtv/libsi/include
parent43b582a04d3b77c0f0f92284bdccbbad190f9d41 (diff)
downloadvdr-4e15f6d658139fca773b76088bf1523839c20ffd.tar.gz
vdr-4e15f6d658139fca773b76088bf1523839c20ffd.tar.bz2
Implemented 'Link Layer' based CAM support
Diffstat (limited to 'libdtv/libsi/include')
-rw-r--r--libdtv/libsi/include/libsi.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/libdtv/libsi/include/libsi.h b/libdtv/libsi/include/libsi.h
index 366387a3..8e9e2605 100644
--- a/libdtv/libsi/include/libsi.h
+++ b/libdtv/libsi/include/libsi.h
@@ -315,6 +315,29 @@ struct Descriptor {
};
+/* ConditionalAccessDescriptor */
+
+struct ConditionalAccessDescriptor {
+ struct NODE Node;
+ unsigned short Tag;
+ unsigned short Amount; /* Data */
+ unsigned char *Data;
+};
+
+#define CreateConditionalAccessDescriptor(descr, amount, data) \
+ do \
+ { \
+ unsigned char *tmpptr; \
+ \
+ xMemAlloc (amount, &tmpptr); \
+ memcpy (tmpptr, data, amount); \
+ xCreateNode (((struct ConditionalAccessDescriptor *)descr), NULL); \
+ ((struct ConditionalAccessDescriptor *)descr)->Tag = DESCR_CA; \
+ ((struct ConditionalAccessDescriptor *)descr)->Amount = amount; \
+ ((struct ConditionalAccessDescriptor *)descr)->Data = tmpptr; \
+ } while (0)
+
+
/* Iso639LanguageDescriptor */
struct Iso639LanguageDescriptor {