This section describes the RPMsg Name Service component that allows:
More...
This section describes the RPMsg Name Service component that allows:
- Transmission of named endpoint creation and deletion announcement.
- Reception of the announcements.
|
typedef void(* | rpmsg_ns_new_ept_cb) (uint32_t new_ept, const char *new_ept_name, uint32_t flags, void *user_data) |
| New endpoint NS callback function type.
|
|
|
enum | rpmsg_ns_flags {
RL_NS_CREATE,
RL_NS_DESTROY
} |
|
struct rpmsg_ns_callback_data |
struct rpmsg_ns_static_context_container |
Registers application nameservice callback.
- Parameters
-
rpmsg_lite_dev | RPMsg-Lite instance |
app_cb | Application nameservice callback |
user_data | Application nameservice callback data |
ns_ept_ctxt | Nameservice endpoint preallocated context pointer, used in case of static api (RL_USE_STATIC_API) |
- Returns
- RL_NULL on error, NameService handle on success.
int32_t rpmsg_ns_unbind |
( |
struct rpmsg_lite_instance * |
rpmsg_lite_dev, |
|
|
rpmsg_ns_handle |
handle |
|
) |
| |
Unregisters application nameservice callback and cleans up.
- Parameters
-
rpmsg_lite_dev | RPMsg-Lite instance |
handle | NameService handle |
- Returns
- Status of function execution, RL_SUCCESS on success.
Sends name service announcement to remote device.
- Parameters
-
rpmsg_lite_dev | RPMsg-Lite instance |
new_ept | New endpoint to announce |
ept_name | Name for the announced endpoint |
flags | Channel creation/deletion flags |
- Returns
- Status of function execution, RL_SUCCESS on success