1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +03:00

added support for printing via smbwrapper

You can print using "cp filename /smb/SERVER/PRINTER/jobname"

You can list the current printqueue using ls
This commit is contained in:
Andrew Tridgell
-
parent c5210cb0ff
commit 080fb61b69
8 changed files with 214 additions and 19 deletions

View File

@@ -25,8 +25,9 @@
#define _CLIENT_H
/* the client asks for a smaller buffer to save ram and also to get more
overlap on the wire */
#define CLI_BUFFER_SIZE (0x4000)
overlap on the wire. This size gives us a nice read/write size, which
will be a multiple of the page size on almost any system */
#define CLI_BUFFER_SIZE (0x4400)
/*
* These definitions depend on smb.h
@@ -45,6 +46,16 @@ typedef struct file_info
pstring name;
} file_info;
struct print_job_info
{
uint16 id;
uint16 priority;
size_t size;
fstring user;
fstring name;
time_t t;
};
struct pwd_info
{
BOOL null_pwd;