output/httpd/IcyMetaDataServer: pass metaint as std::size_t

This commit is contained in:
Max Kellermann 2024-04-03 20:29:46 +02:00
parent 9d66fc491c
commit 8906ce07de
2 changed files with 4 additions and 6 deletions

View File

@ -12,7 +12,7 @@
std::string std::string
icy_server_metadata_header(const char *name, icy_server_metadata_header(const char *name,
const char *genre, const char *url, const char *genre, const char *url,
const char *content_type, int metaint) noexcept const char *content_type, std::size_t metaint) noexcept
{ {
return fmt::format("HTTP/1.1 200 OK\r\n" return fmt::format("HTTP/1.1 200 OK\r\n"
"icy-notice1:<BR>This stream requires an audio player!<BR>\r\n" /* TODO */ "icy-notice1:<BR>This stream requires an audio player!<BR>\r\n" /* TODO */

View File

@ -1,11 +1,11 @@
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
// Copyright The Music Player Daemon Project // Copyright The Music Player Daemon Project
#ifndef MPD_ICY_META_DATA_SERVER_HXX #pragma once
#define MPD_ICY_META_DATA_SERVER_HXX
#include "Page.hxx" #include "Page.hxx"
#include <cstddef>
#include <cstdint> #include <cstdint>
#include <string> #include <string>
@ -15,9 +15,7 @@ struct Tag;
std::string std::string
icy_server_metadata_header(const char *name, icy_server_metadata_header(const char *name,
const char *genre, const char *url, const char *genre, const char *url,
const char *content_type, int metaint) noexcept; const char *content_type, std::size_t metaint) noexcept;
PagePtr PagePtr
icy_server_metadata_page(const Tag &tag, const TagType *types) noexcept; icy_server_metadata_page(const Tag &tag, const TagType *types) noexcept;
#endif