1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

3991 Commits

Author SHA1 Message Date
Rafal Szczesniak
1294db747e r5499: Commit forgotten change what tridge immediately pointed out
in his comments to new rpc composite code.

rafal
2007-10-10 13:10:51 -05:00
Stefan Metzmacher
fd7950abe6 r5498: fix OpenPrinter() idl and torture test
metze
2007-10-10 13:10:51 -05:00
Jelmer Vernooij
e601f51b82 r5494: Some more code simplification, some additional comments. 2007-10-10 13:10:51 -05:00
Jelmer Vernooij
70b58aa779 r5493: Some code simplification 2007-10-10 13:10:51 -05:00
Jelmer Vernooij
3c31cbaac0 r5492: Update example coclass, autogenerate some parts. 2007-10-10 13:10:50 -05:00
Jelmer Vernooij
e2cbe16c1e r5491: Don't load the DCOM-specific services by default (yet) 2007-10-10 13:10:50 -05:00
Jelmer Vernooij
71fd3e5c3a r5490: The big (D)COM commit! :-) Contains most of the changes described in the
DCOM paper in lorikeet. This is the result of 1.5 months work (mainly
figuring out how things *really* work) at the end of 2004.

In general:
- Clearer distinction between COM and DCOM. DCOM is now merely
  the glue between DCE/RPC+ORPC and COM. COM can also work without
  DCOM now. This makes the code a lot clearer.
- Clearer distinction between NDR and DCOM. Before, NDR had a couple of
  "if"s to cope with DCOM, which are now gone.
- Use "real" arguments rather then structures for function arguments in
  COM, mainly because most of these calls are local so packing/unpacking
  data for every call is too much overhead (both speed- and code-wise)
- Support several mechanisms to load class objects:
  - from memory (e.g. part of the current executable, registered at start-up)
  - from shared object files
  - remotely
- Most things are now also named COM rather then DCOM because that's what it
  really is. After an object is created, it no longer matters whether it
  was created locally or remotely.

There is a very simple example class that contains
both a class factory and a class that implements the IStream interface.
It can be tested (locally only, remotely is broken at the moment)
by running the COM-SIMPLE smbtorture test.

Still to-do:
 - Autogenerate parts of the class implementation code (using the coclass definitions in IDL)
 - Test server-side
 - Implement some of the common classes, add definitions for common interfaces.
2007-10-10 13:10:50 -05:00
Stefan Metzmacher
bfcc86e706 r5489: hide handwritten pull/push/print code from the caller
for the spoolss_Enum* functions

metze
2007-10-10 13:10:50 -05:00
Stefan Metzmacher
0bcbd694e9 r5488: - let the request be a child of the pipe struct
to fix dcerpc_pipe_close() on a secondary connection,
  while the callers mem_ctx of a request is still valid

- fix up some memory contexts

TODO: split up output mem_ctx from ndr_pull context

metze
2007-10-10 13:10:50 -05:00
Jelmer Vernooij
f298f2a547 r5487: - Allow disabling modules
- Disable all current DCOM functionality (I hope to commit
	a large bunch of COM and DCOM changes later today)
- Make remact and oxidresolver depend on orpc rather then dcom
2007-10-10 13:10:50 -05:00
Jelmer Vernooij
3110c2ec44 r5486: - Use references to interfaces in coclasses rather then
full interfaces.
- Couple of bugfixes in odl.pm
- First use of multiple pointers in dcom.idl
2007-10-10 13:10:49 -05:00
Jelmer Vernooij
d0d4251d6f r5485: Support nopull,nopush in header.pm as well. 2007-10-10 13:10:49 -05:00
Stefan Metzmacher
0e82e7f02b r5480: allow nopush and nopull on functions
metze
2007-10-10 13:10:49 -05:00
Jelmer Vernooij
a339765d99 r5479: Add ODL input support.
The ODL module can convert an ODL structure to an IDL structure so that:
 - The COM subsystem can use the ODL structure
 - The DCE/RPC subsystem can use the IDL structure
2007-10-10 13:10:49 -05:00
Jelmer Vernooij
fd8fc22a79 r5478: Bunch of small optimizations and generalizations. 2007-10-10 13:10:49 -05:00
Jelmer Vernooij
d914cd1804 r5477: - Move some more of the typelist stuff out of ndr.pm
- Remember INTERFACEs as well (they can be types in DCOM)
2007-10-10 13:10:49 -05:00
Jelmer Vernooij
75d8fc8338 r5476: Move ORPC extensions to DCE/RPC into seperate file. 2007-10-10 13:10:49 -05:00
Jelmer Vernooij
280df52538 r5475: Move some existing and new type information functions to typelist.pm 2007-10-10 13:10:49 -05:00
Rafal Szczesniak
bfb4dfaa8c r5474: Remove random notes put in code.
rafal
2007-10-10 13:10:48 -05:00
Rafal Szczesniak
dcab843da3 r5472: First approach to composite rpc call fetchin user info.
It does only compile. Completely untested yet, so almost certainly
broken, but I don't want it to lay on my laptop only.

