plerror.h revision 754899d3e29037e1a3cde20437768a6da3c50527
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync/* ***** BEGIN LICENSE BLOCK *****
35473cad6d5d5b57348c66f0cfdd7d51d6071ee7vboxsync * Version: MPL 1.1/GPL 2.0/LGPL 2.1
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync *
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * The contents of this file are subject to the Mozilla Public License Version
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * 1.1 (the "License"); you may not use this file except in compliance with
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * the License. You may obtain a copy of the License at
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * http://www.mozilla.org/MPL/
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync *
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync * Software distributed under the License is distributed on an "AS IS" basis,
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync * for the specific language governing rights and limitations under the
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync * License.
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync *
fcae7923a3c756b333f1e33eba002edf4448fb54vboxsync * The Original Code is the Netscape Portable Runtime (NSPR).
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync *
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * The Initial Developer of the Original Code is
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * Netscape Communications Corporation.
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * Portions created by the Initial Developer are Copyright (C) 1998-2000
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * the Initial Developer. All Rights Reserved.
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync *
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * Contributor(s):
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync *
f001425d2b0a661d4cd1f7ea07b4e7454538c829vboxsync * Alternatively, the contents of this file may be used under the terms of
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * either the GNU General Public License Version 2 or later (the "GPL"), or
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * in which case the provisions of the GPL or the LGPL are applicable instead
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * of those above. If you wish to allow use of your version of this file only
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * under the terms of either the GPL or the LGPL, and not to allow others to
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * use your version of this file under the terms of the MPL, indicate your
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * decision by deleting the provisions above and replace them with the notice
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * and other provisions required by the GPL or the LGPL. If you do not delete
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * the provisions above, a recipient may use your version of this file under
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * the terms of any one of the MPL, the GPL or the LGPL.
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync *
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync * ***** END LICENSE BLOCK ***** */
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync/*
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync** File: plerror.h
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync** Description: Simple routine to print translate the calling thread's
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync** error numbers and print them.
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync*/
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#if defined(PLERROR_H)
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#else
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#define PLERROR_H
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#include "prio.h"
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#include "prtypes.h"
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#define PL_FPrintError VBoxNsplPL_FPrintError
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#define PL_PrintError VBoxNsplPL_PrintError
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncPR_BEGIN_EXTERN_C
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync/*
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync** Print the messages to "syserr" prepending 'msg' if not NULL.
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync*/
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncPR_EXTERN(void) PL_PrintError(const char *msg);
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync/*
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync** Print the messages to specified output file prepending 'msg' if not NULL.
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync*/
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncPR_EXTERN(void) PL_FPrintError(PRFileDesc *output, const char *msg);
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsyncPR_END_EXTERN_C
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync#endif /* defined(PLERROR_H) */
561b8d2b46fb10887829b7e4d7d29447817adbddvboxsync
1403063c7e0c0a072d59e323b66068b06278fb9avboxsync/* plerror.h */
f65dabff4474710524235022d328b737f174fc1dvboxsync