]>
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 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
15 #define CUPSD_SB_BUFFER_SIZE 2048 /* Bytes for job status buffer */
19 * Types and structures...
22 typedef struct /**** Status buffer */
24 int fd
; /* File descriptor to read from */
25 char prefix
[64]; /* Prefix for log messages */
26 int bufused
; /* How much is used in buffer */
27 char buffer
[CUPSD_SB_BUFFER_SIZE
]; /* Buffer */
35 extern void cupsdStatBufDelete(cupsd_statbuf_t
*sb
);
36 extern cupsd_statbuf_t
*cupsdStatBufNew(int fd
, const char *prefix
, ...);
37 extern char *cupsdStatBufUpdate(cupsd_statbuf_t
*sb
, int *loglevel
,
38 char *line
, int linelen
);