summaryrefslogtreecommitdiff
path: root/source4/scripting/swig
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig')
-rw-r--r--source4/scripting/swig/dcerpc.i48
1 files changed, 40 insertions, 8 deletions
diff --git a/source4/scripting/swig/dcerpc.i b/source4/scripting/swig/dcerpc.i
index 89599367ed..041235efef 100644
--- a/source4/scripting/swig/dcerpc.i
+++ b/source4/scripting/swig/dcerpc.i
@@ -341,6 +341,46 @@ PyObject *DATA_BLOB_to_python(DATA_BLOB obj)
werror_exception = PyErr_NewException("_dcerpc.WERROR", NULL, NULL);
PyDict_SetItemString(d, "NTSTATUS", ntstatus_exception);
PyDict_SetItemString(d, "WERROR", werror_exception);
+
+/* BINARY swig_dcerpc INIT */
+
+ extern NTSTATUS dcerpc_misc_init(void);
+ extern NTSTATUS dcerpc_krb5pac_init(void);
+ extern NTSTATUS dcerpc_samr_init(void);
+ extern NTSTATUS dcerpc_dcerpc_init(void);
+ extern NTSTATUS auth_sam_init(void);
+ extern NTSTATUS dcerpc_lsa_init(void);
+ extern NTSTATUS dcerpc_netlogon_init(void);
+ extern NTSTATUS gensec_init(void);
+ extern NTSTATUS auth_developer_init(void);
+ extern NTSTATUS gensec_spnego_init(void);
+ extern NTSTATUS auth_winbind_init(void);
+ extern NTSTATUS gensec_gssapi_init(void);
+ extern NTSTATUS gensec_ntlmssp_init(void);
+ extern NTSTATUS dcerpc_nbt_init(void);
+ extern NTSTATUS auth_anonymous_init(void);
+ extern NTSTATUS gensec_krb5_init(void);
+ extern NTSTATUS dcerpc_schannel_init(void);
+ extern NTSTATUS dcerpc_epmapper_init(void);
+ if (NT_STATUS_IS_ERR(dcerpc_misc_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_krb5pac_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_samr_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_dcerpc_init())) exit(1);
+ if (NT_STATUS_IS_ERR(auth_sam_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_lsa_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_netlogon_init())) exit(1);
+ if (NT_STATUS_IS_ERR(gensec_init())) exit(1);
+ if (NT_STATUS_IS_ERR(auth_developer_init())) exit(1);
+ if (NT_STATUS_IS_ERR(gensec_spnego_init())) exit(1);
+ if (NT_STATUS_IS_ERR(auth_winbind_init())) exit(1);
+ if (NT_STATUS_IS_ERR(gensec_gssapi_init())) exit(1);
+ if (NT_STATUS_IS_ERR(gensec_ntlmssp_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_nbt_init())) exit(1);
+ if (NT_STATUS_IS_ERR(auth_anonymous_init())) exit(1);
+ if (NT_STATUS_IS_ERR(gensec_krb5_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_schannel_init())) exit(1);
+ if (NT_STATUS_IS_ERR(dcerpc_epmapper_init())) exit(1);
+
%}
%typemap(in, numinputs=0) struct dcerpc_pipe **OUT (struct dcerpc_pipe *temp_dcerpc_pipe) {
@@ -402,12 +442,4 @@ const char *dcerpc_server_name(struct dcerpc_pipe *p);
#include "librpc/gen_ndr/ndr_spoolss.h"
%}
-%include "librpc/gen_ndr/misc.i"
-%include "librpc/gen_ndr/lsa.i"
%include "librpc/gen_ndr/samr.i"
-%include "librpc/gen_ndr/spoolss.i"
-
-/* The status codes must be included last otherwise the automatically
- generated .i files get confused. This is kind of yucky. */
-
-%include "status_codes.i"