1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

484 Commits

Author SHA1 Message Date
Jelmer Vernooij
29cdad4181 r21455: Fix a bug in our handling of conformant arrays. The conformant array was
always pushed, even if just the buffers part of a struct had to be pushed.

Pull was not affected.
(This used to be commit ffe3879204)
2007-10-10 14:48:37 -05:00
Jelmer Vernooij
32afb0d15f r21443: Refactor some of the NDR code in preparation of nested data structure support.
(This used to be commit 1afedaad44)
2007-10-10 14:48:36 -05:00
Jelmer Vernooij
cc1e315604 r21442: Allow more flexible data structure names.
(This used to be commit 5b091c5d75)
2007-10-10 14:48:36 -05:00
Jelmer Vernooij
5340489807 r21440: Support different variables in environments.
(This used to be commit 1702a663ba)
2007-10-10 14:48:35 -05:00
Jelmer Vernooij
127ccc27d4 r21437: Cherrypick typelib tests.
(This used to be commit 9ba814d033)
2007-10-10 14:48:34 -05:00
Jelmer Vernooij
0515f728e6 r21433: Get rid of the COM support code - it's not used and unmaintained. We can
always bring it back if we need to. This code was getting in the way while
refactoring.

Add some tests for TDR.

Get rid of typedef in lib/registry/tdr_regf.idl and fix the
TDR code to be able to deal with it.
(This used to be commit 1ad0f99a43)
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
d425796fff r21432: Handle properties on tagged types in TDR.
(This used to be commit 0d739c7e98)
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
f988568787 r21431: More tests, work on support in wireshark for tagged types.
(This used to be commit a91e624af2)
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
8cf122c2d2 r21430: Support tagged types without typedef. This means:
struct foo {
 ...
};

