• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2021 Chipsea Technologies (Shenzhen) Corp., Ltd. All rights reserved.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef _BLE_KE_MSG_EXTERN_H
16 #define _BLE_KE_MSG_EXTERN_H
17 
18 bool ke_msg_in_queue(void const *param_ptr);
19 ke_msg_id_t ke_msg_src_id_get(void const *param_ptr);
20 ke_msg_id_t ke_msg_dest_id_get(void const *param_ptr);
21 void ke_msg_free(struct ke_msg const *param);
22 void ke_msg_forward_new_id(void const *param_ptr,
23                            ke_msg_id_t const msg_id, ke_task_id_t const dest_id, ke_task_id_t const src_id);
24 void ke_msg_forward(void const *param_ptr, ke_task_id_t const dest_id, ke_task_id_t const src_id);
25 void ke_msg_send_basic(ke_msg_id_t const id, ke_task_id_t const dest_id, ke_task_id_t const src_id);
26 void ke_msg_send(void const *param_ptr);
27 void *ke_msg_alloc(ke_msg_id_t const id, ke_task_id_t const dest_id,
28                    ke_task_id_t const src_id, uint16_t const param_len);
29 
30 #endif // _BLE_KE_MSG_EXTERN_H
31