equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
19 // |
19 // |
20 |
20 |
21 |
21 |
22 |
22 |
23 // Include Files |
23 // Include Files |
24 |
|
25 #include "OstTraceDefinitions.h" |
|
26 #ifdef OST_TRACE_COMPILER_IN_USE |
|
27 #include "cbertlvTraces.h" |
|
28 #endif |
|
29 |
|
30 #include "CBerTlv.h" // Header of this class |
24 #include "CBerTlv.h" // Header of this class |
|
25 #include "tflogger.h" // For logging |
31 |
26 |
32 // External Data Structures |
27 // External Data Structures |
33 // none |
28 // none |
34 |
29 |
35 // External Function Prototypes |
30 // External Function Prototypes |
79 CTlv* aTlv, // TLV |
74 CTlv* aTlv, // TLV |
80 TUint8 aTlvTagValue, // TLV identifier |
75 TUint8 aTlvTagValue, // TLV identifier |
81 TInt itemNbr // Item number |
76 TInt itemNbr // Item number |
82 ) |
77 ) |
83 { |
78 { |
84 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CBERTLV_TLVBYTAGVALUE_1, "UTILITY: CBerTlv::TlvByTagValue"); |
79 TFLOGSTRING("UTILITY: CBerTlv::TlvByTagValue"); |
85 TInt currentTlv( 0 ); |
80 TInt currentTlv( 0 ); |
86 TInt tlvLength( 0 ); |
81 TInt tlvLength( 0 ); |
87 TInt index( 0 ); |
82 TInt index( 0 ); |
88 |
83 |
89 // TLV start index |
84 // TLV start index |
149 ( |
144 ( |
150 CTlv* aTlv, // TLV to fill |
145 CTlv* aTlv, // TLV to fill |
151 TUint8 aTlvTagValue // Tag of TLV to find |
146 TUint8 aTlvTagValue // Tag of TLV to find |
152 ) |
147 ) |
153 { |
148 { |
154 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CBERTLV_TLVBYTAGVALUEMULTI_1, "UTILITY: CBerTlv::TlvByTagValueMulti"); |
149 TFLOGSTRING("UTILITY: CBerTlv::TlvByTagValueMulti"); |
155 TInt currentTlv( 0 ); |
150 TInt currentTlv( 0 ); |
156 TInt16 tlvLength( 0 ); |
151 TInt16 tlvLength( 0 ); |
157 TInt indMulti( 0 ); |
152 TInt indMulti( 0 ); |
158 TInt16 multiLength( 0 ); |
153 TInt16 multiLength( 0 ); |
159 // TLV start index |
154 // TLV start index |