rafal
2007-10-10 13:10:48 -05:00
Jelmer Vernooij
fbce7464b2 r5466: Put the type information list in a seperate module
(require for some of the COM stuff)
2007-10-10 13:10:48 -05:00
Jelmer Vernooij
e5eb5e847e r5465: Add support to multiple levels of pointers in pidl.
Also add a new function to echo.idl that tests this behaviour.
2007-10-10 13:10:48 -05:00
Jelmer Vernooij
6d1ad1ce7a r5464: Simplify print function generator code. 2007-10-10 13:10:48 -05:00
Jelmer Vernooij
d40a49c8a7 r5463: Make need_wire_pointer() return the number of required
pointers rather then a bool.
2007-10-10 13:10:48 -05:00
Andrew Tridgell
0bb997127f r5454: moved the WINS server code into its own directory 2007-10-10 13:10:48 -05:00
Jelmer Vernooij
5f7882341f r5453: Treat "embedded" arrays (surrounding structures) somewhat
more generically. The default functions for remembering array sizes
are now used rather then a special local variable.
2007-10-10 13:10:47 -05:00
Jelmer Vernooij
1b71000cc1 r5452: Add implementation + torture test for echo_Surrounding 2007-10-10 13:10:47 -05:00
Andrew Tridgell
cec1672662 r5451: - added separate wrepl_associate(), wrepl_pull_table() and wrepl_pull_names() functions, with reasonable
parameters, so callers don't need to deal directly with wins replication packet structures

- converted the NBT-WINSREPLICATION torture test to use the new APIs
2007-10-10 13:10:47 -05:00
Jelmer Vernooij
900477226d r5450: Add test function for "embedded" conformant arrays 2007-10-10 13:10:47 -05:00
Jelmer Vernooij
b86b299197 r5449: More array handling cleanups. This should make the code more
readable. (Output C and header files have not changed, just internal pidl
changes)
2007-10-10 13:10:47 -05:00
Andrew Tridgell
1909a06952 r5448: another portability fix for solaris 2007-10-10 13:10:46 -05:00
Jelmer Vernooij
a251712670 r5447: Add some utility functions for arrays and use them. 2007-10-10 13:10:46 -05:00
Stefan Metzmacher
0aea8522d7 r5446: fix pulling of arrays in EnumXXX functions
metze
2007-10-10 13:10:46 -05:00
Stefan Metzmacher
748c456641 r5445: move FormInfo1 struct to the place where it's used
metze
2007-10-10 13:10:46 -05:00
Jelmer Vernooij
e52256aec2 r5443: Fix HeaderProperties(). Not re-enabling yet because I don't know why it
was disabled in the first place.
2007-10-10 13:10:46 -05:00
Jelmer Vernooij
e912f36dc8 r5442: Use argument list generator functions from NdrParser in NdrHeader 2007-10-10 13:10:46 -05:00
Jelmer Vernooij
a5bf662b52 r5441: Put push, pull and print arguments in hash as well 2007-10-10 13:10:45 -05:00
Jelmer Vernooij
cf12084712 r5440: Some more generalizations 2007-10-10 13:10:45 -05:00
Jelmer Vernooij
0a78a1f908 r5439: (hopefully) fix build on older perls. Thanks to tridge for pointing this out. 2007-10-10 13:10:45 -05:00
Jelmer Vernooij
d0a6b97330 r5438: Keep new CFLAGS if the compiler accepted them. 2007-10-10 13:10:45 -05:00
Jelmer Vernooij
2e1e8db6dc r5437: Allow Samba4 to be compiled by tcc (www.tinycc.org). It still crashes when linking though. 2007-10-10 13:10:45 -05:00
Jelmer Vernooij
fa97059d00 r5427: NTSTATUS is treated by pidl as a 'real' scalar now. 2007-10-10 13:10:45 -05:00
Jelmer Vernooij
40547ed33f r5426: Warn about embedded ref pointers. 2007-10-10 13:10:45 -05:00
Rafal Szczesniak
eb66180d14 r5425: Convert function tables to new structure (with description)
and remove unnecessary help functions as help is generated
automatically. Usage functions with precise information about
usage of each leaf node remain.

rafal
2007-10-10 13:10:44 -05:00
Rafal Szczesniak
24f7a3860e r5424: Automatically generate basic help display on basis of name
and description from function table.

rafal
2007-10-10 13:10:44 -05:00
Rafal Szczesniak
48568959a8 r5423: Change function table structure to allow short description
of command groups. Also give up help function pointer in the
structure since it's needed only in leaf nodes of command tree,
and leaf nodes decide about help on their own. Usage function
is still available on all levels.

rafal
2007-10-10 13:10:44 -05:00
Jelmer Vernooij
f5224d40c0 r5422: Fix ethereal parser generator. 2007-10-10 13:10:44 -05:00
Andrew Tridgell
2acd79b959 r5418: - added version numbers to WINS database records in preparation for adding server side
replication support

- on a WACK registration success, check that the database record
  hasn't changed during the WACK processing. If it has, then fail
  the registration
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
b94301b357 r5416: nicer output when trying to replicate with a server that hasn't been setup as
a partner
2007-10-10 13:10:44 -05:00