summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2005-01-26 20:43:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:09:14 -0500
commit07b65ce281504bff7ba08ef57e3c15301dbd8255 (patch)
tree61ca06eb498c3df6af09203dab7e7d80bce051d7
parentb10b7a360a4bbed8fc7654d9f7c70625a48f3513 (diff)
downloadsamba-07b65ce281504bff7ba08ef57e3c15301dbd8255.tar.gz
samba-07b65ce281504bff7ba08ef57e3c15301dbd8255.tar.bz2
samba-07b65ce281504bff7ba08ef57e3c15301dbd8255.zip
r5018: Initialise required subsystems (by hand, generated by substituting
BINARY for LIBRARY in config.mk). Cut things down to just the samr pipe for the moment. (This used to be commit 95d2a58e5b2cfc30304ca390de7073c214850984)
-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"