summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-08-05 23:01:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:31:23 -0500
commit31fa87f23b68785665411ab49dee5f920b239a5c (patch)
tree335ea5f8176a3f8293f17183790581dd2e319aa2 /source4/librpc
parentd87e1306c5cbfcbcd80d3f527aa4412aedfb9dcf (diff)
downloadsamba-31fa87f23b68785665411ab49dee5f920b239a5c.tar.gz
samba-31fa87f23b68785665411ab49dee5f920b239a5c.tar.bz2
samba-31fa87f23b68785665411ab49dee5f920b239a5c.zip
r9146: - enable winreg pipe from ejs
- map the result code from rpc calls into the ejs objects - treat winreg_String like lsa_String, hiding the length elements (This used to be commit 2f6311c9a34db46f9a4b1f31e865a373b15702bf)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/config.mk9
-rw-r--r--source4/librpc/idl/winreg.idl2
2 files changed, 9 insertions, 2 deletions
diff --git a/source4/librpc/config.mk b/source4/librpc/config.mk
index 665c0920d7..356fb38bf2 100644
--- a/source4/librpc/config.mk
+++ b/source4/librpc/config.mk
@@ -623,6 +623,12 @@ OBJ_FILES = librpc/gen_ndr/ndr_winreg_ejs.o
REQUIRED_SUBSYSTEMS = RPC NDR_WINREG
NOPROTO = YES
+[SUBSYSTEM::RPC_EJS_INITSHUTDOWN]
+INIT_FUNCTION = ejs_init_initshutdown
+OBJ_FILES = librpc/gen_ndr/ndr_initshutdown_ejs.o
+REQUIRED_SUBSYSTEMS = RPC NDR_INITSHUTDOWN
+NOPROTO = YES
+
[SUBSYSTEM::RPC_EJS_NETLOGON]
INIT_FUNCTION = ejs_init_netlogon
OBJ_FILES = librpc/gen_ndr/ndr_netlogon_ejs.o
@@ -645,6 +651,7 @@ NOPROTO = YES
# Start SUBSYSTEM RPC_EJS
[SUBSYSTEM::RPC_EJS]
REQUIRED_SUBSYSTEMS = RPC_EJS_ECHO RPC_EJS_MISC RPC_EJS_SAMR RPC_EJS_SECURITY \
- RPC_EJS_LSA RPC_EJS_SRVSVC RPC_EJS_SVCCTL RPC_EJS_IRPC
+ RPC_EJS_LSA RPC_EJS_SRVSVC RPC_EJS_SVCCTL RPC_EJS_IRPC RPC_EJS_WINREG \
+ RPC_EJS_INITSHUTDOWN
# End SUBSYSTEM RPC_EJS
################################################
diff --git a/source4/librpc/idl/winreg.idl b/source4/librpc/idl/winreg.idl
index 1f31d17f8c..a6caf22b9b 100644
--- a/source4/librpc/idl/winreg.idl
+++ b/source4/librpc/idl/winreg.idl
@@ -14,7 +14,7 @@
depends(lsa,initshutdown)
] interface winreg
{
- typedef struct {
+ typedef [public,noejs] struct {
[value(strlen_m_term(name)*2)] uint16 name_len;
[value(strlen_m_term(name)*2)] uint16 name_size;
unistr *name;