blob: 385e68c9b022f041e44d402f22d0608c1953061a [file] [log] [blame]
jlovellef416fc2006-01-13 01:51:53 +00001/*
jlovellbc44d922007-07-16 23:34:09 +00002 * "$Id: statbuf.h 6649 2007-07-11 21:46:42Z mike $"
jlovellef416fc2006-01-13 01:51:53 +00003 *
4 * Status buffer definitions for the Common UNIX Printing System (CUPS)
5 * scheduler.
6 *
jlovellbc44d922007-07-16 23:34:09 +00007 * Copyright 2007 by Apple Inc.
jlovellef416fc2006-01-13 01:51:53 +00008 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
9 *
10 * These coded instructions, statements, and computer programs are the
jlovellbc44d922007-07-16 23:34:09 +000011 * property of Apple Inc. and are protected by Federal copyright
12 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
13 * which should have been included with this file. If this file is
14 * file is missing or damaged, see the license at "http://www.cups.org/".
jlovellef416fc2006-01-13 01:51:53 +000015 */
16
17
18/*
19 * Constants...
20 */
21
22#define CUPSD_SB_BUFFER_SIZE 1024 /* Bytes or job status buffer */
23
24
25/*
26 * Types and structures...
27 */
28
29typedef struct /**** Status buffer */
30{
31 int fd; /* File descriptor to read from */
32 char prefix[64]; /* Prefix for log messages */
33 int bufused; /* How much is used in buffer */
34 char buffer[CUPSD_SB_BUFFER_SIZE]; /* Buffer */
35} cupsd_statbuf_t;
36
37
38/*
39 * Prototypes...
40 */
41
42extern cupsd_statbuf_t *cupsdStatBufNew(int fd, const char *prefix, ...);
43extern void cupsdStatBufDelete(cupsd_statbuf_t *sb);
44extern char *cupsdStatBufUpdate(cupsd_statbuf_t *sb, int *loglevel,
45 char *line, int linelen);
46
47
48/*
jlovellbc44d922007-07-16 23:34:09 +000049 * End of "$Id: statbuf.h 6649 2007-07-11 21:46:42Z mike $".
jlovellef416fc2006-01-13 01:51:53 +000050 */