]> git.ipfire.org Git - thirdparty/cups.git/blob - scheduler/util.h
Merge pull request #1306 from weblate/weblate-cups-cups
[thirdparty/cups.git] / scheduler / util.h
1 /*
2 * Mini-daemon utility definitions for CUPS.
3 *
4 * Copyright © 2020-2024 by OpenPrinting.
5 * Copyright 2007-2014 by Apple Inc.
6 * Copyright 1997-2005 by Easy Software Products.
7 *
8 * Licensed under Apache License v2.0. See the file "LICENSE" for more information.
9 */
10
11 #ifndef _CUPSD_UTIL_H_
12 # define _CUPSD_UTIL_H_
13
14 /*
15 * Include necessary headers...
16 */
17
18 # include <cups/file-private.h>
19 # include <signal.h>
20
21
22 /*
23 * C++ magic...
24 */
25
26 # ifdef __cplusplus
27 extern "C" {
28 # endif /* __cplusplus */
29
30
31 /*
32 * Prototypes...
33 */
34
35 extern int cupsdCompareNames(const char *s, const char *t);
36 extern cups_array_t *cupsdCreateStringsArray(const char *s);
37 extern int cupsdExec(const char *command, char **argv);
38 extern cups_file_t *cupsdPipeCommand(int *pid, const char *command,
39 char **argv, uid_t user);
40 extern void cupsdSendIPPGroup(ipp_tag_t group_tag);
41 extern void cupsdSendIPPHeader(ipp_status_t status_code,
42 int request_id);
43 extern void cupsdSendIPPInteger(ipp_tag_t value_tag,
44 const char *name, int value);
45 extern void cupsdSendIPPString(ipp_tag_t value_tag,
46 const char *name, const char *value);
47 extern void cupsdSendIPPTrailer(void);
48
49
50 # ifdef __cplusplus
51 }
52 # endif /* __cplusplus */
53
54 #endif /* !_CUPSD_UTIL_H_ */