Implemented 'Link Layer' based CAM support

This commit is contained in:
Klaus Schmidinger
2003-01-06 14:44:27 +01:00
parent 43b582a04d
commit 4e15f6d658
15 changed files with 2111 additions and 24 deletions

View File

@@ -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 {