]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/statbuf.h
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / scheduler / statbuf.h
CommitLineData
ef416fc2 1/*
503b54c9 2 * Status buffer definitions for the CUPS scheduler.
ef416fc2 3 *
503b54c9
MS
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
ef416fc2 6 *
503b54c9
MS
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/".
ef416fc2 12 */
13
14
15/*
16 * Constants...
17 */
18
10d09e33 19#define CUPSD_SB_BUFFER_SIZE 2048 /* Bytes for job status buffer */
ef416fc2 20
21
22/*
23 * Types and structures...
24 */
25
26typedef 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
ef416fc2 39extern void cupsdStatBufDelete(cupsd_statbuf_t *sb);
75bd9771 40extern cupsd_statbuf_t *cupsdStatBufNew(int fd, const char *prefix, ...);
ef416fc2 41extern char *cupsdStatBufUpdate(cupsd_statbuf_t *sb, int *loglevel,
42 char *line, int linelen);