Changeset 15365


Ignore:
Timestamp:
04/27/12 00:46:33 (11 years ago)
Author:
nit
Message:

cleanup

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/struct.h

    r15282 r15365  
    123123#define EPGSCANLOG "/tmp/epgscan.log"
    124124#define MAXCHANNELHISTORY 6
    125 
    126 #define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0="
     125#define HILO(x) (x##_hi << 8 | x##_lo)
    127126
    128127//CA Defines
     
    11521151        unsigned char* buf2;
    11531152} 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_id
    1178 #define GetSegmentLastSectionNumber(x) ((eit_t *)(x))->segment_last_section_number
    1179 #define GetPrivateDataSpecifier(x) HILO4(((descr_private_data_specifier_t *)x)->private_data_specifier)
    1180 */
    11811153
    11821154struct eit
  • titan/titan/titan.c

    r15346 r15365  
    55#include "sock.h"
    66
    7 
    87#define SYSCODE 0
     8#define HTTPAUTH "aXBrLUdaRmg6RkhaVkJHaG56ZnZFaEZERlRHenVpZjU2NzZ6aGpHVFVHQk5Iam0="
    99
    1010struct clist *config[LISTHASHSIZE] = {NULL};
Note: See TracChangeset for help on using the changeset viewer.