Add stub AllocNamedColor
This commit is contained in:
parent
a37d7168eb
commit
19235e68ca
|
|
@ -2781,6 +2781,24 @@ BAN::ErrorOr<void> handle_packet(Client& client_info, BAN::ConstByteSpan packet)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case X_AllocNamedColor:
|
||||||
|
{
|
||||||
|
auto request = decode<xAllocNamedColorReq>(packet).value();
|
||||||
|
|
||||||
|
dprintln("AllocNamedColor");
|
||||||
|
dprintln(" cmap: {}", request.cmap);
|
||||||
|
dprintln(" name: {}", BAN::StringView((const char*)packet.data(), request.nbytes));
|
||||||
|
|
||||||
|
// FIXME
|
||||||
|
xAllocNamedColorReply reply {
|
||||||
|
.type = X_Reply,
|
||||||
|
.sequenceNumber = client_info.sequence,
|
||||||
|
.length = 0,
|
||||||
|
};
|
||||||
|
TRY(encode(client_info.output_buffer, reply));
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
case X_QueryColors:
|
case X_QueryColors:
|
||||||
{
|
{
|
||||||
auto request = decode<xQueryColorsReq>(packet).value();
|
auto request = decode<xQueryColorsReq>(packet).value();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue