s4:pyrpc: add pyrpc_PyStr_AsString() helper function
authorStefan Metzmacher <metze@samba.org>
Tue, 9 May 2017 06:31:13 +0000 (08:31 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 18 Feb 2019 11:47:34 +0000 (12:47 +0100)
commit6971285acfdc6d2467684a8945754673f092c3e1
treedf45086b23974ae5e3fbd647006f390e4aca0521
parent9f8b09e31685ca17754f987683bdacf94fac7fde
s4:pyrpc: add pyrpc_PyStr_AsString() helper function

This contains the logic that's currently used in the pidl generated
python bindings. Moving this to a helper function will remove a lot
of generated code.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source4/librpc/rpc/pyrpc_util.c
source4/librpc/rpc/pyrpc_util.h