📄 am_app_feature_server.cc
字号:
/* (c) Copyright Motorola 1996, All rights reserved. Motorola Confidential Proprietary Contains confidential proprietary information of Motorola, Inc. Reverse engineering is prohibited. The copyright notice does not imply publication. ***************************** REVISION HISTORY ****************************** Date Author Reference Number======== ======== ================00-08-09 mtaraba CR - CSGce55882 Eliminate file gsm.h from audio manager99-10-08 ktang PR - CSGce39515 Feature DB for Ringer/Music/Pwr Up Phase II Grief Audio - Convert the member functions to call DL_DbFeature* functions99-08-31 mkloza PR - CSGce34326 GRiEF97-07-07 gswanson PR - CSGce06712 Rae DHFA, ignore the cradle state when an external handset is connected - removed includes refering to the shared display. AM does not care about the shared display. - removed other useless includes97-08-11 gswanson PR - CSGce12130 Unique Ringer Tone - Added function to get the current value of a feature when the value that needs to be returned is larger than a byte. (Rather than the other functions which can't return something that large). */#include <SUAPI/suapi.h>#include <stddef.h>#include <audio/am_app_feature_server.h>#include <audio/AM_App_Feature_Server.H>UINT32am_app_feature_server_read_state (DL_DB_FEATURE_ID_T feature_id){ return (AM_App_Feature_Server :: read_state(feature_id));}/* DESCRIPTION: Function to return the current state of a feature. INPUTS: feature_id - DL DB Feature ID OUTPUTS: the current state of a feature IMPORTANT NOTES: None */UINT32AM_App_Feature_Server :: read_state (DL_DB_FEATURE_ID_T feature_id){ DL_DB_FEATURE_SETTING_T feature_state; DL_DbFeatureGetCurrentState(feature_id, &feature_state); return feature_state;}/* DESCRIPTION: Function to return the current value of a feature. INPUTS: feature_id - DL DB Feature ID OUTPUTS: the current value of a feature IMPORTANT NOTES: None */UINT32AM_App_Feature_Server :: read_value (DL_DB_FEATURE_ID_T feature_id){ UINT32 feature_value; DL_DbFeatureGetValue(feature_id, &feature_value); return feature_value;}/* DESCRIPTION: Function to return the current string value of a feature. INPUTS: feature_id - DL DB Feature ID feature_value - pointer to the current string value of a feature OUTPUTS: None IMPORTANT NOTES: None */voidAM_App_Feature_Server :: read_string (DL_DB_FEATURE_ID_T feature_id, UINT8 *feature_value){ // DL_DbFeatureGetValueString(feature_id, (W_CHAR*)feature_value);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -