unify heap allocation handling

This commit is contained in:
Vinzenz Schroeter 2025-04-12 18:05:01 +02:00
parent 63dfecdbf5
commit fd6f9198f3
10 changed files with 101 additions and 110 deletions

View file

@ -851,13 +851,6 @@ TypedCommand *sp_command_bitvec(size_t offset,
CompressionCode compression,
BinaryOperation operation);
/**
* Set the brightness of all tiles to the same value.
*
* Returns: a new [servicepoint::Command::Brightness] instance.
*/
TypedCommand */*notnull*/ sp_command_brightness(Brightness brightness);
/**
* Set the brightness of individual tiles in a rectangular area of the display.
*
@ -865,7 +858,7 @@ TypedCommand */*notnull*/ sp_command_brightness(Brightness brightness);
*
* Returns: a new [servicepoint::Command::CharBrightness] instance.
*/
TypedCommand */*notnull*/ sp_command_char_brightness(size_t x,
TypedCommand */*notnull*/ sp_command_brightness_grid(size_t x,
size_t y,
BrightnessGrid */*notnull*/ grid);
@ -932,6 +925,13 @@ TypedCommand */*notnull*/ sp_command_fade_out(void);
*/
void sp_command_free(TypedCommand */*notnull*/ command);
/**
* Set the brightness of all tiles to the same value.
*
* Returns: a new [servicepoint::Command::Brightness] instance.
*/
TypedCommand */*notnull*/ sp_command_global_brightness(Brightness brightness);
/**
* Kills the udp daemon on the display, which usually results in a restart.
*