Skip to content

Commit

Permalink
Imported changes from files generated by latest cbexigen.
Browse files Browse the repository at this point in the history
Signed-off-by: Ashley <[email protected]>
  • Loading branch information
ashesman authored and Ashley committed Oct 21, 2024
1 parent ec437e6 commit 3332337
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/cbv2g/common/exi_bitstream.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ extern "C" {

typedef void (*exi_status_callback)(int message_id, int status_code, int value_1, int value_2);

typedef struct {
typedef struct exi_bitstream {
/* byte array size and data */
uint8_t* data;
size_t data_size;
Expand Down
1 change: 1 addition & 0 deletions lib/cbv2g/app_handshake/appHand_Decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "cbv2g/common/exi_header.h"
#include "cbv2g/common/exi_types_decoder.h"
#include "cbv2g/app_handshake/appHand_Datatypes.h"
#include "cbv2g/app_handshake/appHand_Decoder.h"



Expand Down
1 change: 1 addition & 0 deletions lib/cbv2g/app_handshake/appHand_Encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "cbv2g/common/exi_error_codes.h"
#include "cbv2g/common/exi_header.h"
#include "cbv2g/app_handshake/appHand_Datatypes.h"
#include "cbv2g/app_handshake/appHand_Encoder.h"



Expand Down
4 changes: 2 additions & 2 deletions lib/cbv2g/common/exi_basetypes_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int exi_basetypes_encoder_bytes(exi_bitstream_t* stream, size_t bytes_len, const
return EXI_ERROR__BYTE_BUFFER_TOO_SMALL;
}

uint8_t* current_byte = (uint8_t*)bytes;
const uint8_t* current_byte = bytes;

for (size_t n = 0; n < bytes_len; n++)
{
Expand Down Expand Up @@ -253,7 +253,7 @@ int exi_basetypes_encoder_characters(exi_bitstream_t* stream, size_t characters_
return EXI_ERROR__CHARACTER_BUFFER_TOO_SMALL;
}

uint8_t* current_char = (uint8_t*)characters;
const uint8_t* current_char = (const uint8_t*)characters;

for (size_t n = 0; n < characters_len; n++)
{
Expand Down

0 comments on commit 3332337

Please sign in to comment.