diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-09-23 21:35:03 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:09 -0500 |
commit | 9b009c900987517359485799be8be4167494b376 (patch) | |
tree | 32c4443eed39226209a70f28d08d5ef1937cc106 /source4/libcli/util/error.h | |
parent | 6a3093d941da51ccd81600ed89771312ce4abe27 (diff) | |
download | samba-9b009c900987517359485799be8be4167494b376.tar.gz samba-9b009c900987517359485799be8be4167494b376.tar.bz2 samba-9b009c900987517359485799be8be4167494b376.zip |
r25301: Merge my includes.h cleanups.
(This used to be commit 37425495f392a2d0122a93aa2c42758eab7dab5a)
Diffstat (limited to 'source4/libcli/util/error.h')
-rw-r--r-- | source4/libcli/util/error.h | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/source4/libcli/util/error.h b/source4/libcli/util/error.h index 8a641c8eb9..dd2de3da75 100644 --- a/source4/libcli/util/error.h +++ b/source4/libcli/util/error.h @@ -19,8 +19,33 @@ #ifndef _SAMBA_ERROR_H_ #define _SAMBA_ERROR_H_ -#include "libcli/util/nterr.h" +#include "libcli/util/werror.h" #include "libcli/util/doserr.h" -#include "libcli/util/proto.h" +#include "libcli/util/ntstatus.h" + +/** NT error on DOS connection! (NT_STATUS_OK) */ +bool ntstatus_dos_equal(NTSTATUS status1, NTSTATUS status2); + +/***************************************************************************** +convert a NT status code to a dos class/code + *****************************************************************************/ +void ntstatus_to_dos(NTSTATUS ntstatus, uint8_t *eclass, uint32_t *ecode); + +/***************************************************************************** +convert a WERROR to a NT status32 code + *****************************************************************************/ +NTSTATUS werror_to_ntstatus(WERROR error); + +/***************************************************************************** +convert a NTSTATUS to a WERROR + *****************************************************************************/ +WERROR ntstatus_to_werror(NTSTATUS error); + +/********************************************************************* + Map an NT error code from a Unix error code. +*********************************************************************/ +NTSTATUS map_nt_error_from_unix(int unix_error); + + #endif /* _SAMBA_ERROR_H */ |