1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
/*
* fjobs.h -- Recording information about the file jobs
* copyright (c) 1995-99 Akim Demaille, Miguel Santana
*/
/*
* This file is part of a2ps.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; see the file COPYING. If not, write to
* the Free Software Foundation, 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef FJOBS_H_
# define FJOBS_H_
struct a2ps_job;
/*
* Relative to the current file
*/
struct file_job
{
uchar * name; /* Guess what it is :) */
/* A tmp file associated with this file. It is used only privately
by a2ps-prog. If the file is delegated, the output of the
delegation is stored there. */
char *delegation_tmpname;
/* The name under which this file is saved if it has to be delegated
and is actually stdin. */
char *stdin_tmpname;
const char * type; /* i.e. ssh key, or UNPRINTABLE */
bool is_toc; /* Is this a toc, or a real file (used
* when --pages=toc) */
struct tm mod_tm; /* Modif. info for the file */
bool printable; /* Can this file be printed? */
bool is_stdin; /* Is this file named or given by stdin?*/
int first_sheet; /* num of the first sheet for this file */
int last_sheet;
int first_page; /* Id. but pages */
int last_page;
int pages; /* These are defined because it eases */
int sheets; /* delayed integers (cf. output_marker) */
int num; /* No of the file in the args */
int top_line; /* The top most line of the current page */
int top_page; /* The first page appearing in curr sheet */
int lines; /* Current line number */
};
/* in the output session JOB, create a new input session NAME */
struct file_job *
_a2ps_file_job_new PARAMS ((uchar * name, int num, struct tm * run_tm));
int file_name_cmp PARAMS ((struct file_job * f1, struct file_job * f2));
void file_job_synchronize_sheets PARAMS ((struct a2ps_job * job));
void file_job_synchronize_pages PARAMS ((struct a2ps_job * job));
void file_job_self_print PARAMS ((struct file_job * file, FILE * stream));
void file_job_unlink_tmpfile PARAMS ((struct file_job * file));
void file_job_free PARAMS ((struct file_job * file_job));
#endif /* !defined (_FJOBS_H) */
|