summaryrefslogtreecommitdiff
path: root/python/modules.h
AgeCommit message (Collapse)AuthorFilesLines
2023-07-21python: Remove const from PyList_AsStringList()Andrew Bartlett1-2/+2
The returned strings are not owned by python, so need not be const. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15289 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2023-07-21python: Move PyList_AsStringList to common code so we can reuseAndrew Bartlett1-0/+7
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15289 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2019-05-16python: Create macro to hide ugly function signature castNoel Power1-1/+2
-Wcast-function-type triggers various warnings related to bad api decisions in python source. To avoid these warnings we hide them by casting to void first. Macro here is to hide the uglyness and provide an easy place to either/or + fix better in a single place in the future + identify the places involved should python api change in a way this can be handled better Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org>
2013-03-02Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij1-0/+25
Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104