Advertisement
Guest User

Untitled

a guest
Sep 21st, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. /*******************************************************************************
  2. * Function Name :
  3. * Description :
  4. * Author : Georgi
  5. * Date : Jan 2018
  6. * Input :
  7. * Return : STATUS
  8. * Error path handling :
  9. * Logic :
  10. * Notes : None
  11. *******************************************************************************/
  12. bcl_err_t sat_bcl_test_db_set_p_duration(bcl_avl_tree_t *head, b_u32 idx, b_u32 duration)
  13. {
  14. sat_bcl_test_node_t *node = NULL;
  15. sat_test_node_t *usr = NULL;
  16. bcl_err_t iRet = BCL_OK;
  17.  
  18. iRet = sat_bcl_test_db_get_entry(head, idx, &node);
  19. if (iRet != BCL_OK)
  20. return iRet;
  21.  
  22. usr = (sat_test_node_t *)node->usr_data;
  23. usr->m.p_duration = duration;
  24.  
  25. return iRet;
  26. }
  27.  
  28. /*******************************************************************************
  29. * Function Name :
  30. * Description :
  31. * Author : Georgi
  32. * Date : Jan 2018
  33. * Input :
  34. * Return : STATUS
  35. * Error path handling :
  36. * Logic :
  37. * Notes : None
  38. *******************************************************************************/
  39. bcl_err_t sat_bcl_test_db_set_c_duration(bcl_avl_tree_t *head, b_u32 idx, b_u32 duration)
  40. {
  41. sat_bcl_test_node_t *node = NULL;
  42. sat_test_node_t *usr = NULL;
  43. bcl_err_t iRet = BCL_OK;
  44.  
  45. iRet = sat_bcl_test_db_get_entry(head, idx, &node);
  46. if (iRet != BCL_OK)
  47. return iRet;
  48.  
  49. usr = (sat_test_node_t *)node->usr_data;
  50. usr->m.c_duration = duration;
  51.  
  52. return iRet;
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement