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

version» Context lines:

pike.git/src/modules/DVB/dvb.c:1323:    push_int(1);   #else    if(sl_add(dvbstor, DVBStream))    push_int(1);    else    push_int(0);   #endif      }    - /*! @decl int destroy() + /*! @decl int _destruct()    *!    *! Purge a stream reader.    *!    *! @seealso    *! @[DVB.dvb()->stream()], @[read()]    */   static void f_stream_detach(INT32 args) {       pop_n_elems(args);    close(DVBStream->fd);
pike.git/src/modules/DVB/dvb.c:1783:    dvb_program = end_program();    add_program_constant("dvb", dvb_program, 0);       /* PES streams */    start_new_program();    ADD_STORAGE(dvb_stream_data);    set_init_callback(init_dvb_stream);    set_exit_callback(exit_dvb_stream);       ADD_FUNCTION("create", f_stream_create, tFunc(tObj tInt tOr(tFunction,tInt) tInt, tVoid), 0); -  ADD_FUNCTION("destroy", f_stream_detach, tFunc(tVoid,tVoid), 0); +  ADD_FUNCTION("_destruct", f_stream_detach, tFunc(tVoid,tVoid), 0);    ADD_FUNCTION("read", f_stream_read, tFunc(tOr(tInt,tVoid),tOr(tInt,tStr)),0);    ADD_FUNCTION("set_buffer", f_stream_set_buffer, tFunc(tInt,tInt), 0);    ADD_FUNCTION("info", f_stream_info, tFunc(tInt, tOr(tMapping,tInt)), 0);    ADD_FUNCTION("close", f_stream_close, tFunc(tVoid,tVoid), 0);       dvb_stream_program = end_program();    add_program_constant("Stream", dvb_stream_program, 0);       /* Audio */    start_new_program();