equal
deleted
inserted
replaced
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #include <stdio.h> |
18 #include <stdio.h> |
19 #include <stdlib.h> |
19 #include <stdlib.h> |
20 #include <assert.h> |
|
21 |
20 |
22 #include "xanlinearvolumeitf.h" |
21 #include "xanlinearvolumeitf.h" |
23 #include "xanokialinearvolumeitfadaptationmmf.h" |
22 #include "xanokialinearvolumeitfadaptationmmf.h" |
24 |
23 |
25 /** |
24 /** |
275 * Description: Free all resources reserved at XANokiaLinearVolumeItfImpl_Create |
274 * Description: Free all resources reserved at XANokiaLinearVolumeItfImpl_Create |
276 **/ |
275 **/ |
277 void XANokiaLinearVolumeItfImpl_Free(XANokiaLinearVolumeItfImpl* self) |
276 void XANokiaLinearVolumeItfImpl_Free(XANokiaLinearVolumeItfImpl* self) |
278 { |
277 { |
279 DEBUG_API("->XANokiaLinearVolumeItfImpl_Free"); |
278 DEBUG_API("->XANokiaLinearVolumeItfImpl_Free"); |
280 assert(self==self->self); |
|
281 free(self); |
279 free(self); |
282 DEBUG_API("<-XANokiaLinearVolumeItfImpl_Free"); |
280 DEBUG_API("<-XANokiaLinearVolumeItfImpl_Free"); |
283 } |
281 } |
284 |
282 |
285 /* void XANokiaLinearVolumeItfimpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event ) |
283 /* void XANokiaLinearVolumeItfimpl_AdaptCb( void *pHandlerCtx, XAAdaptEvent *event ) |
308 DEBUG_API("Volume level changed in adaptation"); |
306 DEBUG_API("Volume level changed in adaptation"); |
309 impl->callback(impl->cbPtrToSelf, impl->context, |
307 impl->callback(impl->cbPtrToSelf, impl->context, |
310 XA_NOKIALINEARVOLUME_EVENT_VOLUME_CHANGED, eventBoolean); |
308 XA_NOKIALINEARVOLUME_EVENT_VOLUME_CHANGED, eventBoolean); |
311 } |
309 } |
312 } |
310 } |
|
311 else |
|
312 { |
|
313 /* do nothing */ |
|
314 } |
313 DEBUG_API("<-XANokiaLinearVolumeItfimpl_AdaptCb"); |
315 DEBUG_API("<-XANokiaLinearVolumeItfimpl_AdaptCb"); |
314 } |
316 } |