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

39 Commits

Author SHA1 Message Date
Stefan Metzmacher
1c9975bccf r25818: remove useless '\' chars at the end of lines
(they were copied from the macros by mistake)

metze
2007-12-21 05:44:11 +01:00
Stefan Metzmacher
37da0940f4 r25782: use NT_STATUS_HAVE_NO_MEMORY()
metze
2007-12-21 05:43:57 +01:00
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Tridgell
eba6c84eff r18301: I discovered how to load the warnings from a build farm build into
emacs compile mode (hint, paste to a file, and compile as "cat
filename").

This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
2007-10-10 14:18:04 -05:00
Andrew Tridgell
d2c9285483 r8522: fixed another couple of size_t warnings 2007-10-10 13:29:34 -05:00
Andrew Tridgell
a58ea6b385 r8520: fixed a pile of warnings from the build farm gcc -Wall output on
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
2007-10-10 13:29:34 -05:00
Stefan Metzmacher
054e1ca434 r8050: - make use of more [value()] properties
- the out subcontext's need to have a fixed size of r->in.offered,
  to make windows clients happy

metze
2007-10-10 13:19:02 -05:00
Andrew Tridgell
eee528be97 r7865: changed pidl to take a "const void *" instead of a "void *" for the
structure in ndr_push_*() and ndr_print_*(). The push and print
functions really should not modify the structure.

metze, to make this work I had to change your spoolss hand
marshaller. Can you please check it is OK? I think that the IN and OUT
sides of that function are not ever called on the same structure, so I
think that attempt at remembering the value by assigning to
r->in._offered was not doing anything anyway, but please correct me if
I have misunderstood it.

If you really do need to remember something on those structures I'd
suggest the ndr_token_store() and ndr_token_retrieve() functions,
which are used by pidl for just this sort of thing.
2007-10-10 13:18:44 -05:00
Stefan Metzmacher
075fe1eb4b r7575: - fix GetPrinterData() push side
- add somemore checks in the Emun*() pull/push glue code

metze
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
f5532a5b74 r7574: - seperate [in] and [out] buffers and buf_sizes
- use the same names as etherel (offered,needed) for the buffer sizes
  (and they are really independently used)

metze
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
0130b0d902 r7462: fix Enum* pushing, we need to send back a buffer of the same size as we got
in the recv code..., this makes the w2k3 printserver properties gui happy:-)

metze
2007-10-10 13:17:55 -05:00
Stefan Metzmacher
9a1760c618 r7364: - remove '\' chars from copy paste
- fix allocates [out,ref] pointers to be passed between functions

metze
2007-10-10 13:17:47 -05:00
Stefan Metzmacher
73d597bacf r7328: fix GetPrinterData and SetPrinterData, with zero length subcontexts
metze
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
c0462d60b5 r7327: pass down the ndr->flags to the subcontexts
metze
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
da319b7bc3 r7196: fix typo, that makes the spoolss test working with [validate]
([validate,bigendian] is still failing badly...)

metze
2007-10-10 13:17:25 -05:00
Stefan Metzmacher
d2eb1a6844 r7194: fix pulling of the NDR_IN data, [validate] works for the NDR_IN side now...
metze
2007-10-10 13:17:25 -05:00
Stefan Metzmacher
539fe32ced r7181: add functions to calculate the buffer size needed for array buffer in the spoolss_Enum* functions
they will be later used in the spoolss server code

metze
2007-10-10 13:17:23 -05:00
Stefan Metzmacher
155d18e8b7 r7120: make use of the new 'noopnum' property and get rid of handwritten
parsing code for the spoolss_Enum* functions, there still same handwritten code needed
but just to stack the autogenerated code into the correct way

