ZephyrDB
Embedded database for Zephyr RTOS: KV, time-series, and document models
Toggle main menu visibility
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
32
ZBUS_CHAN_DECLARE(zdb_kv_event_chan);
33
#if defined(CONFIG_ZDB_TS) && (CONFIG_ZDB_TS)
34
ZBUS_CHAN_DECLARE(zdb_ts_event_chan);
35
#endif
36
#if defined(CONFIG_ZDB_DOC) && (CONFIG_ZDB_DOC)
37
ZBUS_CHAN_DECLARE(zdb_doc_event_chan);
38
#endif
39
ZBUS_CHAN_DECLARE(zdb_core_event_chan);
40
48
int
zdb_eventing_zbus_publish
(
const
zdb_kv_event_t
*event);
49
#if defined(CONFIG_ZDB_TS) && (CONFIG_ZDB_TS)
57
int
zdb_eventing_zbus_publish_ts
(
const
zdb_ts_event_t
*event);
58
#endif
59
#if defined(CONFIG_ZDB_DOC) && (CONFIG_ZDB_DOC)
67
int
zdb_eventing_zbus_publish_doc
(
const
zdb_doc_event_t
*event);
68
#endif
69
77
int
zdb_eventing_zbus_publish_core
(
const
zdb_core_event_t
*event);
78
79
#endif
/* CONFIG_ZDB_EVENTING_ZBUS */
80
/* zdb_eventing_zbus */
82
83
#endif
/* ZEPHYRDB_EVENTING_ZBUS_H_ */
zdb_eventing_zbus_publish_core
int zdb_eventing_zbus_publish_core(const zdb_core_event_t *event)
Publish a core event on zdb_core_event_chan.
zdb_eventing_zbus_publish_doc
int zdb_eventing_zbus_publish_doc(const zdb_doc_event_t *event)
Publish a document event on zdb_doc_event_chan.
zdb_eventing_zbus_publish_ts
int zdb_eventing_zbus_publish_ts(const zdb_ts_event_t *event)
Publish a time-series event on zdb_ts_event_chan.
zdb_eventing_zbus_publish
int zdb_eventing_zbus_publish(const zdb_kv_event_t *event)
Publish a KV event on zdb_kv_event_chan.
zdb_core_event_t
Payload delivered to core event listeners.
Definition
zephyrdb.h:363
zdb_doc_event_t
Payload delivered to document event listeners.
Definition
zephyrdb.h:329
zdb_kv_event_t
Payload delivered to KV event listeners.
Definition
zephyrdb.h:261
zdb_ts_event_t
Payload delivered to time-series event listeners.
Definition
zephyrdb.h:297
zephyrdb.h
ZephyrDB public API.
zephyrdb_eventing_zbus.h
Generated by
1.17.0