]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/util.h
Import CUPS v1.7.1
[thirdparty/cups.git] / scheduler / util.h
CommitLineData
ef416fc2 1/*
61515785 2 * "$Id: util.h 10996 2013-05-29 11:51:34Z msweet $"
ef416fc2 3 *
10d09e33 4 * Mini-daemon utility definitions for CUPS.
ef416fc2 5 *
22c9029b 6 * Copyright 2007-2011 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
eac3a0a0 23# include <cups/array-private.h>
b9faaae1 24# include <cups/file-private.h>
ef416fc2 25# include <signal.h>
ef416fc2 26
27
4509bb49
MS
28/*
29 * C++ magic...
30 */
31
32# ifdef __cplusplus
33extern "C" {
34# endif /* __cplusplus */
35
36
37/*
38 * Types...
39 */
40
41typedef int (*cupsd_compare_func_t)(const void *, const void *);
42
43
ef416fc2 44/*
45 * Prototypes...
46 */
47
c934a06c 48extern int cupsdCompareNames(const char *s, const char *t);
ed6e7faf 49extern cups_array_t *cupsdCreateStringsArray(const char *s);
c934a06c
MS
50extern int cupsdExec(const char *command, char **argv);
51extern cups_file_t *cupsdPipeCommand(int *pid, const char *command,
52 char **argv, int user);
53extern void cupsdSendIPPGroup(ipp_tag_t group_tag);
54extern void cupsdSendIPPHeader(ipp_status_t status_code,
55 int request_id);
56extern void cupsdSendIPPInteger(ipp_tag_t value_tag,
57 const char *name, int value);
58extern void cupsdSendIPPString(ipp_tag_t value_tag,
59 const char *name, const char *value);
60extern void cupsdSendIPPTrailer(void);
ef416fc2 61
62
4509bb49
MS
63# ifdef __cplusplus
64}
65# endif /* __cplusplus */
66
ef416fc2 67#endif /* !_CUPSD_UTIL_H_ */
68
69/*
61515785 70 * End of "$Id: util.h 10996 2013-05-29 11:51:34Z msweet $".
ef416fc2 71 */