📄 dsmcc-descriptor.h
字号:
#ifndef DSMCC_DESCRIPTOR_H#define DSMCC_DESCRIPTOR_H#include "vdr/receiver.h"#include <stdio.h>struct descriptor_type { char *text;};struct descriptor_name { char *text;};struct descriptor_info { char lang_code[3]; char *text;};struct descriptor_modlink { char position; unsigned short module_id;};struct descriptor_crc32 { unsigned long crc;};struct descriptor_location { char location_tag;};struct descriptor_dltime { unsigned long download_time;};struct descriptor_grouplink { char position; unsigned long group_id;};struct descriptor_private { char *descriptor;}; struct descriptor_compressed { char method; unsigned long original_size;};struct descriptor { unsigned char tag; unsigned char len; union { struct descriptor_type type; struct descriptor_name name; struct descriptor_info info; struct descriptor_modlink modlink; struct descriptor_crc32 crc32; struct descriptor_location location; struct descriptor_dltime dltime; struct descriptor_grouplink grouplink; struct descriptor_compressed compressed;/* struct descriptor_private private; struct descriptor_subgroup subgroup #ref. DVB SSU */ } data; struct descriptor *next;};void FreeDescriptor(struct descriptor *desc);struct descriptor_type * ProcessDescriptorType(uchar *Data, int len);struct descriptor_name * ProcessDescriptorName(uchar *Data, int len);struct descriptor_info * ProcessDescriptorInfo(uchar *Data, int len);struct descriptor_modlink * ProcessDescriptorModlink(uchar *Data, int len);struct descriptor_crc32 * ProcessDescriptorCrc32(uchar *Data, int len);struct descriptor_location * ProcessDescriptorLocation(uchar *Data, int len);struct descriptor_dltime * ProcessDescriptorDltime(uchar *Data, int len);struct descriptor_grouplink * ProcessDescriptorGrouplink(uchar *Data, int len);struct descriptor_compressed * ProcessDescriptorCompressed(uchar *Data, int len);struct descriptor * ProcessDescriptor(uchar *Data, int *offset);struct descriptor * ProcessDescriptors(uchar *Data, int data_len, int *offset); #endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -