pcm/AudioParser: use std::string_view

This commit is contained in:
Max Kellermann
2025-01-30 12:11:28 +01:00
parent f6cee35896
commit 7ca8dedb35
3 changed files with 66 additions and 110 deletions

View File

@@ -6,8 +6,9 @@
* Parser functions for audio related objects.
*/
#ifndef MPD_AUDIO_PARSER_HXX
#define MPD_AUDIO_PARSER_HXX
#pragma once
#include <string_view>
struct AudioFormat;
@@ -21,6 +22,4 @@ struct AudioFormat;
* @param mask if true, then "*" is allowed for any number of items
*/
AudioFormat
ParseAudioFormat(const char *src, bool mask);
#endif
ParseAudioFormat(std::string_view src, bool mask);