xmlsecurityengine/xmlsec/src/xmlsec_error_flag.c
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:46:49 +0200
branchRCL_3
changeset 12 bc145b4683a9
parent 0 e35f40988205
permissions -rw-r--r--
Revision: 201005 Kit: 201010

/*
* 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;
    }