17static void osadapter_write(rte_log_level_t level,
const char *tag,
const char *message);
39 status = RTE_STATUS_INVALID_PARAM;
63static void osadapter_write(rte_log_level_t level,
const char *tag,
const char *message)
rte_status_t ab_gp_channel_send_relay(ab_gp_channel_handle_t handle, rte_example_relay_kind_t kind, uint8_t index, const uint8_t *bytes, size_t size)
Sends an envelope over a specific C relay channel.
struct ab_gp_channel_context_s * ab_gp_channel_handle_t
Opaque handle over this component's own static per-process context.
rte_status_t ab_gp_jru_forward_install(const rte_osadapter_log_t *delegate)
Wraps delegate (the real local log OSAdapter, e.g. rte_posix_osadapter_log()) and registers the wrapp...
static ab_gp_channel_handle_t s_handle
void ab_gp_jru_forward_set_channel(ab_gp_channel_handle_t handle, uint8_t source_id)
Attaches the open AB<->C relay channel: from this call on, write() also republishes INFO+ events to G...
static uint8_t s_source_id
static const rte_osadapter_log_t * s_delegate
static const rte_osadapter_log_t s_forward_osadapter
static rte_status_t osadapter_init(void)
static __thread bool s_in_forward
static void osadapter_write(rte_log_level_t level, const char *tag, const char *message)
A/B -> Gateway log-event forwarding (Platform_Protocol_JRU/CLAUDE.md's "Wiring" section)....
ADR-038: the wire frame for the A/B<->C util side channel (RTE_EXAMPLE_RELAY_KIND_UTIL) and the C-sid...
static void rbc_util_frame_encode(uint8_t out[RBC_UTIL_FRAME_SIZE], rbc_util_msg_type_t msg_type, uint8_t source_id, uint16_t topic_id, uint8_t seq, const char *payload)
Encodes a util frame into a fixed RBC_UTIL_FRAME_SIZE buffer.
#define RBC_UTIL_FRAME_SIZE
#define RBC_UTIL_PAYLOAD_MAX
#define RBC_UTIL_TOPIC_JRU_LOG
A/B -> Gateway log-event forwarding (see rbc_util_jru_payload.h). Gateway's status service forwards e...
Wire payload for RBC_UTIL_TOPIC_JRU_LOG publishes: A/B forwarding one local log event to Gateway,...
static void rbc_util_jru_payload_encode(char *out, size_t out_size, rte_log_level_t level, const char *tag, const char *message)
Encodes one forwarded log event into a JRU_LOG publish payload.
West/East site identity and the per-site config derived from it (ports, container host lookup) - see ...
@ RTE_EXAMPLE_RELAY_KIND_UTIL