Beispiel #1
0
/**
 * cprPostInit
 *
 * @brief The cprPostInit function IS called from pSIPCC @b after all the components are initialized.
 *
 * This function @b SHOULD complete any CPR activities before the phone is
 * operational. In other words a call to this function will be the last line of
 * the phone initializtion routine from pSIPCC. This function implementation
 * ties in a couple of debug commands to get more information on the CPR from
 * the shell.
 *
 *
 * @return CPR_SUCCESS or CPR_FAILURE
 * @note pSIPCC will NOT continue and stop initialization if the return value is CPR_FAILURE.
 */
cprRC_t
cprPostInit (void)
{
    /*
     * Bind in debug commands to toggle CPR debug printfs
     * from the phone cli.
     */

    debug_bind_keyword("cpr-info", &cprInfo);

    return CPR_SUCCESS;
}
Beispiel #2
0
/**
 * cprPostInit
 *
 * @brief The cprPostInit function IS called from pSIPCC @b after all the components are initialized. 
 *
 * This function @b SHOULD complete any CPR activities before the phone is
 * operational. In other words a call to this function will be the last line of
 * the phone initializtion routine from pSIPCC. This function implementation
 * ties in a couple of debug commands to get more information on the CPR from
 * the shell.
 *
 *
 * @return CPR_SUCCESS or CPR_FAILURE
 * @note pSIPCC will NOT continue and stop initialization if the return value is CPR_FAILURE.
 */
cprRC_t
cprPostInit (void)
{
    /*
     * Bind in debug commands to toggle CPR debug printfs
     * from the phone cli.
     */

    debug_bind_keyword("cpr-info", &cprInfo);
    //bind_show_keyword("cpr-msgq", cprShowMessageQueueStats);

    if (cpr_memory_mgmt_post_init() != TRUE) {
        return CPR_FAILURE;
    }

    return CPR_SUCCESS;
}