]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/statbuf.h
2 * Status buffer definitions for the CUPS scheduler.
4 * Copyright 2007-2010 by Apple Inc.
5 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
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/".
19 #define CUPSD_SB_BUFFER_SIZE 2048 /* Bytes for job status buffer */
23 * Types and structures...
26 typedef struct /**** Status buffer */
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 */
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
);