equal
deleted
inserted
replaced
40 *****************************************************************************/ |
40 *****************************************************************************/ |
41 |
41 |
42 /* XAResult XARadioDeviceImpl_Create |
42 /* XAResult XARadioDeviceImpl_Create |
43 * Description: Create object |
43 * Description: Create object |
44 */ |
44 */ |
45 XAresult XARadioDeviceImpl_CreateRadioDevice(FrameworkMap* mapper, |
45 XAresult XARadioDeviceImpl_CreateRadioDevice(XAObjectItf* pDevice, |
46 XAObjectItf* pDevice, |
|
47 XAuint32 numInterfaces, |
46 XAuint32 numInterfaces, |
48 const XAInterfaceID * pInterfaceIds, |
47 const XAInterfaceID * pInterfaceIds, |
49 const XAboolean * pInterfaceRequired) |
48 const XAboolean * pInterfaceRequired) |
50 { |
49 { |
51 XARadioDeviceImpl* pImpl = NULL; |
50 XARadioDeviceImpl* pImpl = NULL; |
118 { |
117 { |
119 entry->required = XA_BOOLEAN_TRUE; |
118 entry->required = XA_BOOLEAN_TRUE; |
120 } |
119 } |
121 } |
120 } |
122 } |
121 } |
123 |
122 |
124 /* This code is put here to return Feature Not Supported since adaptation is not present*/ |
123 *pDevice = (XAObjectItf)&(pBaseObj->self); |
125 /*************************************************/ |
124 pImpl->adaptationCtx = XARadioAdapt_Create(); |
126 DEBUG_ERR("Required interface not found - abort creation!"); |
125 |
127 XAObjectItfImpl_Destroy((XAObjectItf)&(pBaseObj)); |
|
128 XA_IMPL_THREAD_SAFETY_EXIT(XATSRadio); |
126 XA_IMPL_THREAD_SAFETY_EXIT(XATSRadio); |
129 DEBUG_API("<-XARadioDeviceImpl_CreateRadioDevice"); |
127 |
130 return XA_RESULT_FEATURE_UNSUPPORTED; |
|
131 /*************************************************/ |
|
132 |
|
133 /* // Initialize XARadioDeviceImpl variables |
|
134 pImpl->adaptationCtx = XARadioAdapt_Create(); |
|
135 |
|
136 //Set ObjectItf to point to newly created object |
|
137 *pDevice = (XAObjectItf)&(pBaseObj->self); |
|
138 |
|
139 XA_IMPL_THREAD_SAFETY_EXIT(XATSRadio); |
|
140 DEBUG_API("<-XARadioDeviceImpl_Create"); |
128 DEBUG_API("<-XARadioDeviceImpl_Create"); |
141 return XA_RESULT_SUCCESS;*/ |
129 return XA_RESULT_SUCCESS; |
142 } |
130 } |
143 |
131 |
144 /* XAResult XARadioDeviceImpl_QueryNumSupportedInterfaces |
132 /* XAResult XARadioDeviceImpl_QueryNumSupportedInterfaces |
145 * Description: Statically query number of supported interfaces |
133 * Description: Statically query number of supported interfaces |
146 */ |
134 */ |