From 837887ffd6a82616a5388cb3536c9c1283464ee0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 16 Apr 2000 06:18:39 +0000 Subject: the fsp needs a jobid in it now ------------ The following series of commits are for the new tdb based printing backend. This completely replaces our old printing backend. Major changes include: - all print ops are now done in printing/*.c rather than scattered all over the place - system job ids are decoupled from SMB job ids - the lpq parsers don't need to be nearly so smart, they only need to parse the filename, the status and system job id - we can store lots more info about a job, including the full job name - the queue cache control is much better I also added a new utility routine file_lines_load() that loads a text file and parses it into lines. This is used in out lpq parsing and I also want to use it to replace all of our fgets() based code in other places. (This used to be commit 4973b7e276ca75dcb63ccb54687d17f87aede7c1) --- source3/include/smb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/include/smb.h') diff --git a/source3/include/smb.h b/source3/include/smb.h index d8653538df..b8cd415ef9 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -474,6 +474,7 @@ typedef struct files_struct int fnum; struct connection_struct *conn; int fd; + int print_jobid; SMB_DEV_T dev; SMB_INO_T inode; BOOL delete_on_close; @@ -633,8 +634,8 @@ typedef struct _print_queue_struct int status; int priority; time_t time; - char user[30]; - char file[100]; + fstring user; + fstring file; } print_queue_struct; enum {LPSTAT_OK, LPSTAT_STOPPED, LPSTAT_ERROR}; -- cgit