xmlsecurityengine/xmlsec/src/xmlsec_error_flag.c
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Sat, 20 Feb 2010 00:38:59 +0200
branchRCL_3
changeset 8 e65204f75c47
parent 0 e35f40988205
permissions -rw-r--r--
Revision: 201002 Kit: 201007

/*
* Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Functions handling error situations.
*
*/

#include <e32def.h>

#include "xmlsec_globals.h"
#include "xmlsec_error_flag.h"

static int XmlSecErrorFlag = 0;

// ---------------------------------------------------------------------------
// Set out of memory flag.
// ---------------------------------------------------------------------------
//
EXPORT_C 
void xmlSecSetErrorFlag(int error)
    {
    XmlSecErrorFlag = error;
    }
    
// ---------------------------------------------------------------------------
// Reset out of memory flag.
// ---------------------------------------------------------------------------
//
EXPORT_C 
void xmlSecResetErrorFlag()
    {
    XmlSecErrorFlag = 0;
    }

// ---------------------------------------------------------------------------
// Check out of memory flag.
// ---------------------------------------------------------------------------
//
EXPORT_C 
int xmlSecCheckErrorFlag()
    {
    return XmlSecErrorFlag;
    }