shithub: riscv

ref: 064a987bd8b3f3172bce73522cab9b21587bbc0e
dir: /sys/src/games/music/playlistfs/playplumb.c/

View raw version
#include <u.h>
#include <libc.h>

void
main(int argc, char *argv[])
{
	Plumbmsg *m;
	int fd;

	fd = plumbopen("audioplay", OREAD);
	if (fd < 0)
		sysfatal("port audioplay: %r");
	for (;;) {
		m = plumbrecv(fd);
		if (m == nil)
			sysfatal("plumrecv: %r");
		
		plumbfree(m);
	}
}