static int ctl_open(int using_stdin, int using_stdout);
static void ctl_close(void);
static int ctl_read(int32 *valp);
+static int ctl_write(char *valp, int32 size);
static int cmsg(int type, int verbosity_level, char *fmt, ...);
static void ctl_event(CtlEvent *e);
ctl_close,
dumb_pass_playing_list,
ctl_read,
- NULL,
+ ctl_write,
cmsg,
ctl_event
};
return RC_NONE;
}
+static int ctl_write(char *valp, int32 size)
+{
+ static int warned = 0;
+
+ if (!warned) {
+ fprintf(stderr, "Warning: using stdout with vt100 interface "
+ "will not\ngive the desired effect.\n");
+ warned = 1;
+ }
+ return write(STDOUT_FILENO, valp, size);
+}
+
static int cmsg(int type, int verbosity_level, char *fmt, ...)
{
va_list ap;