-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: implement interest protocol changes * test: add interests to test msgcodec * fix: bad struct name * fix: bad interest generation and decode * feat: add declare interest id * feat: rework filter/interest with wire change * fix: is final mask naming * fix: remove stray char * fix: wait for joins before starting publisher * fix: encode declare_final header * test: update raweth test * fix: explicit decl_final_t members * build: reactivate interests by default * test: filter packets on raweth test * doc: bad comment values
- Loading branch information
1 parent
2a767bc
commit 0555baf
Showing
24 changed files
with
561 additions
and
293 deletions.
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.