pike.git / src / modules / DVB / dvb.c

version» Context lines:

pike.git/src/modules/DVB/dvb.c:70:   #include "stralloc.h"   #include "array.h"   #include "object.h"   #include "mapping.h"   #include "pike_macros.h"   #include "threads.h"   #include "fd_control.h"   #include "module_support.h"   #include "builtin_functions.h"   #include "operators.h" + #include "pike_types.h"      #include "dvb.h"      #if HAVE_DVB >= 30   /* Compat with old DVB. */   /* frontend.h */   typedef struct dvb_frontend_info FrontendInfo;   typedef struct dvb_frontend_parameters FrontendParameters;   typedef struct dvb_frontend_event FrontendEvent;   #define minFrequency frequency_min
pike.git/src/modules/DVB/dvb.c:394:    push_text("max");    push_int(info.maxFrequency);    f_aggregate_mapping(2 * 2);    push_text("sr");    push_text("min");    push_int(info.minSymbolRate);    push_text("max");    push_int(info.maxSymbolRate);    f_aggregate_mapping(2 * 2);    push_text("hardware"); -  push_text("type"); +  ref_push_string(literal_type_string);    push_int(info.hwType);   #if HAVE_DVB < 30    push_text("version");    push_int(info.hwVersion);    f_aggregate_mapping(2 * 2);   #else    /* FIXME: Where is the version in the new DVB API? */    f_aggregate_mapping(1 * 2);   #endif    f_aggregate_mapping(2 * 3);
pike.git/src/modules/DVB/dvb.c:1054:    }       while (index < length-4)    {    cnt = 0;    pid = ((buffer[index+1] & 0x1f) << 8) + buffer[index+2];    push_text("pid"); push_int(pid); cnt++;       switch(buffer[index]) {    case 2: -  push_text("type"); push_int(DMX_PES_VIDEO); cnt++; +  ref_push_string(literal_type_string); push_int(DMX_PES_VIDEO); cnt++;    push_text("desc"); push_text("video"); cnt++;    break;    case 3:    case 4: -  push_text("type"); push_int(DMX_PES_AUDIO); cnt++; +  ref_push_string(literal_type_string); push_int(DMX_PES_AUDIO); cnt++;    push_text("desc"); push_text("audio"); cnt++;    break;    case 6: -  push_text("type"); push_int(DMX_PES_TELETEXT); cnt++; +  ref_push_string(literal_type_string); push_int(DMX_PES_TELETEXT); cnt++;    push_text("desc"); push_text("teletext"); cnt++;    break;    case 129: -  push_text("type"); push_int(_DMX_PES_RDS); cnt++; +  ref_push_string(literal_type_string); push_int(_DMX_PES_RDS); cnt++;    push_text("desc"); push_text("_rds"); cnt++;    break;    default:    push_text("unknown_type"); push_int(buffer[index]); cnt++;    push_text("desc"); push_text("unknown"); cnt++;    }       data_len = ((buffer[index+3] & 0x0F) << 8) + buffer[index+4];    if (buffer[index]==0x02 || buffer[index]==0x03 || buffer[index]==0x04)    {