s3-printing: move more printing structs to printing.h
authorGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 18:46:11 +0000 (19:46 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 22 Feb 2011 20:52:18 +0000 (21:52 +0100)
Guenther

source3/include/printing.h
source3/include/smb.h
source3/printing/tests/vlp.c

index 0316eb58c911d10a20f862c29c58a857251ae590..72c9cef7c0f6859a23a99518c8c331cdcbc8da1a 100644 (file)
    SAMBA printing subsystem.
 */
 
+/* Extra fields above "LPQ_PRINTING" are used to map extra NT status codes. */
+
+enum {
+       LPQ_QUEUED = 0,
+       LPQ_PAUSED,
+       LPQ_SPOOLING,
+       LPQ_PRINTING,
+       LPQ_ERROR,
+       LPQ_DELETING,
+       LPQ_OFFLINE,
+       LPQ_PAPEROUT,
+       LPQ_PRINTED,
+       LPQ_DELETED,
+       LPQ_BLOCKED,
+       LPQ_USER_INTERVENTION,
+
+       /* smbd is dooing the file spooling before passing control to spoolss */
+       PJOB_SMBD_SPOOLING
+};
+
+typedef struct _print_queue_struct {
+       int job;                /* normally the UNIX jobid -- see note in
+                                  printing.c:traverse_fn_delete() */
+       int size;
+       int page_count;
+       int status;
+       int priority;
+       time_t time;
+       fstring fs_user;
+       fstring fs_file;
+} print_queue_struct;
+
+enum {LPSTAT_OK, LPSTAT_STOPPED, LPSTAT_ERROR};
+
+typedef struct {
+       fstring message;
+       int qcount;
+       int status;
+}  print_status_struct;
+
 /* Information for print jobs */
 struct printjob {
        pid_t pid; /* which process launched the job */
index 0776ed9656ee31c3df8d4f91af0f737a80e90d54..d3fa3f2790ccb1f61d2b35b64e5d6a2a93513beb 100644 (file)
@@ -591,46 +591,6 @@ typedef struct {
        fstring domain; /* domain that the client specified */
 } userdom_struct;
 
-/* Extra fields above "LPQ_PRINTING" are used to map extra NT status codes. */
-
-enum {
-       LPQ_QUEUED = 0,
-       LPQ_PAUSED,
-       LPQ_SPOOLING,
-       LPQ_PRINTING,
-       LPQ_ERROR,
-       LPQ_DELETING,
-       LPQ_OFFLINE,
-       LPQ_PAPEROUT,
-       LPQ_PRINTED,
-       LPQ_DELETED,
-       LPQ_BLOCKED,
-       LPQ_USER_INTERVENTION,
-
-       /* smbd is dooing the file spooling before passing control to spoolss */
-       PJOB_SMBD_SPOOLING
-};
-
-typedef struct _print_queue_struct {
-       int job;                /* normally the UNIX jobid -- see note in 
-                                  printing.c:traverse_fn_delete() */
-       int size;
-       int page_count;
-       int status;
-       int priority;
-       time_t time;
-       fstring fs_user;
-       fstring fs_file;
-} print_queue_struct;
-
-enum {LPSTAT_OK, LPSTAT_STOPPED, LPSTAT_ERROR};
-
-typedef struct {
-       fstring message;
-       int qcount;
-       int status;
-}  print_status_struct;
-
 /* used for server information: client, nameserv and ipc */
 struct server_info_struct {
        fstring name;
index 48b71204d8cf882821ca5d55a05e3d3998485671..494a811f019940a5d00607c3504f10100dbbc0c0 100644 (file)
@@ -20,6 +20,7 @@
 */
 
 #include "includes.h"
+#include "printing.h"
 
 #ifdef malloc
 #undef malloc