From 8a442b082284782987237a0ecf77213c43ed5dae Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 23 Aug 2010 08:50:04 +1000 Subject: s4-libnet: added join type constants to python interface Pair-Programmed-With: Andrew Bartlett --- source4/libnet/py_net.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/libnet') diff --git a/source4/libnet/py_net.c b/source4/libnet/py_net.c index f5eea223e6..f21b936a29 100644 --- a/source4/libnet/py_net.c +++ b/source4/libnet/py_net.c @@ -392,4 +392,8 @@ void initnet(void) Py_INCREF(&py_net_Type); PyModule_AddObject(m, "Net", (PyObject *)&py_net_Type); + PyModule_AddObject(m, "LIBNET_JOINDOMAIN_AUTOMATIC", PyInt_FromLong(LIBNET_JOINDOMAIN_AUTOMATIC)); + PyModule_AddObject(m, "LIBNET_JOINDOMAIN_SPECIFIED", PyInt_FromLong(LIBNET_JOINDOMAIN_SPECIFIED)); + PyModule_AddObject(m, "LIBNET_JOIN_AUTOMATIC", PyInt_FromLong(LIBNET_JOIN_AUTOMATIC)); + PyModule_AddObject(m, "LIBNET_JOIN_SPECIFIED", PyInt_FromLong(LIBNET_JOIN_SPECIFIED)); } -- cgit