1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: Record Itf adapt header |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XARECORDITFADAPTATIONMMF_H |
18 #ifndef XARECORDITFADAPTATIONMMF_H |
19 #define XARECORDITFADAPTATIONMMF_H |
19 #define XARECORDITFADAPTATIONMMF_H |
20 |
20 |
21 #include "xaadaptationmmf.h" |
21 #include "xaadaptationmmf.h" |
22 #include "xadebug.h" |
22 #include "xadebug.h" |
23 #include <glib.h> |
23 #include <glib.h> |
24 |
24 |
25 |
|
26 #ifdef _DEBUG |
25 #ifdef _DEBUG |
27 /*parse state names for debug prints*/ |
26 /*parse state names for debug prints*/ |
28 static const char* recordstatenamesmmf[3] = |
27 static const char* recordstatenamesmmf[3] = |
29 { |
28 { |
30 "XA_RECORDSTATE_STOPPED", |
29 "XA_RECORDSTATE_STOPPED", |
31 "XA_RECORDSTATE_PAUSED", |
30 "XA_RECORDSTATE_PAUSED", |
32 "XA_RECORDSTATE_RECORDING", |
31 "XA_RECORDSTATE_RECORDING", |
33 }; |
32 }; |
34 #define RECORDSTATENAME(i) ((i>0&&i<4)?recordstatenamesmmf[i-1]:"INVALID") |
33 #define RECORDSTATENAME(i) ((i>0&&i<4)?recordstatenamesmmf[i-1]:"INVALID") |
35 #endif /*_DEBUG*/ |
34 #endif /*_DEBUG*/ |
36 |
35 |
37 /*forward declaration of position updater callback*/ |
36 /*forward declaration of position updater callback*/ |
38 gboolean XARecordItfAdaptMMF_PositionUpdate(gpointer ctx, XAuint64 position); |
37 gboolean XARecordItfAdaptMMF_PositionUpdate(gpointer ctx, XAuint64 position); |
39 |
38 |
40 |
|
41 /* FUNCTIONS */ |
39 /* FUNCTIONS */ |
42 |
40 |
43 XAresult XARecordItfAdaptMMF_SetRecordState(XAAdaptationMMFCtx *ctx, XAuint32 state ); |
41 XAresult XARecordItfAdaptMMF_SetRecordState(XAAdaptationMMFCtx *ctx, |
44 XAresult XARecordItfAdaptMMF_GetPosition( XAAdaptationMMFCtx *ctx, XAmillisecond *pMsec ); |
42 XAuint32 state); |
45 XAresult XARecordItfAdaptMMF_GetRecordState(XAAdaptationMMFCtx *bCtx, XAuint32 *state); |
43 XAresult XARecordItfAdaptMMF_GetPosition(XAAdaptationMMFCtx *ctx, |
46 XAresult XARecordItfAdaptMMF_EnablePositionTracking(XAAdaptationMMFCtx *ctx, XAboolean enable); |
44 XAmillisecond *pMsec); |
47 XAresult XARecordItfAdaptMMF_SetPositionUpdatePeriod(XAAdaptationMMFCtx *ctx, XAmillisecond pMsec); |
45 XAresult XARecordItfAdaptMMF_GetRecordState(XAAdaptationMMFCtx *bCtx, |
|
46 XAuint32 *state); |
|
47 XAresult XARecordItfAdaptMMF_EnablePositionTracking(XAAdaptationMMFCtx *ctx, |
|
48 XAboolean enable); |
|
49 XAresult XARecordItfAdaptMMF_SetPositionUpdatePeriod(XAAdaptationMMFCtx *ctx, |
|
50 XAmillisecond pMsec); |
48 |
51 |
49 #endif /* XARECORDITFADAPTATIONMMF_H */ |
52 #endif /* XARECORDITFADAPTATIONMMF_H */ |