-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New interest format #405
Merged
OlivierHecart
merged 15 commits into
eclipse-zenoh:protocol_changes
from
jean-roland:ft_interest
May 14, 2024
Merged
New interest format #405
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
a241013
feat: implement interest protocol changes
jean-roland 8144636
test: add interests to test msgcodec
jean-roland 210c7c0
fix: bad struct name
jean-roland c79e34b
fix: bad interest generation and decode
jean-roland f00f12b
feat: add declare interest id
jean-roland 7f8dd90
feat: rework filter/interest with wire change
jean-roland 3a576d0
fix: is final mask naming
jean-roland 6dd17ea
fix: remove stray char
jean-roland a5c143b
fix: wait for joins before starting publisher
jean-roland 4ae980c
fix: encode declare_final header
jean-roland c6e6af6
test: update raweth test
jean-roland 196dabd
fix: explicit decl_final_t members
jean-roland eff219b
build: reactivate interests by default
jean-roland 36ebd32
test: filter packets on raweth test
jean-roland 6b3d1cf
doc: bad comment values
jean-roland File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// Copyright (c) 2024 ZettaScale Technology | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Eclipse Public License 2.0 which is available at | ||
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
// which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
// | ||
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
// | ||
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#ifndef INCLUDE_ZENOH_PICO_PROTOCOL_CODEC_INTEREST_H | ||
#define INCLUDE_ZENOH_PICO_PROTOCOL_CODEC_INTEREST_H | ||
|
||
#include "zenoh-pico/protocol/definitions/interest.h" | ||
#include "zenoh-pico/protocol/iobuf.h" | ||
|
||
int8_t _z_interest_encode(_z_wbuf_t *wbf, const _z_interest_t *interest, _Bool is_final); | ||
int8_t _z_interest_decode(_z_interest_t *decl, _z_zbuf_t *zbf, _Bool is_final, _Bool has_ext); | ||
|
||
#endif /* INCLUDE_ZENOH_PICO_PROTOCOL_CODEC_DECLARATIONS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// Copyright (c) 2024 ZettaScale Technology | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Eclipse Public License 2.0 which is available at | ||
// http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
// which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
// | ||
// SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
// | ||
// Contributors: | ||
// ZettaScale Zenoh Team, <[email protected]> | ||
// | ||
|
||
#ifndef INCLUDE_ZENOH_PICO_PROTOCOL_DEFINITIONS_INTEREST_H | ||
#define INCLUDE_ZENOH_PICO_PROTOCOL_DEFINITIONS_INTEREST_H | ||
|
||
#include <stdint.h> | ||
|
||
#include "zenoh-pico/protocol/core.h" | ||
#include "zenoh-pico/protocol/keyexpr.h" | ||
|
||
#define _Z_INTEREST_FLAG_KEYEXPRS (1) | ||
#define _Z_INTEREST_FLAG_SUBSCRIBERS (1 << 1) | ||
#define _Z_INTEREST_FLAG_QUERYABLES (1 << 2) | ||
#define _Z_INTEREST_FLAG_TOKENS (1 << 3) | ||
#define _Z_INTEREST_FLAG_RESTRICTED (1 << 4) | ||
#define _Z_INTEREST_FLAG_CURRENT (1 << 5) | ||
#define _Z_INTEREST_FLAG_FUTURE (1 << 6) | ||
#define _Z_INTEREST_FLAG_AGGREGATE (1 << 7) | ||
|
||
#define _Z_INTEREST_NOT_FINAL_MASK (_Z_INTEREST_FLAG_CURRENT | _Z_INTEREST_FLAG_FUTURE) | ||
|
||
typedef struct { | ||
_z_keyexpr_t _keyexpr; | ||
uint32_t _id; | ||
uint8_t flags; | ||
} _z_interest_t; | ||
_z_interest_t _z_interest_null(void); | ||
|
||
void _z_interest_clear(_z_interest_t* decl); | ||
|
||
_z_interest_t _z_make_interest(_Z_MOVE(_z_keyexpr_t) key, uint32_t id, uint8_t flags); | ||
_z_interest_t _z_make_interest_final(uint32_t id); | ||
|
||
#endif /* INCLUDE_ZENOH_PICO_PROTOCOL_DEFINITIONS_INTEREST_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be
|Z|F|C|INTEREST |