equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Helper functions for internal use in Wrapper. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 #include <libxml2_tree.h> |
|
22 |
|
23 #include "xmlsec_error_flag.h" |
|
24 |
|
25 #include "xmlsecwinternalutils.h" |
|
26 |
|
27 // --------------------------------------------------------------------------- |
|
28 // Checks the error flag, and if the flag is set: leaves and resets it |
|
29 // --------------------------------------------------------------------------- |
|
30 // |
|
31 void XmlSecErrorFlagTestL() |
|
32 { |
|
33 TInt error = xmlSecCheckErrorFlag(); |
|
34 if ( error ) |
|
35 { |
|
36 xmlSecResetErrorFlag(); |
|
37 User::Leave( error ); |
|
38 } |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------------------------- |
|
42 // Free node pointer |
|
43 // --------------------------------------------------------------------------- |
|
44 // |
|
45 void LibxmlNodeCleanup( |
|
46 TAny* aNodePtr ) |
|
47 { |
|
48 xmlFreeNode((xmlNodePtr)aNodePtr); |
|
49 } |
|
50 |