1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

419 Commits

Author SHA1 Message Date
Jelmer Vernooij
40547ed33f r5426: Warn about embedded ref pointers. 2007-10-10 13:10:45 -05:00
Jelmer Vernooij
f5224d40c0 r5422: Fix ethereal parser generator. 2007-10-10 13:10:44 -05:00
Jelmer Vernooij
ea872b9a2b r5417: Add wrapper function for typedefs hash rather then using the "our" keyword,
move pointer parsing to seperate function.
2007-10-10 13:10:44 -05:00
Andrew Tridgell
bc8d60c918 r5414: - added libcli/wins/, a basic client library for WINS replication
- added a new IDL type "udlongr", which is like udlong, but with the
  two uint32 halves reversed

- modified the winsrepl.idl to cope with a wider range of packets
2007-10-10 13:10:43 -05:00
Jelmer Vernooij
90b262398b r5410: Automatically determine indenting for the ndr parsers
(just like header.pm already did).
2007-10-10 13:10:43 -05:00
Jelmer Vernooij
e8c1a30f23 r5378: Put ndr size generators and alignment calc functions in hash as well. 2007-10-10 13:09:49 -05:00
Jelmer Vernooij
afadd17298 r5377: Put push/pull/print functions for the various types in a hash. 2007-10-10 13:09:49 -05:00
Jelmer Vernooij
efc2e41b8d r5376: ORPC is NDR specific, so move it to ndr.pm.
Get rid of register_enum/register_bitmap, etc. (use list of
types in ndr.pm instead)
2007-10-10 13:09:48 -05:00
Jelmer Vernooij
53b4ecbcc7 r5363: - ndr_%_ptr -> ndr_%_unique_ptr
- ndr_%_relative% -> ndr_%_relative_ptr%
- Change pointer_default() default to "unique"
  (DCE uses "ptr" as default, MIDL doesn't follow the standard and uses "unique")
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
31bed62a9a r5362: Add pointer_default() support to pidl. pointer_default()
is assumed to be "ptr" if not specified (just like midl).

The validator will warn when "ptr" is used at the moment, because
pidl only supports unique, ref and relative at the moment.
2007-10-10 13:09:46 -05:00
Jelmer Vernooij
c9d7b88756 r5361: Rename some functions, add tests to validator. 2007-10-10 13:09:46 -05:00
Jelmer Vernooij
d8a0a69721 r5360: Remove a couple of unused functions. 2007-10-10 13:09:45 -05:00
Jelmer Vernooij
10f3bdce80 r5345: Some more minor code readability fixes. 2007-10-10 13:09:44 -05:00
Jelmer Vernooij
95c4f31499 r5338: More efforts to handle types similarly. 2007-10-10 13:09:44 -05:00
Jelmer Vernooij
6a0f599f82 r5320: Treat structs and unions somewhat more similarly:
- use same names in hashes (DATA -> ELEMENTS, etc)
 - [case()] and [default] are no longer special case, they're just regular properties
2007-10-10 13:09:41 -05:00
Jelmer Vernooij
a469a5fefb r5319: Make some more alignment code generic, move NDR-specific stuff to
parser.pm (now renamed to ndr.pm).
2007-10-10 13:09:41 -05:00
Andrew Tridgell
9db6c79e90 r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.
2007-10-10 13:09:38 -05:00
Jelmer Vernooij
5c2f0df566 r5288: Make alignment code more generic 2007-10-10 13:09:37 -05:00
Jelmer Vernooij
ab490c0c88 r5286: Some first steps in making the pidl code somewhat more generic for the
various data types:

Add ndr_flags argument to all ndr push/pull scalar functions
2007-10-10 13:09:36 -05:00
Tim Potter
949f31ad28 r5245: Remove dead code. 2007-10-10 13:09:34 -05:00
Tim Potter
e65741159d r5241: Generate swig wrappers for unions as well as structures. 2007-10-10 13:09:33 -05:00
Tim Potter
edb32b9b51 r5223: Rename dom_sid2 to dom_sid as we don't care about the difference
for the swig wrappers.
2007-10-10 13:09:33 -05:00
Andrew Tridgell
72048e3717 r5155: define ipv4address as a based IDL type, mapped to a "const char *" in
the header, and defined on the wire as a 4 byte network byte order
IP. This means the calling code doesn't have to worry about network
byte order conversions.
2007-10-10 13:09:28 -05:00
Stefan Metzmacher
4cebc7a858 r5133: fix type mapping to internal types
metze
2007-10-10 13:09:25 -05:00
Tim Potter
a1c98101e4 r5073: Call new autogenerator function for swig stuff instead of old one. 2007-10-10 13:09:20 -05:00
Tim Potter
c2996ad910 r5072: oDecrease the amount of autogenerated code (sorry tridge) and use swig's
structure mapping features instead of doing it all ourselves.

This basically works, but has broken all the existing checked in Python
code.

Sample:

pipe = dcerpc.pipe_connect(binding,
        dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION),
        domain, username, password)

