ref: 363cece770538993225a06ac468443b7b2dd777d
dir: /nvi.h/
typedef struct Info Info; typedef struct Format Format; struct Format { char *url; char *type; char *quality; /* "unknown" for audio, "360p"/etc for video */ vlong sz; vlong bitrate; int included; /* Iaudio|Ivideo */ int fps; int id; }; struct Info { char *author; char *title; char *description; vlong published; vlong length; Format *fmt; int nfmt; }; enum { Cdownload, Cinfo, Iaudio = 1<<0, Ivideo = 1<<1, }; extern int cmd; extern int debug; Info *youtube(char *vid); int pipeexec(int *fd, char *file, char **argv); void procwait(void); char *readall(int f); int hget(char *url, int out); char *estrdup(char *s); int alldigit(char *s); #pragma varargck type "Z" vlong int Zfmt(Fmt *f);