mpd/src/net/DscpParser.hxx

16 lines
366 B
C++
Raw Normal View History

// SPDX-License-Identifier: BSD-2-Clause
// author: Max Kellermann <max.kellermann@gmail.com>
2022-01-11 20:05:34 +01:00
#pragma once
/**
* Parse a DSCP (Differentiated Services Code Point) class name.
* This can either be a name (CS*, LE, AF*, EF) or numeric (decimal or
* hexadecimal).
*
* @return the DSCP or -1 on error
*/
[[gnu::pure]]
int
ParseDscpClass(const char *s) noexcept;