]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
75bd9771 | 2 | * "$Id: statbuf.h 7674 2008-06-18 23:18:32Z mike $" |
ef416fc2 | 3 | * |
4 | * Status buffer definitions for the Common UNIX Printing System (CUPS) | |
5 | * scheduler. | |
6 | * | |
75bd9771 | 7 | * Copyright 2007-2008 by Apple Inc. |
ef416fc2 | 8 | * Copyright 1997-2005 by Easy Software Products, all rights reserved. |
9 | * | |
10 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
ef416fc2 | 15 | */ |
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 | ||
29 | typedef 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 | ||
ef416fc2 | 42 | extern void cupsdStatBufDelete(cupsd_statbuf_t *sb); |
75bd9771 | 43 | extern cupsd_statbuf_t *cupsdStatBufNew(int fd, const char *prefix, ...); |
ef416fc2 | 44 | extern char *cupsdStatBufUpdate(cupsd_statbuf_t *sb, int *loglevel, |
45 | char *line, int linelen); | |
46 | ||
47 | ||
48 | /* | |
75bd9771 | 49 | * End of "$Id: statbuf.h 7674 2008-06-18 23:18:32Z mike $". |
ef416fc2 | 50 | */ |