in IDL will now work. This is the first step towards nested types and
using typedefs for partial types (such as "typedef int *bar;"), a requirement
for complex uses of represent_as().
(This used to be commit a716aa70f0)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
2b43de2ed8 r21428: Handle representation types in Needed().
(This used to be commit 34517c69e6)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
ae76a5a928 r21427: Add tests for Needed*(), in preparation of refactoring.
(This used to be commit a21e7b22ac)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
ec587914ed r21411: Add some simple tests for the wireshark NDR generator.
(This used to be commit 3619774482)
2007-10-10 14:48:28 -05:00
Jelmer Vernooij
0fd2600394 r21384: Change warning to pidl warning, fix uppercasing.
(This used to be commit a45a677084)
2007-10-10 14:48:24 -05:00
Jelmer Vernooij
627fc22791 r21340: Fix warning undef
(This used to be commit 2669f2c8ad)
2007-10-10 14:48:15 -05:00
Jelmer Vernooij
a7fa0d7063 r21338: Fix handling of top-level arrays for the Samba 3 client code. This doesn't
fix the winreg code yet (as that's an array on top of a pointer), but at least
it gets us closer.

Also added a couple of tests for the Samba 3 client code.
(This used to be commit 4a5b62ad62)
2007-10-10 14:48:15 -05:00
Jelmer Vernooij
e50dc79226 r21332: Fix bug in pidl that prevented value(0) from working. Bug reported by metze.
(This used to be commit 8212a3b8e0)
2007-10-10 14:48:14 -05:00
Jelmer Vernooij
97416e6b01 r21297: Remove the GTK+ tools and library from the main repository. They are now maintained separately in bzr at http://people.samba.org/bzr/jelmer/samba-gtk
This also adds some more headers to the list that is installed and a couple of extra #include lines so these
headers can be used externally without problems.
(This used to be commit 07652f65ce)
2007-10-10 14:48:04 -05:00
Jelmer Vernooij
b619e959c9 r21260: Fix regex.
(This used to be commit 025597a359)
2007-10-10 14:44:55 -05:00
Jelmer Vernooij
9ca02af510 r21254: Fix running the testsuite outside pidl/
(This used to be commit 84c15158b9)
2007-10-10 14:44:54 -05:00
Jelmer Vernooij
45db103065 r21253: Merge some pidl fixes:
* Add tests for wireshark dissector generator
 * Add tests for the header code
 * Some cleanups
 * Fix handling of elements without [in] or [out]
(This used to be commit 1aecba7100)
2007-10-10 14:44:54 -05:00
Jelmer Vernooij
ecf2c1effb r21222: Merge a couple of pidl fixes:
* Pidl will now warn when trying to use pointers as integers in expressions.
* "subcontext()" is now marked as deprecated. The alternatives,
  transmit_as() / represent_as() should be available soon.
* More tests.
* Remove some unused code in smbtorture.
(This used to be commit 37c0da541e)
2007-10-10 14:44:48 -05:00
Jelmer Vernooij
dd08678add r21075: Generate parameters in structs for the server side Samba 3 code. The current code in Samba 3 is already generated using this pidl patch.
(This used to be commit 30a06273d2)
2007-10-10 14:44:28 -05:00
Jelmer Vernooij
fe938ca91f r20967: Allow pidl tests to work with gcov
(This used to be commit 9da63e362c)
2007-10-10 14:44:04 -05:00
Jelmer Vernooij
30bfba96d3 r20942: Simplify handling of systems that don't support negative enum values by using an ifdef rather than a pidl argument.
(This used to be commit 6bada0dcf0)
2007-10-10 14:43:57 -05:00
Jelmer Vernooij
64e88a8ccf r20850: Prefix all server calls with dcesrv_
(This used to be commit 76c78b0339)
2007-10-10 14:43:39 -05:00
Jelmer Vernooij
652f0a7ef8 r20836: Use real type name, to fix compilation with -WC++-compat
(This used to be commit 10ca65bd78)
2007-10-10 14:43:38 -05:00
Jelmer Vernooij
85520faa42 r20834: No longer generate extra pointers for top-level [out] unique pointers.
(This used to be commit b967f5851f)
2007-10-10 14:43:38 -05:00
Jelmer Vernooij
615895332a r20830: merge mgmt work
(This used to be commit 3cc299dbbe)
2007-10-10 14:43:37 -05:00
Jelmer Vernooij
d9665a737b r20746: Don't report each individual test in test_smbclient as a single testsuite.
Create separate directory for blackbox tests.
(This used to be commit 7e6357f213)
2007-10-10 14:40:36 -05:00
Jelmer Vernooij
aecbb307b5 r20688: Use argv[0] equivalent of perl.
(This used to be commit 3dfcd9f807)
2007-10-10 14:40:23 -05:00
Jelmer Vernooij
310adf0fab r20675: Fix installation.
(This used to be commit 5d09131cc8)
2007-10-10 14:40:19 -05:00
Jelmer Vernooij
348b7bc380 r20638: Check for NULL pointers (where possible) in print functions. Fixes #4218,
but without reintroducing coverity warnings.
(This used to be commit a0e2e30d57)
2007-10-10 14:37:19 -05:00
Jelmer Vernooij
95f7f4d001 r20637: Don't check for NULL pointers when the pointer is guaranteed to not be NULL
(if it is a ref pointer).
(This used to be commit 419547df76)
2007-10-10 14:37:19 -05:00
Jelmer Vernooij
a338d29bc1 r20633: Add another test, fix warnings.
(This used to be commit 3ddc767727)
2007-10-10 14:37:18 -05:00
Jelmer Vernooij
bf39b5e592 r20631: Add some tests for the ndr parser.
(This used to be commit ded25eca70)
2007-10-10 14:37:18 -05:00
Jelmer Vernooij
cfa230c480 r20625: Fix couple of warnings.
(This used to be commit 203076129b)
2007-10-10 14:37:17 -05:00
Stefan Metzmacher
40b71722e1 r20573: fix handling of pointers handling to elements with the charset property
metze
(This used to be commit 895416c220)
2007-10-10 14:37:04 -05:00
Jelmer Vernooij
a95d58ae8f r20571: fix '' case
(This used to be commit 1618921a7e)
2007-10-10 14:37:03 -05:00
Jelmer Vernooij
a7bc3801f9 r20567: Print proper errors with filename and line numbers in ParseExpr()
(This used to be commit f5dc1b47ec)
2007-10-10 14:37:01 -05:00
Jelmer Vernooij
2ebbad9d76 r20564: Regenerate.
(This used to be commit a4d6e340cd)
2007-10-10 14:36:58 -05:00
Jelmer Vernooij
74239c2e94 r20563: Start using the new parser in ParseExpr(). It's now trivial to use this
to check for NULL pointers when pointers are being dereferenced (#4218).

There are exactly 500 tests for pidl now :-)
(This used to be commit d3146f3bcd)
2007-10-10 14:36:58 -05:00
Jelmer Vernooij
5a162488a1 r20562: Start building expr parser. Add separate copy of Yapp::Driver
rather than including it in each individual parser.
(This used to be commit 26853d7d99)
2007-10-10 14:36:57 -05:00
Jelmer Vernooij
3c7a84a205 r20561: Add parser for subexpressions used in IDL attributes.
(This used to be commit 7e7fdb01d3)
2007-10-10 14:36:57 -05:00
Jelmer Vernooij
42a5a1c550 r20556: Add more tests to make sure nothing breaks when I replace the ParseExpr code.
(This used to be commit 0ba52e459b)
2007-10-10 14:36:55 -05:00
Jelmer Vernooij
e2b62f7d41 r20550: Use standard error mechanism in parser.
Make sure errors are reported correctly.
(This used to be commit 9f794c55a6)
2007-10-10 14:36:53 -05:00
Jelmer Vernooij
f7ca27b9ca r20548: Remove unnecessary "use lib", fix warnings.
(This used to be commit 30d721569f)
2007-10-10 14:36:52 -05:00
Jelmer Vernooij
2963c63987 r20547: Add tests for expected errors/warnings.
(This used to be commit 2d960d4d7b)
2007-10-10 14:36:51 -05:00
Jelmer Vernooij
306dc32687 r20545: Fix is_constant().
(This used to be commit ae9b0895e8)
2007-10-10 14:36:51 -05:00
Jelmer Vernooij
362d4b14ae r20543: Merge some pidl bug fixes:
* C expressions that just started with a constant were erroneously flagged
   as being a constant.
 * 1-length variable names in expressions were broken.
(This used to be commit 44775a6ac4)
2007-10-10 14:36:51 -05:00
Jelmer Vernooij
f97f11eab2 r20511: Combine warnings/errors/fatal functions and move them to Parse::Pidl.
(This used to be commit 959adfd0a6)
2007-10-10 14:36:04 -05:00
Stefan Metzmacher
3c20e210de r20358: - fix ejs generated code for ipv4address
- (not Parse::Pidl::Typelist::scalar_is_reference($e->{TYPE}))
  is much more generic than ($e->{TYPE} ne "string")
  and handles ipv4address and other special types...

metze
(This used to be commit 02d2ce65e6)
2007-10-10 14:30:15 -05:00
Jelmer Vernooij
c8a5f304c6 r20299: Disable two new tests that are apparently broken.
(This used to be commit b3f64869fc)
2007-10-10 14:29:34 -05:00
Jelmer Vernooij
253c1bec46 r20298: Fix pidl tests (missing symlink..).
(This used to be commit ab3d573946)
2007-10-10 14:29:34 -05:00
Jelmer Vernooij
0bb6dacc16 r19868: Fix more tests.
(This used to be commit 01a4fb1b22)
2007-10-10 14:28:28 -05:00
Jelmer Vernooij
a2a151a046 r19866: Fix test compilation.
(This used to be commit 2a3196db9d)
2007-10-10 14:28:27 -05:00
Jelmer Vernooij
8d870db811 r19859: Reuse referrent ids when pushing full pointers (still need to
avoid pushing the referred object twice) and add test for full pointers.
(This used to be commit 1638c8d234)
2007-10-10 14:28:26 -05:00
Jelmer Vernooij
128fe5324b r19856: Use sptr as basis for full ptr implementation. Will add checks for duplicates later.
(This used to be commit 006ab1d4a4)
2007-10-10 14:28:26 -05:00
Stefan Metzmacher
203550d032 r19854: readd support for 'sptr' pointers, to work against windows servers
until jelmer commits his 'ptr' support

metze
(This used to be commit f5aa620b1b)
2007-10-10 14:28:25 -05:00
Jelmer Vernooij
55eaaa2238 r19845: Add warning for pointer_default_top()
(This used to be commit 3f0da2388d)
2007-10-10 14:28:24 -05:00
Jelmer Vernooij
108152dd6a r19842: Complain about unknown pointer types.
Fallback to "unique" when "ptr" is specified instead of failing.
(This used to be commit a1b6308b21)
2007-10-10 14:28:23 -05:00
Jelmer Vernooij
9d7d39d180 r19834: Prevent some inaccurate warnings.
(This used to be commit 21efd2bdb8)
2007-10-10 14:28:22 -05:00
Jelmer Vernooij
ce0c2236b9 r19830: Warn about non-ref top-level pointers.
(This used to be commit 78153200ac)
2007-10-10 14:28:21 -05:00
Jelmer Vernooij
de2ab46ad8 r19829: Update documentation.
(This used to be commit 9d3c3ce540)
2007-10-10 14:28:21 -05:00
Volker Lendecke
f4c4e0cf7f r19790: Check in the PIDL change and the converted unixinfo and winbind pipes without
waiting for comments. This is what version control is for, and it does fix a
segfault I ran into ;-)

