/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "Licence").
 * You may not use this file except in compliance with the Licence.
 *
 * You can obtain a copy of the licence at RISC OS path @.^.LICENCE
 * or  http://www.riscosdev.com/lanman98/LICENCE.CDDL
 * See the Licence for the specific language governing permissions
 * and limitations under the Licence.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the Licence file. If applicable, add the
 * following below this CDDL HEADER, with the fields enclosed by
 * brackets "[]" replaced with your own identifying information:
 * Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
 
/*
 *   Copyright 1996 Warm Silence Software Ltd.  All rights reserved.
 *   Use is subject to license terms.
 */

/*   PHBG 9/8/97: Initial version
 */

#ifndef _SMBERR_
#define _SMBERR_


void SMBError(int err, int suberr);

int SMBStatusToDos(unsigned int status, int *err, int *suberr);
/*
    The DOS error class and code an NT status stands in for, so that the
    error numbers the rest of the filing system tests against are the same
    whichever scheme the server answered in.  Returns 0 if the status is
    not one we know, having still filled in something usable.
*/

void SMBErrorStatus(unsigned int status);
/*
    Throw the error for an NT status.  The number is the DOS equivalent
    above; the message names the status the server actually sent.
*/

#endif
