Skip to content

Commit

Permalink
fix default constructor for put options
Browse files Browse the repository at this point in the history
  • Loading branch information
p-avital committed Jan 18, 2024
1 parent 186873d commit a14d1c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ void z_publisher_drop(z_owned_publisher_t *val) { z_undeclare_publisher(val); }
z_put_options_t z_put_options_default(void) {
return (z_put_options_t){.encoding = z_encoding_default(),
.congestion_control = Z_CONGESTION_CONTROL_DEFAULT,
.priority = Z_PRIORITY_DEFAULT};
.priority = Z_PRIORITY_DEFAULT,
.attachment = z_attachment_null()};
}

z_delete_options_t z_delete_options_default(void) {
Expand Down Expand Up @@ -678,7 +679,7 @@ int8_t z_undeclare_publisher(z_owned_publisher_t *pub) {
}

z_publisher_put_options_t z_publisher_put_options_default(void) {
return (z_publisher_put_options_t){.encoding = z_encoding_default()};
return (z_publisher_put_options_t){.encoding = z_encoding_default(), .attachment = z_attachment_null()};
}

z_publisher_delete_options_t z_publisher_delete_options_default(void) {
Expand Down
2 changes: 1 addition & 1 deletion zenohpico.pc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ prefix=/usr/local
Name: zenohpico
Description:
URL:
Version: 0.11.20240117dev
Version: 0.11.20240118dev
Cflags: -I${prefix}/include
Libs: -L${prefix}/lib -lzenohpico

0 comments on commit a14d1c2

Please sign in to comment.