Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*******************************************************************************
- * Function Name :
- * Description :
- * Author : Georgi
- * Date : Jan 2018
- * Input :
- * Return : STATUS
- * Error path handling :
- * Logic :
- * Notes : None
- *******************************************************************************/
- bcl_err_t sat_bcl_test_db_set_p_duration(bcl_avl_tree_t *head, b_u32 idx, b_u32 duration)
- {
- sat_bcl_test_node_t *node = NULL;
- sat_test_node_t *usr = NULL;
- bcl_err_t iRet = BCL_OK;
- iRet = sat_bcl_test_db_get_entry(head, idx, &node);
- if (iRet != BCL_OK)
- return iRet;
- usr = (sat_test_node_t *)node->usr_data;
- usr->m.p_duration = duration;
- return iRet;
- }
- /*******************************************************************************
- * Function Name :
- * Description :
- * Author : Georgi
- * Date : Jan 2018
- * Input :
- * Return : STATUS
- * Error path handling :
- * Logic :
- * Notes : None
- *******************************************************************************/
- bcl_err_t sat_bcl_test_db_set_c_duration(bcl_avl_tree_t *head, b_u32 idx, b_u32 duration)
- {
- sat_bcl_test_node_t *node = NULL;
- sat_test_node_t *usr = NULL;
- bcl_err_t iRet = BCL_OK;
- iRet = sat_bcl_test_db_get_entry(head, idx, &node);
- if (iRet != BCL_OK)
- return iRet;
- usr = (sat_test_node_t *)node->usr_data;
- usr->m.c_duration = duration;
- return iRet;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement