ZephyrDB
Embedded database for Zephyr RTOS: KV, time-series, and document models
Loading...
Searching...
No Matches
zephyrdb_eventing_zbus.h
Go to the documentation of this file.
1
23
24#ifndef ZEPHYRDB_EVENTING_ZBUS_H_
25#define ZEPHYRDB_EVENTING_ZBUS_H_
26
27#include "zephyrdb.h"
28
29#if defined(CONFIG_ZDB_EVENTING_ZBUS) && (CONFIG_ZDB_EVENTING_ZBUS)
30#include <zephyr/zbus/zbus.h>
31
32ZBUS_CHAN_DECLARE(zdb_kv_event_chan);
33#if defined(CONFIG_ZDB_TS) && (CONFIG_ZDB_TS)
34ZBUS_CHAN_DECLARE(zdb_ts_event_chan);
35#endif
36#if defined(CONFIG_ZDB_DOC) && (CONFIG_ZDB_DOC)
37ZBUS_CHAN_DECLARE(zdb_doc_event_chan);
38#endif
39ZBUS_CHAN_DECLARE(zdb_core_event_chan);
40
49#if defined(CONFIG_ZDB_TS) && (CONFIG_ZDB_TS)
58#endif
59#if defined(CONFIG_ZDB_DOC) && (CONFIG_ZDB_DOC)
68#endif
69
78
79#endif /* CONFIG_ZDB_EVENTING_ZBUS */
80 /* zdb_eventing_zbus */
82
83#endif /* ZEPHYRDB_EVENTING_ZBUS_H_ */
int zdb_eventing_zbus_publish_core(const zdb_core_event_t *event)
Publish a core event on zdb_core_event_chan.
int zdb_eventing_zbus_publish_doc(const zdb_doc_event_t *event)
Publish a document event on zdb_doc_event_chan.
int zdb_eventing_zbus_publish_ts(const zdb_ts_event_t *event)
Publish a time-series event on zdb_ts_event_chan.
int zdb_eventing_zbus_publish(const zdb_kv_event_t *event)
Publish a KV event on zdb_kv_event_chan.
Payload delivered to core event listeners.
Definition zephyrdb.h:363
Payload delivered to document event listeners.
Definition zephyrdb.h:329
Payload delivered to KV event listeners.
Definition zephyrdb.h:261
Payload delivered to time-series event listeners.
Definition zephyrdb.h:297
ZephyrDB public API.