export value fields via macro
This commit is contained in:
parent
8296773779
commit
75e2df41fe
6 changed files with 165 additions and 128 deletions
|
@ -1166,9 +1166,9 @@ struct BitmapCommand */*notnull*/ sp_cmd_bitmap_from_bitmap(struct Bitmap */*not
|
|||
struct Bitmap */*notnull*/ sp_cmd_bitmap_get(struct BitmapCommand */*notnull*/ command);
|
||||
|
||||
/**
|
||||
* Reads the compression kind of the [BitmapCommand].
|
||||
*Gets the value of field `compression` of the [`servicepoint::BitmapCommand`].
|
||||
*/
|
||||
CompressionCode sp_cmd_bitmap_get_compression(struct BitmapCommand */*notnull*/ command);
|
||||
CompressionCode sp_cmd_bitmap_get_compression(struct BitmapCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Reads the origin field of the [BitmapCommand].
|
||||
|
@ -1196,10 +1196,10 @@ void sp_cmd_bitmap_set(struct BitmapCommand */*notnull*/ command,
|
|||
struct Bitmap */*notnull*/ bitmap);
|
||||
|
||||
/**
|
||||
* Overwrites the compression kind of the [BitmapCommand].
|
||||
*Sets the value of field `compression` of the [`servicepoint::BitmapCommand`].
|
||||
*/
|
||||
void sp_cmd_bitmap_set_compression(struct BitmapCommand */*notnull*/ command,
|
||||
CompressionCode compression);
|
||||
void sp_cmd_bitmap_set_compression(struct BitmapCommand */*notnull*/ instance,
|
||||
CompressionCode value);
|
||||
|
||||
/**
|
||||
* Overwrites the origin field of the [BitmapCommand].
|
||||
|
@ -1231,19 +1231,19 @@ void sp_cmd_bitvec_free(struct BitVecCommand */*notnull*/ instance);
|
|||
BitVec *sp_cmd_bitvec_get(struct BitVecCommand */*notnull*/ command);
|
||||
|
||||
/**
|
||||
* Reads the compression kind of the [BitVecCommand].
|
||||
*Gets the value of field `compression` of the [`servicepoint::BitVecCommand`].
|
||||
*/
|
||||
CompressionCode sp_cmd_bitvec_get_compression(struct BitVecCommand */*notnull*/ command);
|
||||
CompressionCode sp_cmd_bitvec_get_compression(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Reads the offset field of the [BitVecCommand].
|
||||
*Gets the value of field `offset` of the [`servicepoint::BitVecCommand`].
|
||||
*/
|
||||
Offset sp_cmd_bitvec_get_offset(struct BitVecCommand */*notnull*/ command);
|
||||
Offset sp_cmd_bitvec_get_offset(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Returns the [BinaryOperation] of the command.
|
||||
*Gets the value of field `operation` of the [`servicepoint::BitVecCommand`].
|
||||
*/
|
||||
BinaryOperation sp_cmd_bitvec_get_operation(struct BitVecCommand */*notnull*/ command);
|
||||
BinaryOperation sp_cmd_bitvec_get_operation(struct BitVecCommand */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Set pixel data starting at the pixel offset on screen.
|
||||
|
@ -1271,22 +1271,22 @@ void sp_cmd_bitvec_set(struct BitVecCommand */*notnull*/ command,
|
|||
BitVec */*notnull*/ bitvec);
|
||||
|
||||
/**
|
||||
* Overwrites the compression kind of the [BitVecCommand].
|
||||
*Sets the value of field `compression` of the [`servicepoint::BitVecCommand`].
|
||||
*/
|
||||
void sp_cmd_bitvec_set_compression(struct BitVecCommand */*notnull*/ command,
|
||||
CompressionCode compression);
|
||||
void sp_cmd_bitvec_set_compression(struct BitVecCommand */*notnull*/ instance,
|
||||
CompressionCode value);
|
||||
|
||||
/**
|
||||
* Overwrites the offset field of the [BitVecCommand].
|
||||
*Sets the value of field `offset` of the [`servicepoint::BitVecCommand`].
|
||||
*/
|
||||
void sp_cmd_bitvec_set_offset(struct BitVecCommand */*notnull*/ command,
|
||||
Offset offset);
|
||||
void sp_cmd_bitvec_set_offset(struct BitVecCommand */*notnull*/ instance,
|
||||
Offset value);
|
||||
|
||||
/**
|
||||
* Overwrites the [BinaryOperation] of the command.
|
||||
*Sets the value of field `operation` of the [`servicepoint::BitVecCommand`].
|
||||
*/
|
||||
void sp_cmd_bitvec_set_operation(struct BitVecCommand */*notnull*/ command,
|
||||
BinaryOperation operation);
|
||||
void sp_cmd_bitvec_set_operation(struct BitVecCommand */*notnull*/ instance,
|
||||
BinaryOperation value);
|
||||
|
||||
/**
|
||||
* Tries to turn a [BitVecCommand] into a [Packet].
|
||||
|
@ -1305,7 +1305,10 @@ struct GlobalBrightnessCommand */*notnull*/ sp_cmd_brightness_global_clone(struc
|
|||
*/
|
||||
void sp_cmd_brightness_global_free(struct GlobalBrightnessCommand */*notnull*/ instance);
|
||||
|
||||
Brightness sp_cmd_brightness_global_get(struct GlobalBrightnessCommand */*notnull*/ command);
|
||||
/**
|
||||
*Gets the value of field `brightness` of the [`servicepoint::GlobalBrightnessCommand`].
|
||||
*/
|
||||
Brightness sp_cmd_brightness_global_get_brightness(struct GlobalBrightnessCommand */*notnull*/ instance);
|
||||
|
||||
struct Packet */*notnull*/ sp_cmd_brightness_global_into_packet(struct GlobalBrightnessCommand */*notnull*/ command);
|
||||
|
||||
|
@ -1317,10 +1320,10 @@ struct Packet */*notnull*/ sp_cmd_brightness_global_into_packet(struct GlobalBri
|
|||
struct GlobalBrightnessCommand */*notnull*/ sp_cmd_brightness_global_new(Brightness brightness);
|
||||
|
||||
/**
|
||||
* Moves the provided bitmap to be contained in the command.
|
||||
*Sets the value of field `brightness` of the [`servicepoint::GlobalBrightnessCommand`].
|
||||
*/
|
||||
void sp_cmd_brightness_global_set(struct GlobalBrightnessCommand */*notnull*/ command,
|
||||
Brightness brightness);
|
||||
void sp_cmd_brightness_global_set_brightness(struct GlobalBrightnessCommand */*notnull*/ instance,
|
||||
Brightness value);
|
||||
|
||||
/**
|
||||
*Clones a [BrightnessGridCommand] instance.
|
||||
|
@ -1712,12 +1715,17 @@ void sp_packet_free(struct Packet */*notnull*/ instance);
|
|||
struct Packet */*notnull*/ sp_packet_from_parts(struct Header header,
|
||||
struct ByteSlice payload);
|
||||
|
||||
/**
|
||||
*Gets the value of field `header` of the [`servicepoint::Packet`].
|
||||
*/
|
||||
struct Header sp_packet_get_header(struct Packet */*notnull*/ instance);
|
||||
|
||||
/**
|
||||
* Returns a pointer to the header field of the provided packet.
|
||||
*
|
||||
* The returned header can be changed and will be valid for the lifetime of the packet.
|
||||
*/
|
||||
struct Header */*notnull*/ sp_packet_get_header(struct Packet */*notnull*/ packet);
|
||||
struct Header */*notnull*/ sp_packet_get_header_mut(struct Packet */*notnull*/ packet);
|
||||
|
||||
/**
|
||||
* Returns a pointer to the current payload of the provided packet.
|
||||
|
@ -1738,6 +1746,12 @@ struct ByteSlice sp_packet_get_payload(struct Packet */*notnull*/ packet);
|
|||
void sp_packet_serialize_to(struct Packet */*notnull*/ packet,
|
||||
struct ByteSlice buffer);
|
||||
|
||||
/**
|
||||
*Sets the value of field `header` of the [`servicepoint::Packet`].
|
||||
*/
|
||||
void sp_packet_set_header(struct Packet */*notnull*/ instance,
|
||||
struct Header value);
|
||||
|
||||
/**
|
||||
* Sets the payload of the provided packet to the provided data.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue