Lines Matching full:code

10 (and module) code to receive callbacks for MCUmgr events that they are
11 interested in and react to them or return a status code to the calling function
26 registration and notification system into the code. This will not provide any
36 application code as per:
38 .. code-block:: c
54 /* Return OK status code to continue with acceptance to underlying handler */
65 This code registers a handler for the :c:enumerator:`MGMT_EVT_OP_CMD_DONE`
85 .. code-block:: c
93 The following code is not allowed, and will cause undefined operation, because
97 .. code-block:: c
134 allowed or denied. With these handlers, the first non-OK error code returned
139 .. code-block:: c
160 /* Return an access denied error code to the client and abort calling
168 /* Return a no entry error code to the client, call additional handlers
177 /* Return OK status code to continue with acceptance to underlying handler */
188 This code registers a handler for the
195 :c:enum:`mcumgr_err_t` error code and :c:enumerator:`MGMT_CB_ERROR_RC`
196 can be returned, or a group error code (introduced with version 2 of the MCUmgr
198 value to the group error code and returning :c:enumerator:`MGMT_CB_ERROR_ERR`.
210 .. code-block:: c
251 /* A handler returned a failure code */
253 /* The failure code is the RC value */
280 If there is existing code using the previous callback system(s) in Zephyr 3.2
282 code, the following callback registration functions will need to be migrated
296 the action or false to deny, a MCUmgr result code needs to be returned,
297 :c:enumerator:`MGMT_ERR_EOK` will allow the action, any other return code
298 will disallow it and return that code to the client
314 allow the action or false to deny, a MCUmgr result code needs to be
316 return code will disallow it and return that code to the client
322 true to allow the action or false to deny, a MCUmgr result code needs to be
324 return code will disallow it and return that code to the client