]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/statbuf.h
2 * "$Id: statbuf.h 7674 2008-06-18 23:18:32Z mike $"
4 * Status buffer definitions for the Common UNIX Printing System (CUPS)
7 * Copyright 2007-2008 by Apple Inc.
8 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
10 * These coded instructions, statements, and computer programs are the
11 * 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/".
22 #define CUPSD_SB_BUFFER_SIZE 1024 /* Bytes or job status buffer */
26 * Types and structures...
29 typedef struct /**** Status buffer */
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 */
42 extern void cupsdStatBufDelete(cupsd_statbuf_t
*sb
);
43 extern cupsd_statbuf_t
*cupsdStatBufNew(int fd
, const char *prefix
, ...);
44 extern char *cupsdStatBufUpdate(cupsd_statbuf_t
*sb
, int *loglevel
,
45 char *line
, int linelen
);
49 * End of "$Id: statbuf.h 7674 2008-06-18 23:18:32Z mike $".