]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/statbuf.h
2 * "$Id: statbuf.h 4613 2005-08-30 12:41:48Z mike $"
4 * Status buffer definitions for the Common UNIX Printing System (CUPS)
7 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
9 * These coded instructions, statements, and computer programs are the
10 * property of Easy Software Products and are protected by Federal
11 * copyright law. Distribution and use rights are outlined in the file
12 * "LICENSE.txt" which should have been included with this file. If this
13 * file is missing or damaged please contact Easy Software Products
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
31 #define CUPSD_SB_BUFFER_SIZE 1024 /* Bytes or job status buffer */
35 * Types and structures...
38 typedef struct /**** Status buffer */
40 int fd
; /* File descriptor to read from */
41 char prefix
[64]; /* Prefix for log messages */
42 int bufused
; /* How much is used in buffer */
43 char buffer
[CUPSD_SB_BUFFER_SIZE
]; /* Buffer */
51 extern cupsd_statbuf_t
*cupsdStatBufNew(int fd
, const char *prefix
, ...);
52 extern void cupsdStatBufDelete(cupsd_statbuf_t
*sb
);
53 extern char *cupsdStatBufUpdate(cupsd_statbuf_t
*sb
, int *loglevel
,
54 char *line
, int linelen
);
58 * End of "$Id: statbuf.h 4613 2005-08-30 12:41:48Z mike $".