]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/statbuf.h
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / scheduler / statbuf.h
1 /*
2 * Status buffer definitions for the CUPS scheduler.
3 *
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
6 *
7 * These coded instructions, statements, and computer programs are the
8 * property of Apple Inc. and are protected by Federal copyright
9 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 * which should have been included with this file. If this file is
11 * file is missing or damaged, see the license at "http://www.cups.org/".
12 */
13
14
15 /*
16 * Constants...
17 */
18
19 #define CUPSD_SB_BUFFER_SIZE 2048 /* Bytes for job status buffer */
20
21
22 /*
23 * Types and structures...
24 */
25
26 typedef struct /**** Status buffer */
27 {
28 int fd; /* File descriptor to read from */
29 char prefix[64]; /* Prefix for log messages */
30 int bufused; /* How much is used in buffer */
31 char buffer[CUPSD_SB_BUFFER_SIZE]; /* Buffer */
32 } cupsd_statbuf_t;
33
34
35 /*
36 * Prototypes...
37 */
38
39 extern void cupsdStatBufDelete(cupsd_statbuf_t *sb);
40 extern cupsd_statbuf_t *cupsdStatBufNew(int fd, const char *prefix, ...);
41 extern char *cupsdStatBufUpdate(cupsd_statbuf_t *sb, int *loglevel,
42 char *line, int linelen);