]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/statbuf.h
Remove svn:keywords since they cause svn_load_dirs.pl to complain about every file.
[thirdparty/cups.git] / scheduler / statbuf.h
CommitLineData
ef416fc2 1/*
c07d5b2d 2 * "$Id: statbuf.h 177 2006-06-21 00:20:03Z jlovell $"
ef416fc2 3 *
4 * Status buffer definitions for the Common UNIX Printing System (CUPS)
5 * scheduler.
6 *
7 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 *
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
14 * at:
15 *
16 * Attn: CUPS Licensing Information
17 * Easy Software Products
18 * 44141 Airport View Drive, Suite 204
19 * Hollywood, Maryland 20636 USA
20 *
21 * Voice: (301) 373-9600
22 * EMail: cups-info@cups.org
23 * WWW: http://www.cups.org
24 */
25
26
27/*
28 * Constants...
29 */
30
31#define CUPSD_SB_BUFFER_SIZE 1024 /* Bytes or job status buffer */
32
33
34/*
35 * Types and structures...
36 */
37
38typedef struct /**** Status buffer */
39{
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 */
44} cupsd_statbuf_t;
45
46
47/*
48 * Prototypes...
49 */
50
51extern cupsd_statbuf_t *cupsdStatBufNew(int fd, const char *prefix, ...);
52extern void cupsdStatBufDelete(cupsd_statbuf_t *sb);
53extern char *cupsdStatBufUpdate(cupsd_statbuf_t *sb, int *loglevel,
54 char *line, int linelen);
55
56
57/*
c07d5b2d 58 * End of "$Id: statbuf.h 177 2006-06-21 00:20:03Z jlovell $".
ef416fc2 59 */