Nevertheless, Jelmer & Jerry, please take a look!

Thanks,

Volker
(This used to be commit 10dcaf89ed)
2007-10-10 14:28:20 -05:00
Jelmer Vernooij
5b05f5f5f1 r19752: Remove support for the `depends' attribute (use "import") instead.
(This used to be commit 324395afc7)
2007-10-10 14:28:19 -05:00
Jelmer Vernooij
e3ea863a3c r19751: Add some tests for parsing the "include", "import" and "importlib" statements.
(This used to be commit 3a850bda96)
2007-10-10 14:28:18 -05:00
Jelmer Vernooij
9972dc2549 r19599: Fix --includedir.
(This used to be commit 0da2bbcf76)
2007-10-10 14:25:01 -05:00
Jelmer Vernooij
863dcbfa06 r19588: Use include and import statements rather than depends() and helper().
(This used to be commit 347ae96282)
2007-10-10 14:24:58 -05:00
Jelmer Vernooij
d8ecabe452 r19585: Add support for some more standard IDL instructions:
- `include' (replaces helper())
 - `import' (replaces depends())

Add support for parsing importlib() - importlib() is now ignored (with a
warning), but no longer causes syntax errors.

helper() and depends() are now marked deprecated and will cause warnings.
(This used to be commit 1ccab71cb8)
2007-10-10 14:24:57 -05:00
Jelmer Vernooij
5c3fd8e471 r19580: Add --includedir option.
(This used to be commit b076bfa39f)
2007-10-10 14:24:56 -05:00
Jelmer Vernooij
e08bf809af r19572: Fix typo.
(This used to be commit 1836411390)
2007-10-10 14:24:54 -05:00
Jelmer Vernooij
a7b18e70dd r19562: Support returning simple scalars.
(This used to be commit 8bd12d3fdb)
2007-10-10 14:24:52 -05:00
Jelmer Vernooij
bdf1f0b0db r19561: Remove debug statement.
(This used to be commit 910b56e729)
2007-10-10 14:24:51 -05:00
Jelmer Vernooij
ae0219cd81 r19560: Fix handling of PARAM_VALUE.
(This used to be commit dde3d5342c)
2007-10-10 14:24:51 -05:00
Jelmer Vernooij
5b9f1b01ba r19559: Fix handling of types where the name isn't prefixed by the interface name.
Based on patch by Julien Kerihuel.
(This used to be commit 466e9c12a5)
2007-10-10 14:24:51 -05:00
Jelmer Vernooij
6031841dd8 r19557: Fix lookup table for WERROR.
Fix perl warnings when using NTSTATUS as return type.
(This used to be commit 577cd1625d)
2007-10-10 14:24:50 -05:00
Jelmer Vernooij
0f738f13f9 r19553: Add check for correct API usage.
(This used to be commit 9e2206ae99)
2007-10-10 14:24:49 -05:00
Jelmer Vernooij
77d1be3e8d r19547: Fix use of v1_enum on enums used in return types.
(This used to be commit dbae9b4e4e)
2007-10-10 14:24:48 -05:00
Jelmer Vernooij
d9862f2bc4 r19546: fix number of bytes pushed when using switch_type() set to enum types.
die() on invalid used of enum_type_fn()
(This used to be commit de6198c893)
2007-10-10 14:24:48 -05:00
Jelmer Vernooij
36b971bb3c r19545: Allow enums as return types in code generated for wireshark. Originally based on a patch by Julien Kerihuel.
(This used to be commit 705cd03c53)
2007-10-10 14:24:47 -05:00
Jelmer Vernooij
4be0aa0d31 r19544: Fix case of 'warning'.
(This used to be commit 4f1f541837)
2007-10-10 14:24:47 -05:00
Jelmer Vernooij
70b8d2c8eb r19541: Explicitly segfault when the API is being used incorrectly. Previously
this would've caused a silent premature return.
(This used to be commit 91ae5a8033)
2007-10-10 14:24:46 -05:00
Volker Lendecke
af5e517521 r19219: Fix a memleak in the generated srv_code.
Fix a warning.

Implement the rng_fault_state return check.

After this (and Jeremy's fix) all Samba3-developers should do a 'make idl' and
do a complete rebuild.

Volker
(This used to be commit 0c0a861c8b)
2007-10-10 14:20:55 -05:00
Jeremy Allison
e461cfee2e r19208: Fix Samba3 pidl generation to remove memory leaks.
Jermey.
(This used to be commit 4b878578c2)
2007-10-10 14:20:54 -05:00
Gerald Carter
a22d785d7c r19049: Samba 3 client fixes
* Make sure to check for NULL pointers when dealing with
  [out,unique] before assigning valoues
* Detect RPC faults and return immediately
(This used to be commit c96dae478c)
2007-10-10 14:20:31 -05:00
Jelmer Vernooij
4d3434ff6e r18873: Use WERR_errors table rather than DOS_errors table for wireshark.
(This used to be commit 5a2e103ea0)
2007-10-10 14:20:17 -05:00
Jelmer Vernooij
d6e65c2318 r18767: Fix [ref] pointer in object oriented interfaces. Removes a
bunch of warnings when compiling dcom.idl.
(This used to be commit 6f6dd76146)
2007-10-10 14:19:09 -05:00
Jelmer Vernooij
d094a421d3 r18696: Zero initialize ref ptrs.
(This used to be commit 8de48f62e7)
2007-10-10 14:19:03 -05:00
Jelmer Vernooij
b9785235b4 r18693: Print debug info when DEBUGLEVEL >= 10 in the Samba3 code.
(This used to be commit d28ae3f70a)
2007-10-10 14:19:02 -05:00
Jelmer Vernooij
1463ca1d2b r18689: Initialize r.out in the server side code, in case the handler function
doesn't touch them.
(This used to be commit 2ac2c7ca60)
2007-10-10 14:19:02 -05:00
Jelmer Vernooij
cd9057a0bb r18639: Get rid of the keepref support
(This used to be commit d1364ef0cd)
2007-10-10 14:18:59 -05:00
Jelmer Vernooij
d9b4bdd5bb r18565: Fix echo.idl to be Samba3-, MIDL and midlc compatible
(This used to be commit ab0a798c57)
2007-10-10 14:18:47 -05:00
Jelmer Vernooij
291c5ed53c r18559: [string] always applies to the last pointer
(This used to be commit 86b4624226)
2007-10-10 14:18:46 -05:00
Jelmer Vernooij
3e7cff6c00 r18554: Fix warnings about [out] arguments.
(This used to be commit caac6cf817)
2007-10-10 14:18:45 -05:00
Jelmer Vernooij
f78ff444e6 r18524: Pre-allocate out arguments.
(This used to be commit 0ee42669d3)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
df08af8418 r18523: Allow [out] on arrays as well as pointers, use in unixinfo.
(This used to be commit f67b4d58ac)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
5f68b76c4a r18522: It's probably not a good idea to use rpc_netdfs_init() as initialization
function name for _all_ RPC servers...
(This used to be commit 234272e39d)
2007-10-10 14:18:42 -05:00
Jelmer Vernooij
eb9a2757eb r18520: Add note about warnings on [out] arrays.
(This used to be commit 7a2afc3e0c)
2007-10-10 14:18:41 -05:00
Jelmer Vernooij
965633a5b4 r18482: Fix a couple of small issues in the generated server code.
(This used to be commit ddfe3c5443)
2007-10-10 14:18:36 -05:00
Jelmer Vernooij
ea50e4f30a r18478: Add missing declaration for status.
(This used to be commit 64909a0d69)
2007-10-10 14:18:35 -05:00
Jelmer Vernooij
6a2b541497 r18477: Finish server code generator for Samba 3.
(This used to be commit 4e2f200424)
2007-10-10 14:18:35 -05:00
Jelmer Vernooij
2fb4ecebc1 r18475: Start working on server code generator that uses libndr.
(This used to be commit aa1c550d37)
2007-10-10 14:18:35 -05:00
Jelmer Vernooij
0eb9794e9f r18471: Remove other Samba3 parser generator support as well - it's no
longer necessary as we can use libndr now.
(This used to be commit 22142a9f3d)
2007-10-10 14:18:34 -05:00
Jelmer Vernooij
e26ed8b3e2 r18470: Remove obsolete client generator code for Samba3 (we're now using the
new code that uses libndr)
(This used to be commit ea0ef1542f)
2007-10-10 14:18:34 -05:00
Jelmer Vernooij
7caf7839f5 r18270: Samba3 has _PUBLIC_ now.
(This used to be commit 9dd6520240)
2007-10-10 14:17:59 -05:00
Stefan Metzmacher
28bd2665c1 r18268: for samba3 define _PUBLIC_ empty
metze
(This used to be commit b2018249b7)
2007-10-10 14:17:59 -05:00
Andrew Tridgell
5622eb1dee r18254: reverted r18231
Jelmer, older versions of gcc don't support visibility("default"). See
for example the CentOS build here:

  http://build.samba.org/?function=View+Build;host=lithium;tree=samba4;compiler=gcc;revision=18253

Is there some other way you can think of to do this?
(This used to be commit 76496c2f5e)
2007-10-10 14:17:56 -05:00
Jelmer Vernooij
25819cfabc r18231: Don't use _PUBLIC_ but use __attribute__ directly instead.
(This used to be commit 77043ebe25)
2007-10-10 14:17:53 -05:00
Jelmer Vernooij
433ec0ba66 r18228: Don't include Samba4-specific headers when building inside a Samba3 tree.
(This used to be commit d0f0d4600a)
2007-10-10 14:17:53 -05:00
Jelmer Vernooij
4dff1f05f0 r18227: Recognize Samba3 in-tree builds.
(This used to be commit 5055430ddf)
2007-10-10 14:17:53 -05:00
Jelmer Vernooij
c92781b333 r18194: Allow empty bitmap {} declarations.
(This used to be commit 084b5002b9)
2007-10-10 14:17:48 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
1e0cb68263 r17889: allocate a valid element where the pointer can point to,
fix c++ warnings

metze
(This used to be commit b15e4c7cfa)
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
66314777f6 r17887: fix c++ warnings
metze
(This used to be commit ccef1f7290)
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
3d3bd93403 r17305: allow 'declare [...] union foo;'
metze
(This used to be commit 15d37004b7)
2007-10-10 14:15:10 -05:00
Jelmer Vernooij
927cbf74ae r16824: Rename Ethereal -> Wireshark (patch from Joerg Mayer)
(This used to be commit a789aa468b)
2007-10-10 14:09:47 -05:00
Gerald Carter
e3a6c6be79 r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for correct grammar
(This used to be commit 26a2fa97e4)
2007-10-10 14:08:59 -05:00
Jelmer Vernooij
b3a98698ff r15893: Update TODO
(This used to be commit 446c4a175f)
2007-10-10 14:08:38 -05:00
Jelmer Vernooij
aecb20a264 r15892: Remove the COM management code - DCOM should be
based on Mono and its' COM support and utilize Samba's DCE/RPC + ORPC code
instead of having our own COM implementation in Samba, which is too much
work to implement and harder to code (C).

This only removes some of the code that I started working on to implement
the bits of COM I thought were needed to support DCOM from just Samba. This
code has never functioned properly, contains a couple of nasty hacks and
there should be no reason to pick it up again later, the processes are all
documented in the DCOM whitepaper.

This does NOT remove the marshalling code for the ORPC code or the torture
code that tested some of the ORPC code.
(This used to be commit 11df14219b)
2007-10-10 14:08:37 -05:00
Jelmer Vernooij
03f520fd12 r15780: Fix indentation of deferred code (fixed #3739)
(This used to be commit a7c9ec69b2)
2007-10-10 14:08:19 -05:00
Jelmer Vernooij
8fef2c8122 r15778: Fix bug printing ref pointers.
(This used to be commit 030272e79b)
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
9727b061f3 r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
(This used to be commit bdc6dd3750)
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
fda645af50 r15652: Fix aliases mechanism (fixes #3710)
(This used to be commit 3e89ef0875)
2007-10-10 14:08:03 -05:00
Jelmer Vernooij
76aa75abc6 r15651: Add 'MANUAL' command in Ethereal conformance files. This allows overriding
individual functions for specific element levels without losing the other
functions for an element or the hf/ett fields allocated.

Fixes #3738.
(This used to be commit a3dbab619b)
2007-10-10 14:08:03 -05:00
Jelmer Vernooij
392e4b383c r15650: Fix perl warning when generating IDL for elements with no properties
(This used to be commit 038bbbcda5)
2007-10-10 14:08:03 -05:00
Jelmer Vernooij
589920ebc0 r15648: Update MANIFEST to install Samba3 code generators.
(This used to be commit e679971903)
2007-10-10 14:08:03 -05:00
Jelmer Vernooij
2a9407fad3 r15593: Warn about [out] arguments that are not pointers. These can all be
fixed by adding [ref] pointers.

This will cause a lot of warnings to be outputted by pidl for now. I will
fix these gradually over the next few days.

We need to avoid [out] arguments that are not pointers because they are
not understood by other IDL compilers and don't work with some of
our output modules (Samba3, Samba3NDR and ethereal)
(This used to be commit c4ab021ee8)
2007-10-10 14:06:02 -05:00
Jelmer Vernooij
fde2d769eb r15591: Generate function calls correctly as well.
(This used to be commit b0439779b8)
2007-10-10 14:06:01 -05:00
Jelmer Vernooij
8d6249814f r15587: Generate stubs for the SWIG functions
(This used to be commit 746d0a7fa7)
2007-10-10 14:06:01 -05:00
Jelmer Vernooij
f9dd026355 r15585: Revive pidl's SWIG file generator. It now generates simple
object oriented wrappers for the interfaces (still need to fix
the actual function calls)
(This used to be commit bf5da20869)
2007-10-10 14:06:00 -05:00
Jelmer Vernooij
c65d2f9b1b r15576: Separate out Samba4 bits a bit more
(This used to be commit 77a2eb406e)
2007-10-10 14:05:59 -05:00
Jelmer Vernooij
664459a41f r15574: Keep information about which scalar types are references in a
separate data structure
(This used to be commit 0cb1906046)
2007-10-10 14:05:58 -05:00
Jelmer Vernooij
55969efea3 r15474: Generate proper type declarations, fix headers
(This used to be commit 1405f59d55)
2007-10-10 14:05:38 -05:00
Jelmer Vernooij
a3f2ed12b9 r15470: Write header file with prototypes for Samba3-Client-With-Samba4-NDR code.
(This used to be commit a2bb0b6012)
2007-10-10 14:05:38 -05:00
Jelmer Vernooij
e81fd2e119 r15437: Add generator that creates Samba3 client code which uses Samba4's NDR
routines.
(This used to be commit 538be4a631)
2007-10-10 14:05:37 -05:00
Jelmer Vernooij
2a13a7f09f r15367: Fix unused function warnings in generated EJS code.
(This used to be commit 946a80298a)
2007-10-10 14:05:27 -05:00
Jelmer Vernooij
09ea8a9fd6 r15353: Don't dereference NULL pointer. Found by the IBM checker.
(This used to be commit 67d62fc556)
2007-10-10 14:05:24 -05:00
Jelmer Vernooij
1a4effad3d r15327: Support 'nosize'. Also write prototypes for print and size functions that are manually written.
(This used to be commit f10b38b824)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
fc487fb552 r15324: Generate prototype even if the function itself is
written manually.
(This used to be commit 56eceeb322)
2007-10-10 14:05:16 -05:00
Jelmer Vernooij
0263ec1c89 r15260: Don't dereference NULL pointers to obtain array lengths - found by
the IBM checker
(This used to be commit a492cd4bd4)
2007-10-10 14:04:27 -05:00
Jelmer Vernooij
ddbd7bed65 r15220: Another attempt to fix the bug found by the IBM Checker
(This used to be commit 9f79bfc05d)
2007-10-10 14:04:19 -05:00
Jelmer Vernooij
a0f8ff3cbd r15202: Don't derefence NULL pointers - found by the IBM Checker
(This used to be commit f6a3e8b69d)
2007-10-10 14:04:16 -05:00
Jelmer Vernooij
1b22141c87 r14867: Include <stdbool.h> in external compiles
(This used to be commit 03224dab11)
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
42da534d66 r14735: Use dcerpc_syntax_id rather then seperate GUID + if_version everywhere
(This used to be commit a316b33057)
2007-10-10 13:59:17 -05:00
Jelmer Vernooij
a2d4079c81 r14727: Update pidls' TODO, add test that demonstrates the desired behaviour
(This used to be commit c2f510d38b)
2007-10-10 13:59:14 -05:00
Jelmer Vernooij
76ab420615 r14692: Get rid of the obfuscation() attribute
(This used to be commit 122d1d0249)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
8973ac8a39 r14691: Fix printing elements with represent_as set
(This used to be commit f4428db2f9)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
5d9ea9170d r14690: Support represent_as in headers, enable represent_as() test (which works now)
(This used to be commit 31e847a084)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
6ba19b5729 r14689: Fix test
(This used to be commit b199f5345c)
2007-10-10 13:59:09 -05:00
Jelmer Vernooij
85e91438b1 r14688: More work on represent_as(): output the right function calls, fix test.
(This used to be commit 7bc72277b3)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
b6cae24de8 r14687: Start working on support for represent_as() and transmit_as() as
an alternative to subcontext()
(This used to be commit 744402160d)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
311d6f47c8 r14686: Fix pidl testsuite to run whenever there is a shared libary built
Samba present. Ignore tests that are known to fail for now.
(This used to be commit a7279f13f0)
2007-10-10 13:59:08 -05:00
Jelmer Vernooij
3c7df1118c r14658: Include ndr_obfuscate.h when necessary
(This used to be commit 3647bd3124)
2007-10-10 13:59:05 -05:00
Jelmer Vernooij
508f2f5506 r14594: Fix some dependencies (required for shared library build)
(This used to be commit 06f7a8c692)
2007-10-10 13:58:58 -05:00
Jelmer Vernooij
fb67b0d99a r14550: Fix tests
(This used to be commit 765fd852e7)
2007-10-10 13:58:44 -05:00
Jelmer Vernooij
35349a58df r14542: Remove librpc, libndr and libnbt from includes.h
(This used to be commit 51b4270513)
2007-10-10 13:58:42 -05:00
Jelmer Vernooij
4469fa31e3 r14491: Allow building more output outside of the Samba source tree
(This used to be commit 272ca8e636)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
ecf0dd6baf r14488: Install more headers.
Generate different #include lines in pidl depending on whether
we're building inside or outside of the Samba tree (useful for
3rd-party projects).
(This used to be commit 0c18883315)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
4f1c8daa36 r14470: Remove some unnecessary headers.
(This used to be commit f7312dab3b)
2007-10-10 13:57:29 -05:00
Jelmer Vernooij
8528016978 r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51)
2007-10-10 13:57:27 -05:00
Stefan Metzmacher
84aea6eca5 r14455: also add the:
#ifndef FOO
#define FOO
...
#endif

to the client headers

metze
(This used to be commit c0dd773537)
2007-10-10 13:57:26 -05:00
Jelmer Vernooij
1060f6b3f6 r14402: Generate seperate headers for RPC client functions.
(This used to be commit 7054ebf024)
2007-10-10 13:57:19 -05:00
Jelmer Vernooij
227a789351 r14362: Only include ndr_compression.h when necessary.
(This used to be commit 4fced6dbbd)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
9865048bf4 r14361: Support 'helper' attribute in pidl and use it.
Remove some headers from include/includes.h (they're now only included
in the file they are used)
(This used to be commit 7213b7498e)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
35447f0a48 r14348: Fix location of #endif
(This used to be commit eb8687cdd4)
2007-10-10 13:57:13 -05:00
Jelmer Vernooij
9edbad7a36 r14223: Couple of small fixes:
- properly support --samba3-header argument used alone
 - support `security_descriptor' data type
 - only print pidl warnings, not perl warnings on erratic input
 - insert copyright header in templates
