From 924d0e00ec7840cb655345155244bb003dffef65 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Thu, 1 Mar 2018 10:19:01 +0000 Subject: [PATCH] Update: Added protocol value for gopher --- src/admin.c | 3 +++ src/client.h | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/admin.c b/src/admin.c index 73a3b951..9a75b3bc 100644 --- a/src/admin.c +++ b/src/admin.c @@ -695,6 +695,9 @@ static inline xmlNodePtr __add_listener(client_t *client, case ICECAST_PROTOCOL_SHOUTCAST: xmlNewTextChild(node, NULL, XMLSTR("protocol"), XMLSTR("icy")); break; + case ICECAST_PROTOCOL_GOPHER: + xmlNewTextChild(node, NULL, XMLSTR("protocol"), XMLSTR("gopher")); + break; } return node; diff --git a/src/client.h b/src/client.h index f097fa67..e071ea08 100644 --- a/src/client.h +++ b/src/client.h @@ -31,7 +31,8 @@ typedef enum _protocol_tag { ICECAST_PROTOCOL_HTTP = 0, - ICECAST_PROTOCOL_SHOUTCAST + ICECAST_PROTOCOL_SHOUTCAST, + ICECAST_PROTOCOL_GOPHER, } protocol_t; typedef enum _reuse_tag {