int call_status(struct re_printf *pf, const struct call *call) { struct le *le; int err; if (!call) return EINVAL; switch (call->state) { case STATE_EARLY: case STATE_ESTABLISHED: break; default: return 0; } err = re_hprintf(pf, "\r[%H]", print_duration, call); FOREACH_STREAM err |= stream_print(pf, le->data); err |= re_hprintf(pf, " (bit/s)"); #ifdef USE_VIDEO if (call->video) err |= video_print(pf, call->video); #endif return err; }
void list() { process_slot * this = current; do { video_print("PID: "); video_write_byte(this->process->pid+'0'); video_write_byte(' '); video_print("Estado: "); video_write_byte(this->process->state+'0'); video_print(" Nombre: "); video_print(this->process->name); video_write_byte('\n'); this=this->next; }while(this!=current); video_print("Foreground pid: "); video_write_byte(get_forepid()+'0'); video_write_byte('\n'); }
static void video_popupmenu_cb(Widget w, XtPointer clientData, XtPointer callData) { PLOT *plot = (PLOT *)clientData; char *idstring; XtVaGetValues(w, XmNuserData, &idstring, NULL); if (!strcmp(idstring, "Save")) { video_save(plot); } else if (!strcmp(idstring, "Print EPS")) { video_print(plot, NULL, NULL); } }