/***************************************************************************
 * LPRng - An Extended Print Spooler System
 *
 * Copyright 1988-1997, Patrick Powell, San Diego, CA
 *     papowell@sdsu.edu
 * See LICENSE for conditions of use.
 *
 ***************************************************************************
 * MODULE: jobcontrol.h
 * PURPOSE: read and write the spool queue control file
 * jobcontrol.h,v 3.6 1997/12/16 15:06:42 papowell Exp
 **************************************************************************/


char *Hold_file_pathname( struct control_file *cfp, struct dpathname *dpath );
int Find_non_colliding_job_number( struct control_file *cfp,
	struct dpathname *dpath );
int Lock_hold_file( struct control_file *cfp, struct stat *statb );
int Get_job_control( struct control_file *cf, int *fd );
int Set_job_control( struct control_file *cf, int *fd );
int Remove_job_control( struct control_file *cf );
int Get_route( char *filter, struct control_file *cf, int fd,
	struct printcap_entry *pc_entry, int *hold_fd );

/* get and set the current spooling and printing permissions */

int Get_spool_control( struct stat *statb, int *fd );
int Set_spool_control( int *fdptr );
char *Copy_hf( struct malloc_list *data, struct malloc_list *copy,
	char *header, char *prefix );
void dump_spool_control( char *title );

