123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- #ifndef ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_H_
- #define ZEPHYR_INCLUDE_IPC_SERVICE_IPC_SERVICE_H_
- #include <stdio.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct ipc_service_cb {
-
- void (*bound)(void *priv);
-
- void (*received)(const void *data, size_t len, void *priv);
-
- void (*error)(const char *message, void *priv);
- };
- struct ipc_ept;
- struct ipc_ept_cfg {
-
- const char *name;
-
- int prio;
-
- struct ipc_service_cb cb;
-
- void *priv;
- };
- int ipc_service_register_endpoint(struct ipc_ept **ept, const struct ipc_ept_cfg *cfg);
- int ipc_service_send(struct ipc_ept *ept, const void *data, size_t len);
- #ifdef __cplusplus
- }
- #endif
- #endif
|