(This used to be commit db1d7358b2)
2007-10-10 13:57:05 -05:00
Jelmer Vernooij
39f1f55610 r14215: Improve warning/error messages.
(This used to be commit 80b9865b37)
2007-10-10 13:57:04 -05:00
Stefan Metzmacher
f07143c35c r14105: fix whitespaces
metze
(This used to be commit 1b4c9f7fc2)
2007-10-10 13:56:51 -05:00
Jelmer Vernooij
c71c86c524 r13842: Make some more functions public.
(This used to be commit aac1b99b36)
2007-10-10 13:52:15 -05:00
Andrew Tridgell
e3e048630b r13738: added support for a "pointer" type in pidl. This will be used in the
opendb work that will be committed shortly.

The pointer type assumes that pointers fit in 64 bits, which is
probably OK on all our supported architectures.
(This used to be commit d2a2057ea5)
2007-10-10 13:52:07 -05:00
Stefan Metzmacher
d796373895 r12776: use $ENV{TEST_DATA_PREFIX} for test files if available
metze
(This used to be commit 5552eaa37c)
2007-10-10 13:49:53 -05:00
Jelmer Vernooij
87fd7b5484 r12574: Bring tables.pl back to life and move registration of interfaces
now completely to a new subsystem.
(This used to be commit bbacfaaea5)
2007-10-10 13:48:56 -05:00
Jelmer Vernooij
1690ae449a r12573: Update README to recent changes in pidls namespace
(This used to be commit 33012dc015)
2007-10-10 13:48:55 -05:00
Jelmer Vernooij
1cfda1af18 r12572: No longer parse coclasses as interfaces
(This used to be commit f75f757b62)
2007-10-10 13:48:52 -05:00
Stefan Metzmacher
43c3c7349d r12539: fix the pidl tests
metze
(This used to be commit 4b90ad7a27)
2007-10-10 13:47:54 -05:00
Jelmer Vernooij
0a3c167f6b r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.
(This used to be commit 87f665a1d5)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
d49f11df21 r12517: Don't generate empty init functions
(This used to be commit 832a1092c9)
2007-10-10 13:47:51 -05:00
Jelmer Vernooij
05b141c5c9 r12515: Use UUID directly rather then string containing UUID
(This used to be commit 465b973870)
2007-10-10 13:47:49 -05:00
Jelmer Vernooij
d658de65d3 r12512: Use GUID structs in API functions everywhere rather then converting back and
forth between GUID structs and strings in several places.
(This used to be commit 3564e2f967)
2007-10-10 13:47:48 -05:00
Jelmer Vernooij
c1c01df22f r12501: Merge EJSHeader.pm into EJS.pm and simplify smbcalls_rpc.c a bit,
now that it is guaranteed that the smbcalls modules are always initialized
after the EJS subsystem itself.
(This used to be commit 1e8670874b)
2007-10-10 13:47:46 -05:00
Jelmer Vernooij
ee10fb1a12 r12490: Fix --warn-compat
(This used to be commit ba6a767f1b)
2007-10-10 13:47:44 -05:00
Jelmer Vernooij
d7eaaf48e4 r12488: Fix MANIFEST to match recent changes
(This used to be commit 6ab0ce1508)
2007-10-10 13:47:44 -05:00
Jelmer Vernooij
94793b80d7 r12484: Initial work on supporting non-typedeffed types
(This used to be commit e7ac6c708d)
2007-10-10 13:47:44 -05:00
Jelmer Vernooij
25d57c0ad8 r12483: Remove --tdr-header option (merged into --tdr-parser)
(This used to be commit 45013467f5)
2007-10-10 13:47:43 -05:00
Jelmer Vernooij
d3ced46329 r12482: Add some more tests
(This used to be commit 516b66e0f1)
2007-10-10 13:47:43 -05:00
Jelmer Vernooij
a4fe56c06a r12481: Move parser-specific utility functions to idl.yp, remove some unused functions
Allow the use of non-typedef structs and unions when declaring variables. Allow the
use of the 'signed' and 'unsigned' qualifiers for integer types
(This used to be commit bc6b45e242)
2007-10-10 13:47:43 -05:00
Jelmer Vernooij
8e924678b2 r12480: Extend testsuite
(This used to be commit 1fa6c3568b)
2007-10-10 13:47:43 -05:00
Jelmer Vernooij
7717f180ca r12470: Add helper module for pidl tests
Convert other pidl tests to use Test::More and run them from 'make test'
(This used to be commit 3a57d29a62)
2007-10-10 13:47:43 -05:00
Jelmer Vernooij
620d375320 r12465: Merge Parse::Pidl::Samba4::NDR::Header into Parse::Pidl::Samba4::NDR::Parser.
Small optimization to avoid including NDR headers multiple times
(This used to be commit 6967b98849)
2007-10-10 13:47:42 -05:00
Jelmer Vernooij
68ef82aac7 r12464: Add simple IDL parsing tests for pidl using the standard perl
testing framework (Test::Simple, distributed with perl itself).
Run these tests from 'make test'
(This used to be commit 975d8816db)
2007-10-10 13:47:42 -05:00
Jelmer Vernooij
ebfbb2a7ab r12463: Rename 'Samba' namespace to 'Samba4'
(This used to be commit f25358270d)
2007-10-10 13:47:42 -05:00
Jelmer Vernooij
e791dd73b9 r12462: Hide oo magic from callers of the parser
(This used to be commit 0c225d2978)
2007-10-10 13:47:42 -05:00
Jelmer Vernooij
a3b0f53f47 r12206: Fix some issues in NOEMIT
(This used to be commit 905cebd117)
2007-10-10 13:47:18 -05:00
Jelmer Vernooij
5352b38928 r12205: Support 'TFS' command in conformance files
(This used to be commit 3241ce7ad7)
2007-10-10 13:47:18 -05:00
Jelmer Vernooij
9e00afdcbe r12181: Use BASE_HEX rather then BASE_DEC by default for bitmaps. Patch by Guy
Harris. Fixes #3313
(This used to be commit daff0cba2c)
2007-10-10 13:47:17 -05:00
Stefan Metzmacher
f536c4a608 r11997: for multidimentional array like this:
uint32 [num_level2][num_level1][num_level0]

