diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-04 12:49:29 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-09-04 12:49:29 +1000 |
commit | 1929b2fb5106495fa3d155037e123dc920c6697b (patch) | |
tree | 33d3d8c7d5daa31e8a58c6d66e74a56f9f2bdb24 /source4/scripting/python/misc_wrap.c | |
parent | e82f2187325274d728ec7470990f971e7b3db13c (diff) | |
parent | fbbe799e4e68d79846614c6648307cc6b3f76906 (diff) | |
download | samba-1929b2fb5106495fa3d155037e123dc920c6697b.tar.gz samba-1929b2fb5106495fa3d155037e123dc920c6697b.tar.xz samba-1929b2fb5106495fa3d155037e123dc920c6697b.zip |
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit c273d63f94c430a4f553085efb0d6e31a99e5853)
Diffstat (limited to 'source4/scripting/python/misc_wrap.c')
-rw-r--r-- | source4/scripting/python/misc_wrap.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/scripting/python/misc_wrap.c b/source4/scripting/python/misc_wrap.c index 4b5bfb01740..3aee83f72c5 100644 --- a/source4/scripting/python/misc_wrap.c +++ b/source4/scripting/python/misc_wrap.c @@ -2558,6 +2558,7 @@ static swig_module_info swig_module = {swig_types, 27, 0, 0, 0, 0}; #include "dsdb/samdb/samdb.h" #include "lib/ldb-samba/ldif_handlers.h" #include "librpc/ndr/libndr.h" +#include "version.h" #include "libcli/util/pyerrors.h" @@ -2813,6 +2814,12 @@ SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc) +const char *version(void) +{ + return SAMBA_VERSION_STRING; +} + + #define SWIG_From_long PyInt_FromLong @@ -3109,7 +3116,7 @@ SWIGINTERN PyObject *_wrap_version(PyObject *SWIGUNUSEDPARM(self), PyObject *arg char *result = 0 ; if (!SWIG_Python_UnpackTuple(args,"version",0,0,0)) SWIG_fail; - result = (char *)samba_version_string(); + result = (char *)version(); resultobj = SWIG_FromCharPtr((const char *)result); return resultobj; fail: |