]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/util.h
Remove all of the Subversion keywords from various source files.
[thirdparty/cups.git] / scheduler / util.h
CommitLineData
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 *
7e86f2f6
MS
7 * These coded instructions, statements, and computer programs are the
8 * property of Apple Inc. and are protected by Federal copyright
9 * law. Distribution and use rights are outlined in the file "LICENSE.txt"
10 * which should have been included with this file. If this file is
11 * file is missing or damaged, see the license at "http://www.cups.org/".
ef416fc2 12 */
13
14#ifndef _CUPSD_UTIL_H_
15# define _CUPSD_UTIL_H_
16
17/*
18 * Include necessary headers...
19 */
20
eac3a0a0 21# include <cups/array-private.h>
b9faaae1 22# include <cups/file-private.h>
ef416fc2 23# include <signal.h>
ef416fc2 24
25
4509bb49
MS
26/*
27 * C++ magic...
28 */
29
30# ifdef __cplusplus
31extern "C" {
32# endif /* __cplusplus */
33
34
35/*
36 * Types...
37 */
38
39typedef int (*cupsd_compare_func_t)(const void *, const void *);
40
41
ef416fc2 42/*
43 * Prototypes...
44 */
45
c934a06c 46extern int cupsdCompareNames(const char *s, const char *t);
ed6e7faf 47extern cups_array_t *cupsdCreateStringsArray(const char *s);
c934a06c
MS
48extern int cupsdExec(const char *command, char **argv);
49extern cups_file_t *cupsdPipeCommand(int *pid, const char *command,
7e86f2f6 50 char **argv, uid_t user);
c934a06c
MS
51extern void cupsdSendIPPGroup(ipp_tag_t group_tag);
52extern void cupsdSendIPPHeader(ipp_status_t status_code,
53 int request_id);
54extern void cupsdSendIPPInteger(ipp_tag_t value_tag,
55 const char *name, int value);
56extern void cupsdSendIPPString(ipp_tag_t value_tag,
57 const char *name, const char *value);
58extern void cupsdSendIPPTrailer(void);
ef416fc2 59
60
4509bb49
MS
61# ifdef __cplusplus
62}
63# endif /* __cplusplus */
64
ef416fc2 65#endif /* !_CUPSD_UTIL_H_ */