Ignore:
Timestamp:
Nov 29, 2012, 1:59:04 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/source3/include/printing.h

    r745 r751  
    4747
    4848typedef struct _print_queue_struct {
    49         int job;                /* normally the UNIX jobid -- see note in
     49        int sysjob;             /* normally the UNIX jobid -- see note in
    5050                                   printing.c:traverse_fn_delete() */
    5151        int size;
     
    6969struct printjob {
    7070        pid_t pid; /* which process launched the job */
     71        uint32_t jobid; /* the spoolss print job identifier */
    7172        int sysjob; /* the system (lp) job number */
    7273        int fd; /* file descriptor of open file if open */
     
    101102  int (*job_pause)(int snum, struct printjob *pjob);
    102103  int (*job_resume)(int snum, struct printjob *pjob);
    103   int (*job_submit)(int snum, struct printjob *pjob);
     104  int (*job_submit)(int snum, struct printjob *pjob,
     105                    enum printing_types printing_type,
     106                    char *lpq_command);
    104107};
    105108
     
    124127#define PRINT_SPOOL_PREFIX "smbprn."
    125128#endif
    126 #define PRINT_DATABASE_VERSION 7
     129#define PRINT_DATABASE_VERSION 8
    127130
    128131#ifdef AIX
     
    195198bool print_notify_deregister_pid(int snum);
    196199bool print_job_exists(const char* sharename, uint32 jobid);
    197 char *print_job_fname(const char* sharename, uint32 jobid);
    198 struct spoolss_DeviceMode *print_job_devmode(const char* sharename, uint32 jobid);
     200struct spoolss_DeviceMode *print_job_devmode(TALLOC_CTX *mem_ctx,
     201                                             const char *sharename,
     202                                             uint32 jobid);
    199203bool print_job_set_name(struct tevent_context *ev,
    200204                        struct messaging_context *msg_ctx,
     
    204208                        struct messaging_context *msg_ctx,
    205209                        int snum, uint32_t jobid);
    206 bool print_job_pause(const struct auth_serversupplied_info *server_info,
     210WERROR print_job_pause(const struct auth_serversupplied_info *server_info,
    207211                     struct messaging_context *msg_ctx,
    208                      int snum, uint32 jobid, WERROR *errcode);
    209 bool print_job_resume(const struct auth_serversupplied_info *server_info,
     212                     int snum, uint32 jobid);
     213WERROR print_job_resume(const struct auth_serversupplied_info *server_info,
    210214                      struct messaging_context *msg_ctx,
    211                       int snum, uint32 jobid, WERROR *errcode);
     215                      int snum, uint32 jobid);
    212216ssize_t print_job_write(struct tevent_context *ev,
    213217                        struct messaging_context *msg_ctx,
     
    246250                     print_queue_struct *buf,
    247251                     print_status_struct *status,bool first);
    248 uint32_t print_parse_jobid(const char *fname);
    249252
    250253/* The following definitions come from printing/printing_db.c  */
Note: See TracChangeset for help on using the changeset viewer.