cleanups, add semicolon everywhere
This commit is contained in:
parent
e8f11c08ea
commit
0968605d0b
19 changed files with 192 additions and 87 deletions
|
@ -636,6 +636,8 @@ extern "C" {
|
|||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Bitmap::clone`].
|
||||
*
|
||||
*Clones a [`Bitmap`] instance.
|
||||
*
|
||||
* This function is part of the `bitmap` module.
|
||||
|
@ -667,6 +669,8 @@ struct ByteSlice sp_bitmap_data_ref_mut(struct Bitmap */*notnull*/ instance);
|
|||
void sp_bitmap_fill(struct Bitmap */*notnull*/ instance, bool value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Bitmap::free`].
|
||||
*
|
||||
*Deallocates a [`Bitmap`] instance.
|
||||
*
|
||||
* This function is part of the `bitmap` module.
|
||||
|
@ -821,6 +825,8 @@ struct Packet *sp_bitmap_try_into_packet(struct Bitmap */*notnull*/ bitmap,
|
|||
size_t sp_bitmap_width(struct Bitmap */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::clone`].
|
||||
*
|
||||
*Clones a [`BitmapCommand`] instance.
|
||||
*
|
||||
* This function is part of the `bitmapcommand` module.
|
||||
|
@ -828,6 +834,8 @@ size_t sp_bitmap_width(struct Bitmap */*notnull*/ instance);
|
|||
struct BitmapCommand */*notnull*/ sp_bitmapcommand_clone(struct BitmapCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::free`].
|
||||
*
|
||||
*Deallocates a [`BitmapCommand`] instance.
|
||||
*
|
||||
* This function is part of the `bitmapcommand` module.
|
||||
|
@ -845,6 +853,8 @@ void sp_bitmapcommand_free(struct BitmapCommand */*notnull*/ instance);
|
|||
struct BitmapCommand */*notnull*/ sp_bitmapcommand_from_bitmap(struct Bitmap */*notnull*/ bitmap);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::get_bitmap_mut`].
|
||||
*
|
||||
* Gets a reference to the field `bitmap` of the [`servicepoint::BitmapCommand`].
|
||||
*
|
||||
* - The returned reference inherits the lifetime of object in which it is contained.
|
||||
|
@ -855,6 +865,8 @@ struct BitmapCommand */*notnull*/ sp_bitmapcommand_from_bitmap(struct Bitmap */*
|
|||
struct Bitmap */*notnull*/ sp_bitmapcommand_get_bitmap_mut(struct BitmapCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::get_compression`].
|
||||
*
|
||||
* Gets the value of field `compression` of the [`servicepoint::BitmapCommand`].
|
||||
*
|
||||
* This function is part of the `bitmapcommand` module.
|
||||
|
@ -862,6 +874,8 @@ struct Bitmap */*notnull*/ sp_bitmapcommand_get_bitmap_mut(struct BitmapCommand
|
|||
CompressionCode sp_bitmapcommand_get_compression(struct BitmapCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::get_origin`].
|
||||
*
|
||||
* Reads the origin field of the [`BitmapCommand`].
|
||||
*
|
||||
* This function is part of the `bitmapcommand` module.
|
||||
|
@ -885,6 +899,8 @@ struct BitmapCommand */*notnull*/ sp_bitmapcommand_new(struct Bitmap */*notnull*
|
|||
CompressionCode compression);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::set_bitmap`].
|
||||
*
|
||||
* Sets the value of field `bitmap` of the [`servicepoint::BitmapCommand`].
|
||||
* The provided value is moved into the instance, potentially invalidating previously taken references.
|
||||
*
|
||||
|
@ -894,6 +910,8 @@ void sp_bitmapcommand_set_bitmap(struct BitmapCommand */*notnull*/ instance,
|
|||
struct Bitmap */*notnull*/ value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::set_compression`].
|
||||
*
|
||||
* Sets the value of field `compression` of the [`servicepoint::BitmapCommand`].
|
||||
*
|
||||
* This function is part of the `bitmapcommand` module.
|
||||
|
@ -902,6 +920,8 @@ void sp_bitmapcommand_set_compression(struct BitmapCommand */*notnull*/ instance
|
|||
CompressionCode value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitmapCommand::set_origin`].
|
||||
*
|
||||
* Overwrites the origin field of the [`BitmapCommand`].
|
||||
*
|
||||
* This function is part of the `bitmapcommand` module.
|
||||
|
@ -922,6 +942,8 @@ void sp_bitmapcommand_set_origin(struct BitmapCommand */*notnull*/ command,
|
|||
struct Packet *sp_bitmapcommand_try_into_packet(struct BitmapCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::clone`].
|
||||
*
|
||||
*Clones a [`BitVecCommand`] instance.
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -929,6 +951,8 @@ struct Packet *sp_bitmapcommand_try_into_packet(struct BitmapCommand */*notnull*
|
|||
struct BitVecCommand */*notnull*/ sp_bitveccommand_clone(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::free`].
|
||||
*
|
||||
*Deallocates a [`BitVecCommand`] instance.
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -936,6 +960,8 @@ struct BitVecCommand */*notnull*/ sp_bitveccommand_clone(struct BitVecCommand */
|
|||
void sp_bitveccommand_free(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::get_bitvec_mut`].
|
||||
*
|
||||
* Gets a reference to the field `bitvec` of the [`servicepoint::BitVecCommand`].
|
||||
*
|
||||
* - The returned reference inherits the lifetime of object in which it is contained.
|
||||
|
@ -946,6 +972,8 @@ void sp_bitveccommand_free(struct BitVecCommand */*notnull*/ instance);
|
|||
DisplayBitVec */*notnull*/ sp_bitveccommand_get_bitvec_mut(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::get_compression`].
|
||||
*
|
||||
* Gets the value of field `compression` of the [`servicepoint::BitVecCommand`].
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -953,6 +981,8 @@ DisplayBitVec */*notnull*/ sp_bitveccommand_get_bitvec_mut(struct BitVecCommand
|
|||
CompressionCode sp_bitveccommand_get_compression(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::get_offset`].
|
||||
*
|
||||
* Gets the value of field `offset` of the [`servicepoint::BitVecCommand`].
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -960,6 +990,8 @@ CompressionCode sp_bitveccommand_get_compression(struct BitVecCommand */*notnull
|
|||
Offset sp_bitveccommand_get_offset(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::get_operation`].
|
||||
*
|
||||
* Gets the value of field `operation` of the [`servicepoint::BitVecCommand`].
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -988,6 +1020,8 @@ struct BitVecCommand */*notnull*/ sp_bitveccommand_new(DisplayBitVec */*notnull*
|
|||
CompressionCode compression);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::set_bitvec`].
|
||||
*
|
||||
* Sets the value of field `bitvec` of the [`servicepoint::BitVecCommand`].
|
||||
* The provided value is moved into the instance, potentially invalidating previously taken references.
|
||||
*
|
||||
|
@ -997,6 +1031,8 @@ void sp_bitveccommand_set_bitvec(struct BitVecCommand */*notnull*/ instance,
|
|||
DisplayBitVec */*notnull*/ value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::set_compression`].
|
||||
*
|
||||
* Sets the value of field `compression` of the [`servicepoint::BitVecCommand`].
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -1005,6 +1041,8 @@ void sp_bitveccommand_set_compression(struct BitVecCommand */*notnull*/ instance
|
|||
CompressionCode value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::set_offset`].
|
||||
*
|
||||
* Sets the value of field `offset` of the [`servicepoint::BitVecCommand`].
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -1013,6 +1051,8 @@ void sp_bitveccommand_set_offset(struct BitVecCommand */*notnull*/ instance,
|
|||
Offset value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BitVecCommand::set_operation`].
|
||||
*
|
||||
* Sets the value of field `operation` of the [`servicepoint::BitVecCommand`].
|
||||
*
|
||||
* This function is part of the `bitveccommand` module.
|
||||
|
@ -1032,6 +1072,8 @@ void sp_bitveccommand_set_operation(struct BitVecCommand */*notnull*/ instance,
|
|||
struct Packet *sp_bitveccommand_try_into_packet(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGrid::clone`].
|
||||
*
|
||||
*Clones a [`BrightnessGrid`] instance.
|
||||
*
|
||||
* This function is part of the `brightnessgrid` module.
|
||||
|
@ -1064,6 +1106,8 @@ void sp_brightnessgrid_fill(BrightnessGrid */*notnull*/ instance,
|
|||
Brightness value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGrid::free`].
|
||||
*
|
||||
*Deallocates a [`BrightnessGrid`] instance.
|
||||
*
|
||||
* This function is part of the `brightnessgrid` module.
|
||||
|
@ -1180,6 +1224,8 @@ struct Packet *sp_brightnessgrid_try_into_packet(BrightnessGrid */*notnull*/ gri
|
|||
size_t sp_brightnessgrid_width(BrightnessGrid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGridCommand::clone`].
|
||||
*
|
||||
*Clones a [`BrightnessGridCommand`] instance.
|
||||
*
|
||||
* This function is part of the `brightnessgridcommand` module.
|
||||
|
@ -1187,6 +1233,8 @@ size_t sp_brightnessgrid_width(BrightnessGrid */*notnull*/ instance);
|
|||
struct BrightnessGridCommand */*notnull*/ sp_brightnessgridcommand_clone(struct BrightnessGridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGridCommand::free`].
|
||||
*
|
||||
*Deallocates a [`BrightnessGridCommand`] instance.
|
||||
*
|
||||
* This function is part of the `brightnessgridcommand` module.
|
||||
|
@ -1202,6 +1250,8 @@ void sp_brightnessgridcommand_free(struct BrightnessGridCommand */*notnull*/ ins
|
|||
struct BrightnessGridCommand */*notnull*/ sp_brightnessgridcommand_from_grid(BrightnessGrid */*notnull*/ grid);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGridCommand::get_grid_mut`].
|
||||
*
|
||||
* Gets a reference to the field `grid` of the [`servicepoint::BrightnessGridCommand`].
|
||||
*
|
||||
* - The returned reference inherits the lifetime of object in which it is contained.
|
||||
|
@ -1212,6 +1262,8 @@ struct BrightnessGridCommand */*notnull*/ sp_brightnessgridcommand_from_grid(Bri
|
|||
BrightnessGrid */*notnull*/ sp_brightnessgridcommand_get_grid_mut(struct BrightnessGridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGridCommand::get_origin`].
|
||||
*
|
||||
* Reads the origin field of the [`BrightnessGridCommand`].
|
||||
*
|
||||
* This function is part of the `brightnessgridcommand` module.
|
||||
|
@ -1234,6 +1286,8 @@ struct BrightnessGridCommand */*notnull*/ sp_brightnessgridcommand_new(Brightnes
|
|||
size_t origin_y);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGridCommand::set_grid`].
|
||||
*
|
||||
* Sets the value of field `grid` of the [`servicepoint::BrightnessGridCommand`].
|
||||
* The provided value is moved into the instance, potentially invalidating previously taken references.
|
||||
*
|
||||
|
@ -1243,6 +1297,8 @@ void sp_brightnessgridcommand_set_grid(struct BrightnessGridCommand */*notnull*/
|
|||
BrightnessGrid */*notnull*/ value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::BrightnessGridCommand::set_origin`].
|
||||
*
|
||||
* Overwrites the origin field of the [`BrightnessGridCommand`].
|
||||
*
|
||||
* This function is part of the `brightnessgridcommand` module.
|
||||
|
@ -1263,6 +1319,8 @@ void sp_brightnessgridcommand_set_origin(struct BrightnessGridCommand */*notnull
|
|||
struct Packet *sp_brightnessgridcommand_try_into_packet(struct BrightnessGridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGrid::clone`].
|
||||
*
|
||||
*Clones a [`CharGrid`] instance.
|
||||
*
|
||||
* This function is part of the `chargrid` module.
|
||||
|
@ -1284,6 +1342,8 @@ CharGrid */*notnull*/ sp_chargrid_clone(CharGrid */*notnull*/ instance);
|
|||
void sp_chargrid_fill(CharGrid */*notnull*/ instance, uint32_t value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGrid::free`].
|
||||
*
|
||||
*Deallocates a [`CharGrid`] instance.
|
||||
*
|
||||
* This function is part of the `chargrid` module.
|
||||
|
@ -1392,6 +1452,8 @@ struct Packet *sp_chargrid_try_into_packet(CharGrid */*notnull*/ grid,
|
|||
size_t sp_chargrid_width(CharGrid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGridCommand::clone`].
|
||||
*
|
||||
*Clones a [`CharGridCommand`] instance.
|
||||
*
|
||||
* This function is part of the `chargridcommand` module.
|
||||
|
@ -1399,6 +1461,8 @@ size_t sp_chargrid_width(CharGrid */*notnull*/ instance);
|
|||
struct CharGridCommand */*notnull*/ sp_chargridcommand_clone(struct CharGridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGridCommand::free`].
|
||||
*
|
||||
*Deallocates a [`CharGridCommand`] instance.
|
||||
*
|
||||
* This function is part of the `chargridcommand` module.
|
||||
|
@ -1414,6 +1478,8 @@ void sp_chargridcommand_free(struct CharGridCommand */*notnull*/ instance);
|
|||
struct CharGridCommand */*notnull*/ sp_chargridcommand_from_grid(CharGrid */*notnull*/ grid);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGridCommand::get_grid_mut`].
|
||||
*
|
||||
* Gets a reference to the field `grid` of the [`servicepoint::CharGridCommand`].
|
||||
*
|
||||
* - The returned reference inherits the lifetime of object in which it is contained.
|
||||
|
@ -1424,6 +1490,8 @@ struct CharGridCommand */*notnull*/ sp_chargridcommand_from_grid(CharGrid */*not
|
|||
CharGrid */*notnull*/ sp_chargridcommand_get_grid_mut(struct CharGridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGridCommand::get_origin`].
|
||||
*
|
||||
* Reads the origin field of the [`CharGridCommand`].
|
||||
*
|
||||
* This function is part of the `chargridcommand` module.
|
||||
|
@ -1446,6 +1514,8 @@ struct CharGridCommand */*notnull*/ sp_chargridcommand_new(CharGrid */*notnull*/
|
|||
size_t origin_y);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGridCommand::set_grid`].
|
||||
*
|
||||
* Sets the value of field `grid` of the [`servicepoint::CharGridCommand`].
|
||||
* The provided value is moved into the instance, potentially invalidating previously taken references.
|
||||
*
|
||||
|
@ -1455,6 +1525,8 @@ void sp_chargridcommand_set_grid(struct CharGridCommand */*notnull*/ instance,
|
|||
CharGrid */*notnull*/ value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::CharGridCommand::set_origin`].
|
||||
*
|
||||
* Overwrites the origin field of the [`CharGridCommand`].
|
||||
*
|
||||
* This function is part of the `chargridcommand` module.
|
||||
|
@ -1475,6 +1547,8 @@ void sp_chargridcommand_set_origin(struct CharGridCommand */*notnull*/ command,
|
|||
struct Packet *sp_chargridcommand_try_into_packet(struct CharGridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::ClearCommand::clone`].
|
||||
*
|
||||
*Clones a [`ClearCommand`] instance.
|
||||
*
|
||||
* This function is part of the `clearcommand` module.
|
||||
|
@ -1482,6 +1556,8 @@ struct Packet *sp_chargridcommand_try_into_packet(struct CharGridCommand */*notn
|
|||
struct ClearCommand */*notnull*/ sp_clearcommand_clone(struct ClearCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::ClearCommand::free`].
|
||||
*
|
||||
*Deallocates a [`ClearCommand`] instance.
|
||||
*
|
||||
* This function is part of the `clearcommand` module.
|
||||
|
@ -1511,6 +1587,8 @@ struct ClearCommand */*notnull*/ sp_clearcommand_new(void);
|
|||
struct Packet *sp_clearcommand_try_into_packet(struct ClearCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437Grid::clone`].
|
||||
*
|
||||
*Clones a [`Cp437Grid`] instance.
|
||||
*
|
||||
* This function is part of the `cp437grid` module.
|
||||
|
@ -1542,6 +1620,8 @@ struct ByteSlice sp_cp437grid_data_ref_mut(Cp437Grid */*notnull*/ instance);
|
|||
void sp_cp437grid_fill(Cp437Grid */*notnull*/ instance, uint8_t value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437Grid::free`].
|
||||
*
|
||||
*Deallocates a [`Cp437Grid`] instance.
|
||||
*
|
||||
* This function is part of the `cp437grid` module.
|
||||
|
@ -1638,6 +1718,8 @@ struct Packet *sp_cp437grid_try_into_packet(Cp437Grid */*notnull*/ grid,
|
|||
size_t sp_cp437grid_width(Cp437Grid */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437GridCommand::clone`].
|
||||
*
|
||||
*Clones a [`Cp437GridCommand`] instance.
|
||||
*
|
||||
* This function is part of the `cp437gridcommand` module.
|
||||
|
@ -1645,6 +1727,8 @@ size_t sp_cp437grid_width(Cp437Grid */*notnull*/ instance);
|
|||
struct Cp437GridCommand */*notnull*/ sp_cp437gridcommand_clone(struct Cp437GridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437GridCommand::free`].
|
||||
*
|
||||
*Deallocates a [`Cp437GridCommand`] instance.
|
||||
*
|
||||
* This function is part of the `cp437gridcommand` module.
|
||||
|
@ -1660,6 +1744,8 @@ void sp_cp437gridcommand_free(struct Cp437GridCommand */*notnull*/ instance);
|
|||
struct Cp437GridCommand */*notnull*/ sp_cp437gridcommand_from_grid(Cp437Grid */*notnull*/ grid);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437GridCommand::get_grid_mut`].
|
||||
*
|
||||
* Gets a reference to the field `grid` of the [`servicepoint::Cp437GridCommand`].
|
||||
*
|
||||
* - The returned reference inherits the lifetime of object in which it is contained.
|
||||
|
@ -1670,6 +1756,8 @@ struct Cp437GridCommand */*notnull*/ sp_cp437gridcommand_from_grid(Cp437Grid */*
|
|||
Cp437Grid */*notnull*/ sp_cp437gridcommand_get_grid_mut(struct Cp437GridCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437GridCommand::get_origin`].
|
||||
*
|
||||
* Reads the origin field of the [`Cp437GridCommand`].
|
||||
*
|
||||
* This function is part of the `cp437gridcommand` module.
|
||||
|
@ -1692,6 +1780,8 @@ struct Cp437GridCommand */*notnull*/ sp_cp437gridcommand_new(Cp437Grid */*notnul
|
|||
size_t origin_y);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437GridCommand::set_grid`].
|
||||
*
|
||||
* Sets the value of field `grid` of the [`servicepoint::Cp437GridCommand`].
|
||||
* The provided value is moved into the instance, potentially invalidating previously taken references.
|
||||
*
|
||||
|
@ -1701,6 +1791,8 @@ void sp_cp437gridcommand_set_grid(struct Cp437GridCommand */*notnull*/ instance,
|
|||
Cp437Grid */*notnull*/ value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Cp437GridCommand::set_origin`].
|
||||
*
|
||||
* Overwrites the origin field of the [`Cp437GridCommand`].
|
||||
*
|
||||
* This function is part of the `cp437gridcommand` module.
|
||||
|
@ -1732,6 +1824,8 @@ struct Packet *sp_cp437gridcommand_try_into_packet(struct Cp437GridCommand */*no
|
|||
struct ByteSlice sp_displaybitvec_as_raw_mut_slice(DisplayBitVec */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::DisplayBitVec::clone`].
|
||||
*
|
||||
*Clones a [`DisplayBitVec`] instance.
|
||||
*
|
||||
* This function is part of the `displaybitvec` module.
|
||||
|
@ -1752,6 +1846,8 @@ DisplayBitVec */*notnull*/ sp_displaybitvec_clone(DisplayBitVec */*notnull*/ ins
|
|||
void sp_displaybitvec_fill(DisplayBitVec */*notnull*/ instance, bool value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::DisplayBitVec::free`].
|
||||
*
|
||||
*Deallocates a [`DisplayBitVec`] instance.
|
||||
*
|
||||
* This function is part of the `displaybitvec` module.
|
||||
|
@ -1867,6 +1963,8 @@ struct Packet *sp_displaybitvec_try_into_packet(DisplayBitVec */*notnull*/ bitve
|
|||
void sp_envlogger_init(void);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::FadeOutCommand::clone`].
|
||||
*
|
||||
*Clones a [`FadeOutCommand`] instance.
|
||||
*
|
||||
* This function is part of the `fadeoutcommand` module.
|
||||
|
@ -1874,6 +1972,8 @@ void sp_envlogger_init(void);
|
|||
struct FadeOutCommand */*notnull*/ sp_fadeoutcommand_clone(struct FadeOutCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::FadeOutCommand::free`].
|
||||
*
|
||||
*Deallocates a [`FadeOutCommand`] instance.
|
||||
*
|
||||
* This function is part of the `fadeoutcommand` module.
|
||||
|
@ -1901,6 +2001,8 @@ struct FadeOutCommand */*notnull*/ sp_fadeoutcommand_new(void);
|
|||
struct Packet *sp_fadeoutcommand_try_into_packet(struct FadeOutCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::GenericCommand::clone`].
|
||||
*
|
||||
*Clones a [`GenericCommand`] instance.
|
||||
*
|
||||
* This function is part of the `genericcommand` module.
|
||||
|
@ -1908,6 +2010,8 @@ struct Packet *sp_fadeoutcommand_try_into_packet(struct FadeOutCommand */*notnul
|
|||
struct GenericCommand */*notnull*/ sp_genericcommand_clone(struct GenericCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::GenericCommand::free`].
|
||||
*
|
||||
*Deallocates a [`GenericCommand`] instance.
|
||||
*
|
||||
* This function is part of the `genericcommand` module.
|
||||
|
@ -1938,6 +2042,8 @@ struct GenericCommand */*notnull*/ sp_genericcommand_try_from_packet(struct Pack
|
|||
struct Packet *sp_genericcommand_try_into_packet(struct GenericCommand */*notnull*/ command);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::GlobalBrightnessCommand::clone`].
|
||||
*
|
||||
*Clones a [`GlobalBrightnessCommand`] instance.
|
||||
*
|
||||
* This function is part of the `globalbrightnesscommand` module.
|
||||
|
@ -1945,6 +2051,8 @@ struct Packet *sp_genericcommand_try_into_packet(struct GenericCommand */*notnul
|
|||
struct GlobalBrightnessCommand */*notnull*/ sp_globalbrightnesscommand_clone(struct GlobalBrightnessCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::GlobalBrightnessCommand::free`].
|
||||
*
|
||||
*Deallocates a [`GlobalBrightnessCommand`] instance.
|
||||
*
|
||||
* This function is part of the `globalbrightnesscommand` module.
|
||||
|
@ -1952,6 +2060,8 @@ struct GlobalBrightnessCommand */*notnull*/ sp_globalbrightnesscommand_clone(str
|
|||
void sp_globalbrightnesscommand_free(struct GlobalBrightnessCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::GlobalBrightnessCommand::get_brightness`].
|
||||
*
|
||||
* Gets the value of field `brightness` of the [`servicepoint::GlobalBrightnessCommand`].
|
||||
*
|
||||
* This function is part of the `globalbrightnesscommand` module.
|
||||
|
@ -1968,6 +2078,8 @@ Brightness sp_globalbrightnesscommand_get_brightness(struct GlobalBrightnessComm
|
|||
struct GlobalBrightnessCommand */*notnull*/ sp_globalbrightnesscommand_new(Brightness brightness);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::GlobalBrightnessCommand::set_brightness`].
|
||||
*
|
||||
* Sets the value of field `brightness` of the [`servicepoint::GlobalBrightnessCommand`].
|
||||
*
|
||||
* This function is part of the `globalbrightnesscommand` module.
|
||||
|
@ -1987,6 +2099,8 @@ void sp_globalbrightnesscommand_set_brightness(struct GlobalBrightnessCommand */
|
|||
struct Packet *sp_globalbrightnesscommand_try_into_packet(struct GlobalBrightnessCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::HardResetCommand::clone`].
|
||||
*
|
||||
*Clones a [`HardResetCommand`] instance.
|
||||
*
|
||||
* This function is part of the `hardresetcommand` module.
|
||||
|
@ -1994,6 +2108,8 @@ struct Packet *sp_globalbrightnesscommand_try_into_packet(struct GlobalBrightnes
|
|||
struct HardResetCommand */*notnull*/ sp_hardresetcommand_clone(struct HardResetCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::HardResetCommand::free`].
|
||||
*
|
||||
*Deallocates a [`HardResetCommand`] instance.
|
||||
*
|
||||
* This function is part of the `hardresetcommand` module.
|
||||
|
@ -2023,6 +2139,8 @@ struct HardResetCommand */*notnull*/ sp_hardresetcommand_new(void);
|
|||
struct Packet *sp_hardresetcommand_try_into_packet(struct HardResetCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::clone`].
|
||||
*
|
||||
*Clones a [`Packet`] instance.
|
||||
*
|
||||
* This function is part of the `packet` module.
|
||||
|
@ -2030,6 +2148,8 @@ struct Packet *sp_hardresetcommand_try_into_packet(struct HardResetCommand */*no
|
|||
struct Packet */*notnull*/ sp_packet_clone(struct Packet */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::free`].
|
||||
*
|
||||
*Deallocates a [`Packet`] instance.
|
||||
*
|
||||
* This function is part of the `packet` module.
|
||||
|
@ -2047,6 +2167,8 @@ struct Packet */*notnull*/ sp_packet_from_parts(struct Header header,
|
|||
struct ByteSlice payload);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::get_header`].
|
||||
*
|
||||
* Gets the value of field `header` of the [`servicepoint::Packet`].
|
||||
*
|
||||
* This function is part of the `packet` module.
|
||||
|
@ -2054,6 +2176,8 @@ struct Packet */*notnull*/ sp_packet_from_parts(struct Header header,
|
|||
struct Header sp_packet_get_header(struct Packet */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::get_header_mut`].
|
||||
*
|
||||
* Gets a reference to the field `header` of the [`servicepoint::Packet`].
|
||||
*
|
||||
* - The returned reference inherits the lifetime of object in which it is contained.
|
||||
|
@ -2064,6 +2188,8 @@ struct Header sp_packet_get_header(struct Packet */*notnull*/ instance);
|
|||
struct Header */*notnull*/ sp_packet_get_header_mut(struct Packet */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::get_payload`].
|
||||
*
|
||||
* Returns a pointer to the current payload of the provided packet.
|
||||
*
|
||||
* Returns an [ByteSlice::INVALID] instance in case the packet does not have any payload.
|
||||
|
@ -2075,6 +2201,8 @@ struct Header */*notnull*/ sp_packet_get_header_mut(struct Packet */*notnull*/ i
|
|||
struct ByteSlice sp_packet_get_payload(struct Packet */*notnull*/ packet);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::serialize_to`].
|
||||
*
|
||||
* Serialize the packet into the provided buffer.
|
||||
*
|
||||
* # Panics
|
||||
|
@ -2087,6 +2215,8 @@ size_t sp_packet_serialize_to(struct Packet */*notnull*/ packet,
|
|||
struct ByteSlice buffer);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::set_header`].
|
||||
*
|
||||
* Sets the value of field `header` of the [`servicepoint::Packet`].
|
||||
*
|
||||
* This function is part of the `packet` module.
|
||||
|
@ -2095,6 +2225,8 @@ void sp_packet_set_header(struct Packet */*notnull*/ instance,
|
|||
struct Header value);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::Packet::set_payload`].
|
||||
*
|
||||
* Sets the payload of the provided packet to the provided data.
|
||||
*
|
||||
* This makes previous payload pointers invalid.
|
||||
|
@ -2121,9 +2253,11 @@ struct Packet *sp_packet_try_load(struct ByteSlice data);
|
|||
* This function is part of the `sp` module.
|
||||
*/
|
||||
bool sp_sp_u16_to_command_code(uint16_t code,
|
||||
CommandCode *result);
|
||||
CommandCode */*notnull*/ result);
|
||||
|
||||
/**
|
||||
* Calls method [`servicepoint::UdpSocket::free`].
|
||||
*
|
||||
*Deallocates a [`UdpSocket`] instance.
|
||||
*
|
||||
* This function is part of the `udpsocket` module.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue