summaryrefslogtreecommitdiff
path: root/source4/scripting/ejs/smbcalls.c
diff options
context:
space:
mode:
authorDerrell Lipman <derrell@samba.org>2006-10-03 02:38:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:20:32 -0500
commit4b17a6dfbbc2d6adafbc9103b97fd78c43c2efe4 (patch)
tree194fd7ac339189aecea2514c28be65048d3787f4 /source4/scripting/ejs/smbcalls.c
parent71ec249e0291462e9a1ffce3c888289e4c796aa7 (diff)
downloadsamba-4b17a6dfbbc2d6adafbc9103b97fd78c43c2efe4.tar.gz
samba-4b17a6dfbbc2d6adafbc9103b97fd78c43c2efe4.tar.bz2
samba-4b17a6dfbbc2d6adafbc9103b97fd78c43c2efe4.zip
r19055: JSON-RPC is working! It passes the small qooxdoo JSON-RPC test suite
perfectly. This check in covers the remaining fixes and enhancements to complete the server. In a subsequent check-in, I need to learn about the new qooxdoo packaging mechanism. Although it'd be nice to have the whole source tree, that's huge and needn't be in samba svn. It's now supposed to be very easy to package qooxdoo, so I'll figure out how that's done and then check in the relevant small number of files. Steps after that involve generating the stubs to allow various ejs functions to be called via JSON-RPC. Derrell (This used to be commit 5bfebbda7a5d28d4deb31c54a8feb24c4416cbf6)
Diffstat (limited to 'source4/scripting/ejs/smbcalls.c')
-rw-r--r--source4/scripting/ejs/smbcalls.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/source4/scripting/ejs/smbcalls.c b/source4/scripting/ejs/smbcalls.c
index 815b3e2b5d..b0df390427 100644
--- a/source4/scripting/ejs/smbcalls.c
+++ b/source4/scripting/ejs/smbcalls.c
@@ -203,39 +203,6 @@ static int jsonrpc_include(int eid, int argc, char **argv)
}
-static int ejs_debug(int eid, int argc, char **argv)
-{
- int i;
- int level;
- void *ctx = mprMemCtx();
- char *msg;
-
-
- if (argc < 2) {
- return -1;
- }
-
- level = atoi(argv[0]);
-
- msg = talloc_zero_size(ctx, 1);
- if (msg == NULL) {
- DEBUG(0, ("out of memory in debug()\n"));
- return 0;
- }
-
- for (i = 1; i < argc; i++) {
- msg = talloc_append_string(ctx, msg, argv[i]);
- if (msg == NULL) {
- DEBUG(0, ("out of memory in debug()\n"));
- return 0;
- }
- }
-
- DEBUG(level, ("%s", msg));
- talloc_free(msg);
- return 0;
-}
-
static void (*ejs_exception_handler) (const char *) = NULL;
_PUBLIC_ void ejs_exception(const char *reason)
@@ -273,6 +240,5 @@ void smb_setup_ejs_functions(void (*exception_handler)(const char *))
ejsDefineStringCFunction(-1, "libinclude", ejs_libinclude, NULL, MPR_VAR_SCRIPT_HANDLE);
ejsDefineCFunction(-1, "version", ejs_version, NULL, MPR_VAR_SCRIPT_HANDLE);
ejsDefineStringCFunction(-1, "jsonrpc_include", jsonrpc_include, NULL, MPR_VAR_SCRIPT_HANDLE);
- ejsDefineStringCFunction(-1, "debug", ejs_debug, NULL, MPR_VAR_SCRIPT_HANDLE);
}