librpc: add custom odj_switch_level_from_guid()
authorGünther Deschner <gd@samba.org>
Mon, 8 Feb 2021 22:45:42 +0000 (23:45 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 14 Jul 2021 16:49:29 +0000 (16:49 +0000)
commit91ff058420b2dc7ee55e0a0a5f4586ab2cd88387
tree4e2472c73291f5cf5e4446cf699f66cf3ee71cd7
parent8ff687863dd257d085cf6ac5d8ed0d91760c47c9
librpc: add custom odj_switch_level_from_guid()

This function maintains an arbitrary mapping of GUID strings to
integers. This is required as only integers can be used as
discriminators for autogenerated ODJ unions.

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
librpc/idl/ODJ.idl
librpc/ndr/ndr_ODJ.c [new file with mode: 0644]
librpc/ndr/ndr_ODJ.h [new file with mode: 0644]
librpc/wscript_build