[pipe] Add a pipe input with autostart capabilities

This commit is contained in:
ejurgensen
2017-01-14 23:35:19 +01:00
parent 938e197fa4
commit 9aede45a12
9 changed files with 493 additions and 153 deletions

View File

@@ -46,6 +46,7 @@
extern struct input_definition input_file;
extern struct input_definition input_http;
extern struct input_definition input_pipe;
#ifdef HAVE_SPOTIFY_H
extern struct input_definition input_spotify;
#endif
@@ -54,6 +55,7 @@ extern struct input_definition input_spotify;
static struct input_definition *inputs[] = {
&input_file,
&input_http,
&input_pipe,
#ifdef HAVE_SPOTIFY_H
&input_spotify,
#endif
@@ -130,6 +132,9 @@ map_data_kind(int data_kind)
case DATA_KIND_HTTP:
return INPUT_TYPE_HTTP;
case DATA_KIND_PIPE:
return INPUT_TYPE_PIPE;
#ifdef HAVE_SPOTIFY_H
case DATA_KIND_SPOTIFY:
return INPUT_TYPE_SPOTIFY;