]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
b19ccc9e | 2 | * "$Id: util.h 7711 2008-07-02 04:39:27Z mike $" |
ef416fc2 | 3 | * |
4 | * Mini-daemon utility definitions for the Common UNIX Printing System (CUPS). | |
5 | * | |
b9faaae1 | 6 | * Copyright 2007-2009 by Apple Inc. |
ef416fc2 | 7 | * Copyright 1997-2005 by Easy Software Products. |
8 | * | |
9 | * These coded instructions, statements, and computer programs are the | |
bc44d920 | 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/". | |
ef416fc2 | 14 | */ |
15 | ||
16 | #ifndef _CUPSD_UTIL_H_ | |
17 | # define _CUPSD_UTIL_H_ | |
18 | ||
19 | /* | |
20 | * Include necessary headers... | |
21 | */ | |
22 | ||
b9faaae1 | 23 | # include <cups/file-private.h> |
ef416fc2 | 24 | # include <signal.h> |
ef416fc2 | 25 | |
26 | ||
4509bb49 MS |
27 | /* |
28 | * C++ magic... | |
29 | */ | |
30 | ||
31 | # ifdef __cplusplus | |
32 | extern "C" { | |
33 | # endif /* __cplusplus */ | |
34 | ||
35 | ||
36 | /* | |
37 | * Types... | |
38 | */ | |
39 | ||
40 | typedef int (*cupsd_compare_func_t)(const void *, const void *); | |
41 | ||
42 | ||
ef416fc2 | 43 | /* |
44 | * Prototypes... | |
45 | */ | |
46 | ||
c934a06c | 47 | extern int cupsdCompareNames(const char *s, const char *t); |
ed6e7faf | 48 | extern cups_array_t *cupsdCreateStringsArray(const char *s); |
c934a06c MS |
49 | extern int cupsdExec(const char *command, char **argv); |
50 | extern cups_file_t *cupsdPipeCommand(int *pid, const char *command, | |
51 | char **argv, int user); | |
52 | extern void cupsdSendIPPGroup(ipp_tag_t group_tag); | |
53 | extern void cupsdSendIPPHeader(ipp_status_t status_code, | |
54 | int request_id); | |
55 | extern void cupsdSendIPPInteger(ipp_tag_t value_tag, | |
56 | const char *name, int value); | |
57 | extern void cupsdSendIPPString(ipp_tag_t value_tag, | |
58 | const char *name, const char *value); | |
59 | extern void cupsdSendIPPTrailer(void); | |
ef416fc2 | 60 | |
61 | ||
4509bb49 MS |
62 | # ifdef __cplusplus |
63 | } | |
64 | # endif /* __cplusplus */ | |
65 | ||
ef416fc2 | 66 | #endif /* !_CUPSD_UTIL_H_ */ |
67 | ||
68 | /* | |
b19ccc9e | 69 | * End of "$Id: util.h 7711 2008-07-02 04:39:27Z mike $". |
ef416fc2 | 70 | */ |