r = dcerpc.samr_Connect2()
r.data_in.system_name = 'foo'
r.data_in.access_mask = 0x02000000

result = dcerpc.dcerpc_samr_Connect2(pipe, r)
2007-10-10 13:09:19 -05:00
Andrew Tridgell
7bd4ced313 r5051: initialise all elements of an array (thanks to Mike Allan for pointing
this out)
2007-10-10 13:09:18 -05:00
Stefan Metzmacher
030bfd8d7f r5044: fix pidl--swig
metze
2007-10-10 13:09:17 -05:00
Andrew Tridgell
dd67a5d833 r5039: fixed eparser not to generate talloc_p() 2007-10-10 13:09:16 -05:00
Andrew Tridgell
1d1a9c11ee r5036: changed HYPER_T to the more standard "hyper" 2007-10-10 13:09:15 -05:00
Andrew Tridgell
f86521677d r5034: - added a type mapping function in pidl, so the type names in our IDL
files don't need to match the type names in the generated headers

- with this type mapping we no longer need definitions for the
  deprecated "int32", "uint8" etc form of types. We can now force
  everyone to use the standard types int32_t, uint8_t etc.

- fixed all the code that used the deprecated types

- converted the IDL types "int64" and "uint64" to "dlong" and
  "udlong". These are the 4 byte aligned 64 bit integers that
  Microsoft internally define as two 32 bit integers in a
  structure. After discussions with Ronnie Sahlberg we decided that
  calling these "int64" was confusing, as it implied a true 8 byte
  aligned type

- fixed all the cases where we incorrectly used things like
  "NTTIME_hyper" in our C code. The generated API now uses a NTTIME for
  those. The fact that it is hyper-aligned on the wire is not relevant
  to the API, and should remain just a IDL property
2007-10-10 13:09:15 -05:00
Andrew Tridgell
dc8c7cb85c r5032: get rid of the init fns in eparser 2007-10-10 13:09:14 -05:00
Tim Potter
425b988541 r5024: Fix build. 2007-10-10 13:09:14 -05:00
Tim Potter
c252a286ef r5019: Some tweaks to building the swig .i files. 2007-10-10 13:09:14 -05:00
Tim Potter
a38db33713 r5010: Handle weird-ass NTTIME_1sec and NTTIME_hyper types. 2007-10-10 13:09:13 -05:00
Tim Potter
8ca1e3aa3b r5009: Put bitmaps in their own subtree. 2007-10-10 13:09:13 -05:00
Tim Potter
493ba2da6b r5008: 32-bits is the default bitmap size. 2007-10-10 13:09:13 -05:00
Tim Potter
e983de6ead r5007: Fix bug in regexp where we were eating the strings "in" or "out" from
structure names if they started with those strings.
2007-10-10 13:09:13 -05:00
Tim Potter
a34212247b r5006: Implement parsing of pidl bitmaps in ethereal parsers. This works
well but needs to be stuck in a subtree.
2007-10-10 13:09:13 -05:00
Tim Potter
6f418f1426 r4993: Generate nicer name for enum hf.
Start work on supporting bitmaps.
2007-10-10 13:09:12 -05:00
Tim Potter
4640d3371e r4991: Remove debugging statement. 2007-10-10 13:09:12 -05:00
Tim Potter
edaf81b639 r4990: Generate value strings for pidl enumerations. 2007-10-10 13:09:12 -05:00
Tim Potter
d4f7f6b0b4 r4940: Add a variable to hold a list of typedefs for which we shouldn't generate
a dissector for.  A hand written dissector needs to be added to eparser.c
for the plugin to link.
2007-10-10 13:09:07 -05:00
Tim Potter
362151788b r4930: Update my copyright. 2007-10-10 13:09:06 -05:00
Andrew Tridgell
f65f239978 r4884: - 2nd part of support ndr_size_ generation on unions as well as structures
- added "nopull" and "nopush" flags, to allow for externally written parsers for sub-structures
2007-10-10 13:09:01 -05:00
Andrew Tridgell
852ad354b4 r4883: support ndr_size_ generation on unions as well as structures 2007-10-10 13:09:01 -05:00
Tim Potter
be2bb36856 r4865: Fix up subtree name when dissecting unions. E.g in LSA, The subtree
used to be called something like "Level, R->out.info" but now is called
"Lsa PolicyInformation".
2007-10-10 13:09:01 -05:00
Andrew Tridgell
99cef2e5a0 r4858: a better fix for alignment of enumerated types (I'm not even sure why
the last fix worked at all)
2007-10-10 13:09:00 -05:00
Andrew Tridgell
d2946dfabb r4843: fixed the alignment handling of enumerated types 2007-10-10 13:09:00 -05:00
Tim Potter
b5c13fc6b8 r4842: Set the end of a structure so that when you click on the proto tree,
the hex display window highlights the part of the buffer occupied by
the structure.  Cool!
2007-10-10 13:09:00 -05:00