fix the order they're pushed and pulled, it should be like this

for (l2=0; l2 < num_level2; l2++) {
	for (l1=0; l1 < num_level1; l1++) {
		for (l0=0; l0 < num_level0; l0++) {
			ndr_pull_uint32(...);
		}
	}
}

metze
(This used to be commit c10195f313)
2007-10-10 13:46:57 -05:00
Stefan Metzmacher
a9cdc6321a r11974: only look at $pl->{POINTER_TYPE} when $pl is defined
metze
(This used to be commit 271d0af16d)
2007-10-10 13:46:53 -05:00
Stefan Metzmacher
7da0f7d76d r11972: handle [noejs] property also on functions
metze
(This used to be commit e5fef8519b)
2007-10-10 13:46:53 -05:00
Jelmer Vernooij
6672d8aeaa r11959: Use DOS_errors array for displaying WERROR values
(This used to be commit 0830ed0d60)
2007-10-10 13:46:51 -05:00
Jelmer Vernooij
cca42c611a r11539: Fix indentation in templates. Always generate lower-case
UUID strings as GUID_from_string seems to have trouble with
uppercased ones.
(This used to be commit 16ea96c81e)
2007-10-10 13:45:51 -05:00
Jelmer Vernooij
df5b70db2c r11535: Support void functions when generating templates.
(This used to be commit e8926a4e17)
2007-10-10 13:45:50 -05:00
Volker Lendecke
66d3ee9ccb r11473: Based on work by Jelmer, implement the [async] flag for rpc requests. If it's
not there (it's not yet on *any* call... :-)), the rpc client strictly
sequences calls to an rpc pipe. Might need some more work on the exact
sequencing semantics when a pipe with both sync and async calls is actually
deployed, but I want it in for winbind simplification.

Volker
(This used to be commit b8f324e4f0)
2007-10-10 13:45:41 -05:00
Jelmer Vernooij
42c5211bf4 r11386: Add install rule for pidl
(This used to be commit b740d0d280)
2007-10-10 13:45:29 -05:00
Tim Potter
79b667eda9 r11262: Try to get the equivalent of a subcontext in pidl ethereal conformance
files working.  It doesn't quite work though.  (-:

This patch also allows a struct.field format to be used in an IMPORT
statement instead of a type name.

Jelmer, what do you think?
(This used to be commit d770f85347)
2007-10-10 13:45:10 -05:00
Tim Potter
7514f906c2 r11211: Append an error message to COL_INFO if the RPC call returned an error.
(This used to be commit b70dd7a757)
2007-10-10 13:45:03 -05:00
Jelmer Vernooij
087dd76232 r11141: Re-add paranoid string terminator check
(This used to be commit 55805b5ed9)
2007-10-10 13:44:54 -05:00
Jelmer Vernooij
f598135c6b r11105: Warn if conformant arrays are not at the end of a struct
Support conformant [string] arrays
Eliminate utf8string

This breaks xattr binary compatibility with previous versions - is that a
problem?
(This used to be commit 7596c708ba)
2007-10-10 13:44:50 -05:00
Jelmer Vernooij
c008f951cf r11097: Allow pointers in "const"
(This used to be commit 88fcd56fb5)
2007-10-10 13:44:48 -05:00
Jelmer Vernooij
5a937a0f6f r11077: Fix [string] for Samba3
(This used to be commit 2f76e2a6bf)
2007-10-10 13:44:44 -05:00
Jelmer Vernooij
8a58b806e9 r11067: Support for [string] in the Ethereal parser generator
(This used to be commit 1d5db487bb)
2007-10-10 13:44:44 -05:00
Jelmer Vernooij
6f3caf73e1 r11061: Samba3 parser generator fixes:
* Add (limited) support for [string]
* Don't generate (and set) header elements for top level ref pointers as
they don't appear on the wire
(This used to be commit 765adaf19b)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
cffd522b5c r11052: bring samba4 uptodate with the samba4-winsrepl branch,
before the bad merge

metze
(This used to be commit 471c0ca4ab)
2007-10-10 13:44:43 -05:00
Stefan Metzmacher
ee49ed7a20 r11011: r10124@SERNOX: metze | 2005-09-09 20:22:00 +0200
r10113@SERNOX:  metze | 2005-09-09 18:00:02 +0200
  rename libcli/wins to libcli/wrepl

  metze
  r10115@SERNOX:  metze | 2005-09-09 18:01:49 +0200
  bind client connection to the best interface, to the partner

  metze
  r10116@SERNOX:  jelmer | 2005-09-09 18:23:50 +0200
  Print out a couple more warnings.
(This used to be commit 66f931071e)
2007-10-10 13:41:27 -05:00
Jeremy Allison
d2376d70b2 r10880: Missed terminating ';', sorry.
Jeremy.
(This used to be commit 2680aeffb1)
2007-10-10 13:39:39 -05:00
Jeremy Allison
399533dc64 r10879: Added the ZERO_STRUCT(q_u), (r_u) entries to the generated
Samba3 code. Jelmer please check !
Jeremy.
(This used to be commit 534e8d1622)
2007-10-10 13:39:39 -05:00
Stefan Metzmacher
b94fcbd306 r10868: make flag(NDR_PAHEX) possible to use and show the union level in hex
metze
(This used to be commit 7efb92adc0)
2007-10-10 13:39:38 -05:00
Jelmer Vernooij
01d23b0e54 r10849: Fix handling of [charset] for strings with fixed or "inline" size
(This used to be commit 3c2558d11e)
2007-10-10 13:39:36 -05:00
Jelmer Vernooij
36517c801c r10842: Fix some issues with [out] unions that have a discriminator that is only
[in]
(This used to be commit 3a4086d614)
2007-10-10 13:39:34 -05:00
Jelmer Vernooij
fa0fbb46b8 r10840: Fix indentation
(This used to be commit 7877d43657)
2007-10-10 13:39:34 -05:00
Jelmer Vernooij
848dff8f0d r10829: Documentation updates
Update TODO
Some small fixes to the modules
(This used to be commit 0c53e7c3cf)
2007-10-10 13:39:33 -05:00
Jelmer Vernooij
c5069ba7e3 r10788: - Give unions a name
- Check initialisation function return value
(This used to be commit ebb8e75ebd)
2007-10-10 13:39:29 -05:00
Jelmer Vernooij
0ef0467039 r10787: Fix silly nodiscriminant-issue
(This used to be commit 43a5c863bf)
2007-10-10 13:39:29 -05:00
Jelmer Vernooij
093a30d7ed r10765: Actually use VALS() setting for enums
(This used to be commit 6b33e3eedd)
2007-10-10 13:39:28 -05:00
Stefan Metzmacher
03b634042f r10761: we need to use a pointer to a nbt_name to fix compiler warnings, because we can
only use a pointers to unknown types in proto.h

metze
(This used to be commit 2f46e54e1b)
2007-10-10 13:39:28 -05:00
Stefan Metzmacher
4812a5d3fd r10760: remove only one star from the pointers, and not from the stars that
come from the array nesting

this fixes a compiler warning and but in the eventlog.h,
where the idl uses nstring strings[num_strings]

metze
(This used to be commit c4a252bd46)
2007-10-10 13:39:27 -05:00
Jelmer Vernooij
be9af1a4e8 r10742: Support multi-level pointers + ref pointer fixes
(This used to be commit 258b762dc6)
2007-10-10 13:39:26 -05:00
Jelmer Vernooij
765f69ce42 r10739: Reduce number of calls to prs_align_custom()
(This used to be commit ebeeec5406)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
f72dee9e39 r10737: Fix some alignment issues
(This used to be commit 2b4270a2e9)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
4bbb584ff0 r10734: Generate ptr, size, offset, and length elements in unions just once.
(This used to be commit 12bfa5d01b)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
5df3b426ee r10732: Generate _ctr structures for unions
(This used to be commit bd8fcb0500)
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
d220237b19 r10721: Handle allocations and primitive / deferred data correctly. In theory,
the generated output for DFS should work now (it compiles cleanly, but
I haven't tested it yet).

Not supported:
 - subcontexts()
 - relative pointers
 - unions of pointers
 - DATA_BLOB
 - several other things

Also still need to do:
 - Remove some spurious spaces in the output
 - Do range() checking

Example output is still available at http://samba.org/~jelmer/pidl_samba3/
(This used to be commit e2d7e382bb)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
3d6279402c r10718: Another large set of small improvements. All generated files compile
without warnings now. The only things left to do that are
required for DFS:
 - add allocation of arrays in marshalling phase
 - handling primitive and deferred data in embedded structures / unions.

Example output is again available from http://samba.org/~jelmer/pidl_samba3/
(This used to be commit 9fe724f6fb)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
9879bc6aa6 r10717: Another bunch of small updates. All generated files except parse_dfs.c
compile now when generated from Samba4's dfs.idl.
(This used to be commit 2b315b1942)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
eea74cde05 r10716: Use correct Samba3 data types for strings. Also use Samba3 types
for a couple of other types (policy handles, SIDs, times)
(This used to be commit c2527217b4)
2007-10-10 13:39:24 -05:00
Jelmer Vernooij
81c306472a r10715: More Samba3 parser generator improvements:
- Actually generate parsers for unions and structs.
- Support some more builtin types.
- Some more work on supporting arrays.
- Several other small fixes.

I've updated the example output at http://samba.org/~jelmer/
(This used to be commit b229c033eb)
2007-10-10 13:39:23 -05:00
Jelmer Vernooij
55065d27ce r10713: Couple more updates to the Samba3 parser generators.
Unions and enums have been improved, init functions are now generated
properly, some other small improvements.
(This used to be commit 8a60e79175)
2007-10-10 13:39:23 -05:00
Jelmer Vernooij
e0040ff537 r10698: Fix support of enums in switch_type() in the ethereal parser generator
(This used to be commit 9fac8dfeb3)
2007-10-10 13:39:20 -05:00
Jelmer Vernooij
f9a4167434 r10694: Add some work I did this afternoon on getting pidl to output Samba3
RPC parsers. Currently the following files can be generated:

- include/rpc_BASENAME.h
- rpc_server/srv_BASENAME.c
- rpc_server/srv_BASENAME_nt.c (template only, user has to fill in functions)
- rpc_client/cli_BASENAME.c
- rpc_parse/parse_BASENAME.c

So far, I have been working on getting DFS working. Currently still to do
(all in rpc_parse/parse_BASENAME.c):
 - Proper handling of declarations
 - Proper handling of scalar/buffer parts of structs and unions
 - Subcontexts
 - Proper handling of arrays
 - Support for custom (non-scalar) types

I hope to have a somewhat more working version later this week.

Some files as currently generated are available from:
http://samba.org/~jelmer/pidl_samba3/
(This used to be commit 8af8eaeeef)
2007-10-10 13:39:20 -05:00
Stefan Metzmacher
08f16292a0 r10608: - fix hierachical memory handling in ndr_pull_nbt_name
- add wrepl_nbt_name scalar type and do the pull/push in the ndr layer
  instead of the caller
- give the flags and group_flag in the wrepl_name a meaning

metze
(This used to be commit b98efc2905)
2007-10-10 13:39:12 -05:00
Jelmer Vernooij
1faf4e331e r10487: Some small updates to the manpage.
(This used to be commit b9adbb5eb2)
2007-10-10 13:38:54 -05:00
Jelmer Vernooij
1e744a5108 r10450: Use exit code 1 in case of fatal errors
(This used to be commit 88ece24a44)
2007-10-10 13:38:47 -05:00
Jelmer Vernooij
7a545880d7 r10389: Add Manifest file (required for CPAN)
(This used to be commit 7753238159)
2007-10-10 13:38:38 -05:00
Jelmer Vernooij
58a399d766 r10388: Add version numbers (required for CPAN)
(This used to be commit 786329576b)
2007-10-10 13:38:38 -05:00
Jelmer Vernooij
e073918771 r10381: Be a bit stricter on pod syntax
(This used to be commit 3f646c620a)
2007-10-10 13:38:34 -05:00
Jelmer Vernooij
cc6fae19ae r10380: Use pod-style documentation rather then XML-doc, in good perl style.
(This used to be commit fcc1ba97a3)
2007-10-10 13:38:34 -05:00
Jelmer Vernooij
f1d065128d r10296: Fix function pointer handling for older perl versions
(This used to be commit 0949db8119)
2007-10-10 13:38:14 -05:00
Jelmer Vernooij
8aa2c913a0 r10295: Remove dependency on Data::Dumper
(This used to be commit 26f2903dab)
2007-10-10 13:38:14 -05:00
Tim Potter
6c22a5bcbd r10197: Assume that external dissectors are structs which I think is always the
case.
(This used to be commit 515f456fac)
2007-10-10 13:38:07 -05:00
Jelmer Vernooij
342d229b40 r10190: Do some very basic input checking when provisioning.
(This used to be commit 87f25fe49c)
2007-10-10 13:38:06 -05:00
Jelmer Vernooij
a0bc674b52 r10173: Document new option
(This used to be commit efa6e3938d)
2007-10-10 13:38:05 -05:00