libndr: Return enum ndr_err_code from ndr_{pull,push}_steal_switch_value()
authorAndrew Bartlett <abartlet@samba.org>
Tue, 3 Dec 2019 23:45:42 +0000 (12:45 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Dec 2019 03:56:23 +0000 (03:56 +0000)
commit82aff583b7f7e018ad4a1db92dc635df8e5ebe7b
tree8887ee21009447280060344b797830f8ca78f28d
parentd30c377d8c4e8a83b2722b771aa72d219eb69b46
libndr: Return enum ndr_err_code from ndr_{pull,push}_steal_switch_value()

This breaks the ABI so we merge this into the unreleased libndr-1.0.0.

The advantage of the new functions is there (except for print, which
is unchanged) is an error raised when the token is not found, so
we can be confident in the changes to the token behaviour.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13876

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Dec 12 03:56:23 UTC 2019 on sn-devel-184
librpc/ABI/ndr-1.0.0.sigs
librpc/ndr/libndr.h
librpc/ndr/ndr.c
librpc/ndr/ndr_drsuapi.c
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm