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

95 Commits

Author SHA1 Message Date
Jelmer Vernooij
069f0cc15b r21429: Fix the build.
(This used to be commit 88fbf9af24)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
ab975d9d7f r21426: Add more spoolss tests.
(This used to be commit 8b31fba826)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
3e208b3f80 r21425: Add ReplyClosePrinter.
(This used to be commit 745d0eae1a)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
2503fe2273 r21424: Add FindClosePrinterNotify.
(This used to be commit 0ed195f45f)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
4b3f75f3a7 r21422: Add IDL for EnumPrinterKey and RemoteFindNextPrinterChangeNotifyEx.
(This used to be commit 883df28d6e)
2007-10-10 14:48:30 -05:00
Jelmer Vernooij
5d6ed2b367 r21414: Fill in IDL for ReplyOpenPrinter.
(This used to be commit 9e6d43c45c)
2007-10-10 14:48:28 -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
cd9057a0bb r18639: Get rid of the keepref support
(This used to be commit d1364ef0cd)
2007-10-10 14:18:59 -05:00
Stefan Metzmacher
b22ddfd61d r16523: pass spoolss_XcvData calls to the ntptr backends...
I wrote this code last year and found it in a working tree...

metze
(This used to be commit 9a685c5bef)
2007-10-10 14:09:32 -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
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
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
9fe24f4e9c r11101: Remove last instances of unistr
(This used to be commit 7e057e6bda)
2007-10-10 13:44:49 -05:00
Stefan Metzmacher
90a61d99b4 r9149: add support for string arrays in GetPrinterData
metze
(This used to be commit b72062e653)
2007-10-10 13:31:23 -05:00
Stefan Metzmacher
ccaf752e35 r8054: add OSVersion, OSVersionEx, DNSMachineName PrintServerData
metze
(This used to be commit 47781fccbc)
2007-10-10 13:19:03 -05:00
Stefan Metzmacher
88df3c81ee 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
(This used to be commit 054e1ca434)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
19c9f032fd r7644: - remove some dublicate structures SetForm and AddForm uses the same struct
- fix some typos in EnumPrintServerForms()/GetPrintServerForms()
- add AddPrintServerForms()/SetPrintServerForms() and DeletePrintServerForms

metze
(This used to be commit 7390638842)
2007-10-10 13:18:17 -05:00
Stefan Metzmacher
8f85427d6d r7643: This patch adds a new NTPTR subsystem:
- this is an abstraction layer for print services,
  like out NTVFS subsystem for file services

- all protocol specific details are still in rpc_server/spoolss/
  - like the stupid in and out Buffer handling
  - checking of the r->in.server_name
  - ...

- this subsystem can have multiple implementation
  selected by the "ntptr providor" global-section parameter

- I currently added a "simple_ldb" backend,
  that stores Printers, Forms, Ports, Monitors, ...
  in the spoolss.db, and does no real printing
  this backend is basicly for testing, how the spoolss protocol
  works

- the interface is just a prototype and will be changed a bit
  the next days or weeks, till the simple_ldb backend can
  handle all calls that are used by normal w2k3/xp clients

- I'll also make the api async, as the ntvfs api
  this will make things like the RemoteFindFirstPrinterChangeNotifyEx(),
  that opens a connection back to the client, easier to implement,
  as we should not block the whole smbd for that

- the idea is to later implement a "unix" backend
  that works like the current samba3 code

- and maybe some embedded print server vendors can write there own
  backend that can directly talk to a printer without having cups or something like this

- the default settings are (it currently makes no sense to change them :-):

ntptr providor = simple_ldb
spoolss database = $private_dir/spoolss.db

metze
(This used to be commit 455b5536d4)
2007-10-10 13:18:16 -05:00
Stefan Metzmacher
056d63c62f r7580: - add GetPrinterDriverDirectory() idl, torture test and server code
- add EnumMonitors() server code and return "Standard TCP/IP Port"
- add parsing for opening Ports and Monitors with OpenPrinterEx()

metze
(This used to be commit 08e6de37bc)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
bc1f32b8ad r7575: - fix GetPrinterData() push side
- add somemore checks in the Emun*() pull/push glue code

metze
(This used to be commit 075fe1eb4b)
2007-10-10 13:18:11 -05:00
Stefan Metzmacher
04c3bbe053 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
(This used to be commit f5532a5b74)
2007-10-10 13:18:11 -05:00
Jelmer Vernooij
c420c5a4c4 r7552: Use ParseExpr() for [value] attributes; allows
us somewhat cleaner IDL.
(This used to be commit b7b01bccd1)
2007-10-10 13:18:07 -05:00
Stefan Metzmacher
f028d37c37 r7357: some minor updates
metze
(This used to be commit a547f2c2a1)
2007-10-10 13:17:46 -05:00
Stefan Metzmacher
3da5d18fe1 r7345: add WritePrinter(), AbortPrinter() and ReadPrinter() idl
metze
(This used to be commit 1fc617e871)
2007-10-10 13:17:45 -05:00
Stefan Metzmacher
56257df1d4 r7341: fix StartDocPrinter() idl
metze
(This used to be commit 08d28e5d20)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
bd1dc11f04 r7337: - fix SetJob() idl
- add StartDocPrinter() idl
- add EndDocPrinter() idl

metze
(This used to be commit c635a623bc)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
8423835521 r7331: fix parsing of spoolss_SetPrinter()
metze
(This used to be commit b0e7092bc5)
2007-10-10 13:17:43 -05:00
Stefan Metzmacher
9a831a3963 r7328: fix GetPrinterData and SetPrinterData, with zero length subcontexts
metze
(This used to be commit 73d597bacf)
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
5b8c972c5b r7326: fix [validate]
metze
(This used to be commit 08eb591034)
2007-10-10 13:17:42 -05:00
Stefan Metzmacher
01fb2de4dc r7188: make use of the new relative_base property for the spoolss_Enum* functions
metze
(This used to be commit 870ed3a2b5)
2007-10-10 13:17:25 -05:00
Stefan Metzmacher
8618c6a906 r7182: remove current support for RELATIVE_CURRENT, this will be replaced with a better aproach later
metze
(This used to be commit 9a4e9f68fb)
2007-10-10 13:17:23 -05:00
Stefan Metzmacher
62480f1252 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
(This used to be commit 155d18e8b7)
2007-10-10 13:17:19 -05:00
Jelmer Vernooij
50d2bf0066 r7029: Make array support in pidl similar to that in other IDL compilers. We should
now able to use constructions like these:

[size_is(20)] int *x; -> Pointer to array of 20 ints
[size_is(20)] int x[]; -> Array of 20 ints
[size_is(20)] int *x[]; -> Array of 20 pointers to ints
[size_is(20,)] int *x[] -> Array of 20 pointers to ints
[size_is(,20)] int *x[]; -> Pointer to array of 20 ints
[size_is(,20)] int **x; -> Pointer to pointer to array of 20 ints
[size_is(20)] int x[][30]; -> 20 blocks of 30 ints
(This used to be commit ecf583da71)
2007-10-10 13:17:07 -05:00
Jelmer Vernooij
e427f58622 r6973: Merge new version of pidl into the main SAMBA_4_0 branch.
The main difference in this new version is the extra data structure generated
between the IDL data structure and the NDR parser:

IDL -> NDR -> { ndr_parser, ndr_header, eparser, etc }

This makes the ndr_parser.pm internals much more sane.

Other changes include:

- Remove unnecessary calls with NDR_BUFFERS (for example, GUID doesn't have any buffers, just scalars) as well as some (unnecessary) nested setting of flags.
- Parse array loops in the C code rather then calling ndr_pull_array(). This allows us to have, for example, arrays of pointers or arrays of pointers to arrays, etc..
- Use if() {} rather then if () goto foo; everywhere
- NDR_IN no longer implies LIBNDR_FLAG_REF_ALLOC
- By default, top level pointers are now "ref" (as is the default in
  most other IDL compilers). This can be overridden using the
  default_pointer_top() property.
- initial work on new ethereal parser generators by Alan DeKok and me
- pidl now writes errors in the standard format used by compilers, which
  is parsable by most editors
- ability to warn about the fact that pidl extension(s) have been used,
  useful for making sure IDL files work with other IDL compilers.

oh, and there's probably some other things I can't think of right now..
(This used to be commit 13cf227615)
2007-10-10 13:17:01 -05:00
Stefan Metzmacher
591ff7675d r6572: add "string_array" as new scalar type for handling SPOOLSS string array's
metze
(This used to be commit 23b529ee09)
2007-10-10 13:16:26 -05:00
Stefan Metzmacher
746bb14367 r6194: - fix some spoolss_*Form names and types
- fix GetPrinterData(), look inside the datablob

- add idl for RemoteFindFirstChangeNotify(), without meaning yet, just to not return a DCERPC_FAULT
  when receiving this request

metze
(This used to be commit 92f3d5bd9c)
2007-10-10 13:11:25 -05:00
Stefan Metzmacher
3abce73193 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
(This used to be commit 92a3721bc7)
2007-10-10 13:11:23 -05:00
Stefan Metzmacher
4931dfc8c6 r6100: - fix nondiscriminant -> nodiscriminant (that takes me 2 days to find...:-( )
- use a DATA_BLOB for the driver specific data in the devmode

metze
(This used to be commit 87d48b2076)
2007-10-10 13:11:19 -05:00
Tim Potter
23076eaa80 r5554: Constants and untested IDL for spoolss_SetPrinter()
(This used to be commit eed816e20f)
2007-10-10 13:10:54 -05:00
Tim Potter
04d3e8046a r5553: Add idl and test for spoolss_AddPort(). It always seems to return
WERR_NOT_SUPPORTED though.
(This used to be commit ba4730a378)
2007-10-10 13:10:54 -05:00
Stefan Metzmacher
68ce448fbd r5537: - make use of bitmaps and enums
- add and fix some PrinterInfo levels

- add and fix some DriverInfo levels

- fix EnumPrinterDriver torture test

the curent RPC-SPOOLSS now passes on w2k3

metze
(This used to be commit 14b88ca20d)
2007-10-10 13:10:53 -05:00
Stefan Metzmacher
6fbcb3534c r5515: fix PrinterInfo3
metze
(This used to be commit 0f5b0ec349)
2007-10-10 13:10:53 -05:00
Stefan Metzmacher
001dfe73dd r5505: make usage of bitmap's :-)
metze
(This used to be commit bc31e19f38)
2007-10-10 13:10:52 -05:00
Stefan Metzmacher
4926b8f5c0 r5498: fix OpenPrinter() idl and torture test
metze
(This used to be commit fd7950abe6)
2007-10-10 13:10:51 -05:00
Stefan Metzmacher
6b4cac2c00 r5489: hide handwritten pull/push/print code from the caller
for the spoolss_Enum* functions

metze
(This used to be commit bfcc86e706)
2007-10-10 13:10:50 -05:00
Stefan Metzmacher
00da7414d7 r5445: move FormInfo1 struct to the place where it's used
metze
(This used to be commit 748c456641)
2007-10-10 13:10:46 -05:00
Stefan Metzmacher
856ee66537 r3810: create a LIB_SECURITY subsystem
- move dom_sid, security_descriptor, security_* funtions to one place
  and rename some of them

metze
(This used to be commit b620bdd672)
2007-10-10 13:05:56 -05:00
Tim Potter
2a271ec5db r3429: Fix IDL for EnumPrinterDataEx()
(This used to be commit da7ec2ae68)
2007-10-10 13:05:10 -05:00
Tim Potter
3d2dd91d4d r3404: Rename name of DATA_BLOB in GetPrinterData()
(This used to be commit f06ecd81dd)
2007-10-10 13:05:06 -05:00
Tim Potter
0b0673213b r3402: Fix idl for spoolss_JobInfo1.
(This used to be commit e5fe971dc5)
2007-10-10 13:05:06 -05:00