1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/lib/smbconf
John Mulligan 1b6d675feb lib/smbconf: expose smbconf error codes to python wrapper
The smbconf library defines an enum of error codes that can be returned
from the C calls. The error codes were getting stored in the python
SMBConfError type but it was not easy to access or obvious what the
integer code represented.

This change makes it easier to get the returned error code: via a
`error_code` attribute on the exception value. It also exposes the
integer constants to the module. Simple tests for a few of the more
obvious error codes check that this new error handling correctly
exposes the error code values.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Jun  8 13:13:10 UTC 2022 on sn-devel-184
2022-06-08 13:13:10 +00:00
..
pysmbconf.c lib/smbconf: expose smbconf error codes to python wrapper 2022-06-08 13:13:10 +00:00
pysmbconf.h lib/smbconf: move python smbconf type definition to header 2022-05-06 17:16:30 +00:00
smbconf_private.h
smbconf_txt.c
smbconf_txt.h
smbconf_util.c
smbconf.c lib/smbconf: remove const warning 2014-11-14 23:27:05 +01:00
smbconf.h Correct "occured" typos. 2017-02-22 08:26:21 +01:00
wscript_build lib/smbconf: add an initial set of python bindings 2022-04-21 14:41:32 +00:00