metze
2007-10-10 13:17:19 -05:00
Stefan Metzmacher
e66aa87f14 r6191: fix spoolss_Enum* push code
metze
2007-10-10 13:11:24 -05:00
Jelmer Vernooij
4da9d1d5c2 r6181: Use ndr_print_set_switch_value() here as well. 2007-10-10 13:11:23 -05:00
Stefan Metzmacher
92a3721bc7 r6179: - add new spoolss tests for all spoolss_Enum*() calls which didn't need
a handle as parameter,

  EnumPorts
  EnumPrinterDrivers
  EnumMonitors
  EnumPrintProcessors
  EnumPrinters

  we now do cross checks between the different info levels
  and sore the results in a global context,
  so that we later can add cross checks between the different object types

- add idl for EnumMonitors and EnumPrintProcessors

metze
2007-10-10 13:11:23 -05:00
Stefan Metzmacher
ff32e2182e r6099: use the enum print function
metze
2007-10-10 13:11:19 -05:00
Jelmer Vernooij
dc6b4ffc82 r5672: Use switch_type() and the token storage mechanism for unions:
- Makes union handling less special
 - Allows unions in arrays, etc
 - Compatible with midl
 - Pidl will warn about switch_type() and the type of the switch_is() variable being different
2007-10-10 13:10:58 -05:00
Jelmer Vernooij
54e0be6f1e r5663: Revert some changes I didn't mean to commit... 2007-10-10 13:10:57 -05:00
Jelmer Vernooij
a416de5825 r5661: Be a little stricter on syntax regarding arrays. A pointer to an
array can now only be :

 type *name[];

rather then :

 type *name;

which was supported in the past. Warnings will be given when the first
syntax is used. Reasons for this change in behaviour include improved
readability and the fact that the second format makes dealing with multiple
levels of pointers harder.
2007-10-10 13:10:57 -05:00
Stefan Metzmacher
2bb29cc68a r5504: fix typo
metze
2007-10-10 13:10:52 -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
0aea8522d7 r5446: fix pulling of arrays in EnumXXX functions
metze
2007-10-10 13:10:46 -05:00
Andrew Tridgell
b8f5fa8ac8 r3428: switched to using minimal includes for the auto-generated RPC code.
The thing that finally convinced me that minimal includes was worth
pursuing for rpc was a compiler (tcc) that failed to build Samba due
to reaching internal limits of the size of include files. Also the
fact that includes.h.gch was 16MB, which really seems excessive. This
patch brings it back to 12M, which is still too large, but
better. Note that this patch speeds up compile times for both the pch
and non-pch case.

This change also includes the addition iof a "depends()" option in our
IDL files, allowing you to specify that one IDL file depends on
another. This capability was needed for the auto-includes generation.
2007-10-10 13:05:09 -05:00
Andrew Tridgell
e909bfa708 r2209: patch from volker to add EnumPorts spoolss IDL and test code
the ndr->offset=0; stuff is ugly. We need a better way to handle this.
2007-10-10 12:58:31 -05:00
Stefan Metzmacher
0e5517d937 r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
2007-10-10 12:56:15 -05:00
Tim Potter
a818439b59 Added EnumPrinterDriver, GetPrinterDriver (still in progress) -
Tim Potter
a06cbbbf1f Added EnumJobs, GetJob, SetJob RPCs. -
Tim Potter
822750592c Implemented EnumForms and GetForm. -
Andrew Tridgell
7b5d028729 switched to a new way of handling unions, so that we can handle
alignment correctly for unions that have non-uint16 discriminants

fixed the union handling in srvsvc.idl. (metze, please take a look at
the changes, your IDL did match what was one the wire in most cases,
but isn't the way IDL is usually coded)
-
Andrew Tridgell
136b3cfc04 call OpenPrinterEx on each printer on the server, and then call
GetPrinter with all info levels on each printer
-
Andrew Tridgell
060421c7dc nicer method of handling spoolss EnumPrinters
this also handles the return of several printers (an array of relative
subcontexts)
-
Andrew Tridgell
69c6017c94 use nstring and [relative] to support levels 1 and 2 of EnumPrinters
fully
-
Andrew Tridgell
e18dba7d5a added support for level1 of EnumPrinters in spoolss. This uses a
number of "magic" add-ons to IDL to make it less painful, hopefully
this will make IDL generation useful for horrible systems like spoolss
-