Changeset 15365
- Timestamp:
- 04/27/12 00:46:33 (11 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/struct.h
r15282 r15365 123 123 #define EPGSCANLOG "/tmp/epgscan.log" 124 124 #define MAXCHANNELHISTORY 6 125 126 #define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=" 125 #define HILO(x) (x##_hi << 8 | x##_lo) 127 126 128 127 //CA Defines … … 1152 1151 unsigned char* buf2; 1153 1152 } writeFBfile; 1154 1155 1156 #define HILO(x) (x##_hi << 8 | x##_lo)1157 1158 /*1159 #define HILO2(x) (x##1 << 8 | x##2)1160 #define HILO3(x) (x##1 << 16 | x##2 << 8 | x##3)1161 #define HILO4(x) (x##4 << 24 | x##2 << 16 | x##3 << 8 | x##4)1162 1163 #define MjdToEpochTime(x) ((HILO(x)-40587)*86400)1164 #define BcdTimeToSeconds(x) ((3600 * ((10*((x##_h & 0xF0)>>4)) + (x##_h & 0xF))) + \1165 (60 * ((10*((x##_m & 0xF0)>>4)) + (x##_m & 0xF))) + \1166 ((10*((x##_s & 0xF0)>>4)) + (x##_s & 0xF)))1167 #define BcdTimeToMinutes(x) ((60 * ((10*((x##_h & 0xF0)>>4)) + (x##_h & 0xF))) + \1168 (((10*((x##_m & 0xF0)>>4)) + (x##_m & 0xF))))1169 #define BcdCharToInt(x) (10*((x & 0xF0)>>4) + (x & 0xF))1170 #define CheckBcdChar(x) ((((x & 0xF0)>>4) <= 9) && \1171 ((x & 0x0F) <= 9))1172 #define CheckBcdSignedChar(x) ((((x & 0xF0)>>4) >= 0) && (((x & 0xF0)>>4) <= 9) && \1173 ((x & 0x0F) >= 0) && ((x & 0x0F) <= 9))1174 1175 #define GetSectionLength(x) HILO(((si_tab_t *)(x))->section_length)1176 #define GetServiceId(x) HILO(((eit_t *)(x))->service_id)1177 #define GetLastTableId(x) ((eit_t *)(x))->segment_last_table_id1178 #define GetSegmentLastSectionNumber(x) ((eit_t *)(x))->segment_last_section_number1179 #define GetPrivateDataSpecifier(x) HILO4(((descr_private_data_specifier_t *)x)->private_data_specifier)1180 */1181 1153 1182 1154 struct eit -
titan/titan/titan.c
r15346 r15365 5 5 #include "sock.h" 6 6 7 8 7 #define SYSCODE 0 8 #define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0=" 9 9 10 10 struct clist *config[LISTHASHSIZE] = {NULL};
Note: See TracChangeset
for help on using the changeset viewer.