]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | /* |
7e86f2f6 | 2 | * Mini-daemon utility definitions for CUPS. |
ef416fc2 | 3 | * |
7e86f2f6 MS |
4 | * Copyright 2007-2014 by Apple Inc. |
5 | * Copyright 1997-2005 by Easy Software Products. | |
ef416fc2 | 6 | * |
e3101897 | 7 | * Licensed under Apache License v2.0. See the file "LICENSE" for more information. |
ef416fc2 | 8 | */ |
9 | ||
10 | #ifndef _CUPSD_UTIL_H_ | |
11 | # define _CUPSD_UTIL_H_ | |
12 | ||
13 | /* | |
14 | * Include necessary headers... | |
15 | */ | |
16 | ||
eac3a0a0 | 17 | # include <cups/array-private.h> |
b9faaae1 | 18 | # include <cups/file-private.h> |
ef416fc2 | 19 | # include <signal.h> |
ef416fc2 | 20 | |
21 | ||
4509bb49 MS |
22 | /* |
23 | * C++ magic... | |
24 | */ | |
25 | ||
26 | # ifdef __cplusplus | |
27 | extern "C" { | |
28 | # endif /* __cplusplus */ | |
29 | ||
30 | ||
31 | /* | |
32 | * Types... | |
33 | */ | |
34 | ||
35 | typedef int (*cupsd_compare_func_t)(const void *, const void *); | |
36 | ||
37 | ||
ef416fc2 | 38 | /* |
39 | * Prototypes... | |
40 | */ | |
41 | ||
c934a06c | 42 | extern int cupsdCompareNames(const char *s, const char *t); |
ed6e7faf | 43 | extern cups_array_t *cupsdCreateStringsArray(const char *s); |
c934a06c MS |
44 | extern int cupsdExec(const char *command, char **argv); |
45 | extern cups_file_t *cupsdPipeCommand(int *pid, const char *command, | |
7e86f2f6 | 46 | char **argv, uid_t user); |
c934a06c MS |
47 | extern void cupsdSendIPPGroup(ipp_tag_t group_tag); |
48 | extern void cupsdSendIPPHeader(ipp_status_t status_code, | |
49 | int request_id); | |
50 | extern void cupsdSendIPPInteger(ipp_tag_t value_tag, | |
51 | const char *name, int value); | |
52 | extern void cupsdSendIPPString(ipp_tag_t value_tag, | |
53 | const char *name, const char *value); | |
54 | extern void cupsdSendIPPTrailer(void); | |
ef416fc2 | 55 | |
56 | ||
4509bb49 MS |
57 | # ifdef __cplusplus |
58 | } | |
59 | # endif /* __cplusplus */ | |
60 | ||
ef416fc2 | 61 | #endif /* !_CUPSD_UTIL_H_ */ |