]>
git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/statbuf.h
1ca227213756fe607ae8bc13fb9f3ce3fba99c36
2 * "$Id: statbuf.h 7674 2008-06-18 23:18:32Z mike $"
4 * Status buffer definitions for the CUPS scheduler.
6 * Copyright 2007-2010 by Apple Inc.
7 * Copyright 1997-2005 by Easy Software Products, all rights reserved.
9 * These coded instructions, statements, and computer programs are the
10 * property of Apple Inc. and are protected by Federal copyright
11 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 * which should have been included with this file. If this file is
13 * file is missing or damaged, see the license at "http://www.cups.org/".
21 #define CUPSD_SB_BUFFER_SIZE 2048 /* Bytes for job status buffer */
25 * Types and structures...
28 typedef struct /**** Status buffer */
30 int fd
; /* File descriptor to read from */
31 char prefix
[64]; /* Prefix for log messages */
32 int bufused
; /* How much is used in buffer */
33 char buffer
[CUPSD_SB_BUFFER_SIZE
]; /* Buffer */
41 extern void cupsdStatBufDelete(cupsd_statbuf_t
*sb
);
42 extern cupsd_statbuf_t
*cupsdStatBufNew(int fd
, const char *prefix
, ...);
43 extern char *cupsdStatBufUpdate(cupsd_statbuf_t
*sb
, int *loglevel
,
44 char *line
, int linelen
);
48 * End of "$Id: statbuf.h 7674 2008-06-18 23:18:32Z mike $".