svn commit: samba r17663 - in branches/SOC/mkhl/ejs-map: .

mkhl at samba.org mkhl at samba.org
Mon Aug 21 14:33:00 GMT 2006


Author: mkhl
Date: 2006-08-21 14:32:59 +0000 (Mon, 21 Aug 2006)
New Revision: 17663

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17663

Log:

This patch takes a first semi-serious stab at implementing the ejs_map
module, which is supposed to support defining ldb_map mappings in EJS.

To do this, it
1) modifies the ldb_map module so mapping structures contain a pointer
   to additional private data, and passes the mapping structure to
   each contained conversion/generation function.  This is done so the
   EJS mapping object can be stored in private data and used to call
   the right EJS function to perform conversions.
   The samba3sam and entryUUID modules are adapted to this change.
2) extends the smbcalls modules with additional handling for GUID
   structures, ldb values and ldb attribute handlers.  These are all a
   bit rough and unfinished but should prove useful.

A few things that are still missing (among many others) are:
1) an EJS exception handler
2) sane handling of ldb objects in EJS (creation from an ldb_context
   struct in C and passing it to the EJS conversion functions in C).
3) support for reading an EJS script and executing it
4) a sanity check of my memory handling
5) a clean way of iterating EJS arrays in C
6) a clean way of calling EJS functions from C (it currently uses
   `ejsRunFunction', which expects an `MprArray' for its arguments,
   which don't seem to be used anywhere else...)

As of revision 17662, the modules involved with this patch compile,
but the ejs_map module cannot be linked yet.

Martin
Modified:
   branches/SOC/mkhl/ejs-map/ejs.patch


Changeset:
Sorry, the patch is too large (897 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17663


More information about the samba-cvs mailing list