/***************************************************************************** * DumpBAT *****************************************************************************/ static void DumpBAT(void* p_zero, dvbpsi_bat_t* p_bat) { dvbpsi_bat_ts_t* p_ts = p_bat->p_first_ts; { printf( "\n"); printf( "New active BAT(binary dumped)\n"); printf( " bouquet_id : %d\n", p_bat->i_bouquet_id); printf( " version_number : %d\n", p_bat->i_version); printf( " | ts_id \n"); while(p_ts) { printf(" | 0x%02x \n", p_ts->i_ts_id); DumpDescriptors(" | ]", p_ts->p_first_descriptor); p_ts = p_ts->p_next; } printf( "\n"); printf( "New active BAT(string dumped)\n"); DumpBAT_verbose(p_zero,p_bat); printf("\n"); } dvbpsi_DeleteBAT(p_bat); }
static void dumpeit(void *p_cb_data, dvbpsi_eit_t *p_new_eit) { (void)p_cb_data; const dvbpsi_eit_event_t *p_event = p_new_eit->p_first_event; while (p_event) { printf("Event: TS ID %u Network ID %u Event ID %u starttime %s duration %u\n", p_new_eit->i_ts_id, p_new_eit->i_network_id, p_event->i_event_id, AValue(p_event->i_start_time).ToString("016x").str(), p_event->i_duration); DumpDescriptors("Event", p_event->p_first_descriptor); p_event = p_event->p_next; } }
/***************************************************************************** * DumpSDT *****************************************************************************/ static void DumpSDT(void* p_zero, dvbpsi_sdt_t* p_sdt) { dvbpsi_sdt_service_t* p_service = p_sdt->p_first_service; printf( "\n"); printf( "New active SDT\n"); printf( " ts_id : %d\n", p_sdt->i_ts_id); printf( " version_number : %d\n", p_sdt->i_version); printf( " network_id : %d\n", p_sdt->i_network_id); printf( " | service_id \n"); while(p_service) { printf(" | 0x%02x \n", p_service->i_service_id); DumpDescriptors(" | ]", p_service->p_first_descriptor); p_service = p_service->p_next; } dvbpsi_DeleteSDT(p_sdt); }