summaryrefslogtreecommitdiff
path: root/source4/build/pidl
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r9356: a better way of coping with NULL arrays in the array bounds checking. ↵Andrew Tridgell1-0/+4
This copes with the case of size_is(*size) where size is NULL, and the array is NULL (This used to be commit 56769b4b1d900cce60cd35298b642a85e4eddfee)
2007-10-10r9347: this array bounds checking is harder than it looks ...Andrew Tridgell1-2/+4
this copes with 2 more situations: 1) where the array is NULL, which would previously be coped with by a if (ptr) check, but now in the deferred array bounds checking needs to look at the array variable in the ndr code. Not nice. 2) nest the array checking along with the SCALARS vs BUFFERS checks, ensuring we don't do array bounds checking for a buffer when in scalars only mode (This used to be commit ad1b9867a5a14bc9ed2e1a5eb8f05bb2046bc645)
2007-10-10r9339: treat arrays of uint8 values as a special DATA_BLOB type in the ejsAndrew Tridgell1-3/+19
interfaces to RPC. This makes large blobs of data much saner. Tim, you will probably want to do the same for the smb_interfaces.h generated code. Next we will need ways of extracting different data types from these blobs, for example asking for the blob to be interpreted as a utf16 string, or as a little-endian integer. That will allow for registry scripting to be quite sane. (This used to be commit a8bca2e8e27c953c0413693326ec3b5ecf17ba41)
2007-10-10r9337: defer the checking of array sizes until the end of theAndrew Tridgell1-4/+53
function/structure, as the checks might involve variables that have not yet been unmarshalled. This is needed to cope with the correct IDL for the winreg pipe. Jelmer, can you look at this when you get a chance and see if you think this is a reasonable approach? Sorry its wrecks the nice indentation in the generated code. (This used to be commit 127ed0cfe2d210f5e927d3768d5372042d1c070c)
2007-10-10r9335: only copy the in side of an array to the out side of an array when theAndrew Tridgell1-1/+2
array is a [ref] pointer. For non-ref arrays it is quite valid for a server to return a larger response array then the client gave (as can happen with winreg) in which case this memcpy() will fault. (This used to be commit 6cf20e7adb9891119fdc9a0b208c3f94fe823334)
2007-10-10r9298: pull non-array elements before array elements to overcome the problemAndrew Tridgell1-0/+12
of arrays that have length_is() or size_is() properties that refer to later elements (This used to be commit 9526f2a5104b50f4b6ab575cfa6270abb0377e51)
2007-10-10r9279: In Samba3 debuglevel 10 used to print RPC debugs. I think this shouldTim Potter1-2/+2
apply to Samba4 as well so change the DEBUGLEVEL > 10 to DEBUGLEVEL >= 10. (This used to be commit 2215cc08b7b94df3fff9cfff6c839bbf2cb6e664)
2007-10-10r9168: Fix subcontext handlingJelmer Vernooij2-22/+43
Support fixed-size arrays Give some more nicer warnings for not-supported IDL constructions such as inline arrays Fix signed int-handling (This used to be commit 2f1fcf3bc7a29e3089f1edafd45c70488f3cd565)
2007-10-10r9164: Fix subcontext handlingJelmer Vernooij1-23/+43
Support fixed-size arrays Give some more nicer warnings for not-supported IDL constructions such as inline arrays Fix signed int-handling (This used to be commit 3456dc7846ec49e6d4c71e66557bd31c683daa60)
2007-10-10r9161: More etheral parser generator fixesJelmer Vernooij3-95/+137
(This used to be commit b323e83e8df6ba331b3f0b3abe28aa8ddf9127ef)
2007-10-10r9150: The ethereal parser generators work now. Thanks to Ronnie Sahlberg forJelmer Vernooij4-107/+237
help with the debugging and comments on the generated code (-: (This used to be commit 4c165f8ff65b4500d8366b655d6df2a065f35bf5)
2007-10-10r9146: - enable winreg pipe from ejsAndrew Tridgell1-0/+5
- 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)
2007-10-10r9128: More ethereal parser generator updates. String handling is still ↵Jelmer Vernooij2-16/+61
broken as well as handling more then two element levels. (This used to be commit 952399aa68c22059a799e55fb92e039e68ea3dae)
2007-10-10r9104: Finish ethereal parser generator. Still a couple of minor issuesJelmer Vernooij2-14/+30
remaining to get it to generate completely compilable code. (This used to be commit d8727b8de75be7e44bd889c9650d5d68d486a95a)
2007-10-10r9101: Check in file generated by Parse::YAPP.Tim Potter1-142/+214
(This used to be commit d0f540bc463959ec3602834d796192dc2879b979)
2007-10-10r9094: More ethereal parser updates, only header fields left to fix + actual ↵Jelmer Vernooij2-43/+77
data call (This used to be commit eef8bc97ed8d546955d9a03eb8c500293fd2f84e)
2007-10-10r9088: More ethereal parser generator updatesJelmer Vernooij2-63/+107
(This used to be commit 294e716621baa3e6fbc6bc471aed0b85ad93d1ed)
2007-10-10r9081: Work on new ethereal parser generator, partially based onJelmer Vernooij5-1443/+704
Ronnie Sahlberg's idl2eth.c (This used to be commit 561aeca6490bdb7e37f12d60a67c551e5db3fc62)
2007-10-10r9055: fix header generation for string_array and some other scalar typesStefan Metzmacher1-1/+1
the are actualy mapped to pointers in the api metze (This used to be commit d91e61ac680dfd2a9b257dc7e8cc8c393a65dae4)
2007-10-10r8953: Move a few utility functionsJelmer Vernooij2-52/+46
(This used to be commit 732db744b287be71781b7577933bc54a0724f78c)
2007-10-10r8940: Add TDR (Trivial Data Representation). The aim is to use this later forJelmer Vernooij2-0/+270
NBT/WINS/etc rather then having to depend on NDR. (This used to be commit 5ee7af26dd220de06f1764cd1683abedeeda5131)
2007-10-10r8932: Handle non-anonymous unions and structures better.Tim Potter1-4/+4
(This used to be commit 04f993721574b4532962b5845faa4cb40a90ca38)
2007-10-10r8920: Make NAME hash entry for struct elements a list.Tim Potter1-4/+5
Return array length entries for elements that have an array specifier. (This used to be commit 17689ca7403dd8762185611da2e08545af611d71)
2007-10-10r8919: Return references to structs and unions in parse tree. Fill in typeTim Potter1-6/+17
names for structs and unions also. (This used to be commit c31be383461d8a2784aa85619b38f81a389024f2)
2007-10-10r8918: Handle const elements in structures or unions. This is a bit yucky butTim Potter1-0/+6
making an optional_const rule puts the parser in an infinite loop (?). (This used to be commit 6339cc75fae8296757c4609cede1d5703b90d52a)
2007-10-10r8910: An initial parser to parse structures in smb_interfaces.h. This will beTim Potter2-0/+1415
used to generate ejs objects for making raw smb calls. Running 'make smb_interfaces' should run the build_smb_interfaces.pl script which at the moment only displays a dump of the parsed data. Const is also not working right now but it's bedtime. (This used to be commit 1be5f55d7f6926bf7266ea72623990f0bb558c94)
2007-10-10r8878: Spelling fixes. (-:Tim Potter1-2/+2
(This used to be commit f850faca9797c9818a46fec72dba069cac5a6db7)
2007-10-10r8821: continue the trend to move to a more OO style of interface for our jsAndrew Tridgell1-1/+1
calls. This changes the generated RPC and IRPC calls to use the 'this' object pointer instead of requiring the passing of the object on each call. So typical usage is now: var echo = echo_init(); var io = irpcObj(); status = echo.connect("ncacn_np:server"); assert(status.is_ok); io.input.in_data = 7; status = echo.AddOne(io); assert(status.is_ok); (This used to be commit f7b49ecd0868c1f0fec75b371f132bbf357ad8c6)
2007-10-10r8809: Merge validator with NDR.pm (validator is NDR-specific)Jelmer Vernooij3-374/+355
(This used to be commit 5c0a22167d3424573ede99937549d815d067f0bc)
2007-10-10r8806: Move data representation-independent data into seperate headerJelmer Vernooij5-292/+377
(This used to be commit 26e1fdf63007e28468a05b18bede1e69981edc12)
2007-10-10r8803: Rename --header to --ndr-header and --parser to --ndr-parserJelmer Vernooij1-12/+12
(This used to be commit d292ab7ca6ce8232a182e7ec9480671bb3044a6a)
2007-10-10r8801: Change --output to --outputdir and make pidl add a data ↵Jelmer Vernooij2-46/+21
representation prefix to pidl itself. Useful for supporting other data representation types. (This used to be commit 5af68a04763f39f2a9898155e2c82ed2ee646f36)
2007-10-10r8690: Code cleanups, improvements necessary for dependencies (not added yet)Jelmer Vernooij2-8/+4
(This used to be commit 7384b3c4a1450ad63356dcf586e3a7e7335f8e6d)
2007-10-10r8635: make object inheritance with the builtin objects easy by allowingAndrew Tridgell1-5/+4
callers to optionally supply an existing object to add the properties to. So you can do: var rpc = samr_init(); lsa_init(rpc); and you end up with 'rpc' having both the samr and lsa functions and constants available. (This used to be commit 6a1ed328e27769bd52899fc2437a43fc17104eff)
2007-10-10r8623: Fix warnings in ODL-generated code.Jelmer Vernooij2-0/+2
(This used to be commit 78ef2349c7a1bff19fb86a41bf5c074a2dfcb222)
2007-10-10r8622: Support parsing new structs/unions/enums/bitmaps without typedef inJelmer Vernooij2-646/+757
(This used to be commit cd33b5efc544345411db498b178fa532a9a2c82f)
2007-10-10r8621: Simplify code. Add support for nested structures back into the header ↵Jelmer Vernooij6-165/+80
generator. (This used to be commit 5610838385ca00a944fb4765df1854954a3a81bc)
2007-10-10r8614: Add COMRESULT/HRESULT scalar typeJelmer Vernooij1-1/+7
(This used to be commit 8637a85e6a349cce15a298154500921e9a0183a3)
2007-10-10r8613: Remove a couple of empty loops.Jelmer Vernooij1-2/+5
(This used to be commit 94e338805de465a3ec7d82aa599f09adfcc06bd8)
2007-10-10r8612: Parse::Pidl::NDR:Jelmer Vernooij2-9/+11
Values that are deferred but don't contain deferred data don't need NDR_BUFFERS Parse::Pidl::Samba::NDR::Parser: Only use manually written array access functions when the array functions are faster then the autogenerated ones. Makes ndr_basic.c a bit shorter. (This used to be commit cad40815dcfb7cdcab13bd0cd204ef8711605ef3)
2007-10-10r8566: Couple of code cleanupsJelmer Vernooij1-88/+74
(This used to be commit e43ac10e36e289966fdf34a8c5b523cd7fbcb368)
2007-10-10r8559: Couple of (D)COM updates:Jelmer Vernooij3-4/+9
- Fixes annoying array-of-pointers bug in pidl. - No longer "inherit" alignment thru subcontexts - Use "Image Object" as example DCOM object, rather then the "My Computer" object, which is built-in and can't be accessed remotely as far as I can see (This used to be commit bd706d496405d274b68c1ee560211837a8e63009)
2007-10-10r8483: switched our generated ejs rpc code over to the new OO interface. ThisAndrew Tridgell1-11/+9
means we don't pollute the name space, and also makes for faster startup times as we only create variables for the pipes that we use, not all pipes (This used to be commit 57d7a585e8162d21c7152952aa0cc7471968784f)
2007-10-10r8471: --ejs taking an optional arguments interferes with the pidl extra argsAndrew Tridgell1-3/+3
(This used to be commit a9d05af0fd802cf0cbe1298c3c988dcd2eb1b848)
2007-10-10r8399: move the ejs and esp code closer to the directory layout used by theAndrew Tridgell1-1/+1
upstream sources. This makes it much easier to keep it up to date. I will separate out the mpr code into lib/appweb/mpr next (This used to be commit 52db7a052baeb0f11361ed69b71cb790039e3cc9)
2007-10-10r8283: make sure we build constant variables for both pull and push side of ↵Andrew Tridgell1-12/+20
enums (This used to be commit 529370ed92f5a683ae7bd34d0cd2ce01c2bda81a)
2007-10-10r8281: pass the callnum and rpc interface table directly from the generatedAndrew Tridgell1-3/+6
code in pidl for ejs calls. This means that ejs_rpc_call() doesn't need to scan the rpc tables for the right interface, and doesn't need to scan for the call name (This used to be commit 1c6b1102e5c2529206b917e7c6b279c4f63d0e9a)
2007-10-10r8275: possibly a more portable way to export symbols in perl?Andrew Tridgell3-6/+9
(This used to be commit d5153d16e1630e85c05a19b2d279bb1100497be5)
2007-10-10r8274: Export some more symbols.Jelmer Vernooij11-145/+184
(This used to be commit d1f754a0a34c5938579a605b4f113100e14bac3d)
2007-10-10r8270: Export some symbols, making the code more readable.Jelmer Vernooij12-103/+117
(This used to be commit d64bffa17ea1c46d917e362d51741148b85fb97f)