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 GST adapt header |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef XARECORDITFADAPTATION_H |
18 #ifndef XARECORDITFADAPTATION_H |
19 #define XARECORDITFADAPTATION_H |
19 #define XARECORDITFADAPTATION_H |
20 |
20 |
21 #include "xaadaptationgst.h" |
21 #include "xaadaptationgst.h" |
22 |
22 |
23 |
|
24 #ifdef _DEBUG |
23 #ifdef _DEBUG |
25 /*parse state names for debug prints*/ |
24 /*parse state names for debug prints*/ |
26 static const char* recordstatenames[3] = |
25 static const char* recordstatenames[3] = |
27 { |
26 { |
28 "XA_RECORDSTATE_STOPPED", |
27 "XA_RECORDSTATE_STOPPED", |
29 "XA_RECORDSTATE_PAUSED", |
28 "XA_RECORDSTATE_PAUSED", |
30 "XA_RECORDSTATE_RECORDING", |
29 "XA_RECORDSTATE_RECORDING", |
31 }; |
30 }; |
32 #define RECORDSTATENAME(i) ((i>0&&i<4)?recordstatenames[i-1]:"INVALID") |
31 #define RECORDSTATENAME(i) ((i>0&&i<4)?recordstatenames[i-1]:"INVALID") |
33 #endif /*_DEBUG*/ |
32 #endif /*_DEBUG*/ |
34 |
33 |
35 /* FUNCTIONS */ |
34 /* FUNCTIONS */ |
36 |
35 |
37 XAresult XARecordItfAdapt_SetRecordState(XAAdaptationGstCtx *ctx, XAuint32 state ); |
36 XAresult XARecordItfAdapt_SetRecordState(XAAdaptationGstCtx *ctx, |
38 XAresult XARecordItfAdapt_SetDurationLimit( XAAdaptationGstCtx *ctx, XAmillisecond msec ); |
37 XAuint32 state); |
39 XAresult XARecordItfAdapt_GetPosition( XAAdaptationGstCtx *ctx, XAmillisecond *pMsec ); |
38 XAresult XARecordItfAdapt_SetDurationLimit(XAAdaptationGstCtx *ctx, |
40 XAresult XARecordItfAdapt_EnablePositionTracking(XAAdaptationGstCtx *ctx, XAboolean enable); |
39 XAmillisecond msec); |
41 XAresult XARecordItfAdapt_GetRecordState(XAAdaptationGstCtx *bCtx, XAuint32 *state); |
40 XAresult XARecordItfAdapt_GetPosition(XAAdaptationGstCtx *ctx, |
|
41 XAmillisecond *pMsec); |
|
42 XAresult XARecordItfAdapt_EnablePositionTracking(XAAdaptationGstCtx *ctx, |
|
43 XAboolean enable); |
|
44 XAresult XARecordItfAdapt_GetRecordState(XAAdaptationGstCtx *bCtx, |
|
45 XAuint32 *state); |
42 |
46 |
43 #endif /* XARECORDITFADAPTATION_H */ |
47 #endif /* XARECORDITFADAPTATION_H */ |