]> git.ipfire.org Git - thirdparty/cups.git/blame - scheduler/util.h
Merge changes from CUPS 1.4svn-r7715.
[thirdparty/cups.git] / scheduler / util.h
CommitLineData
ef416fc2 1/*
75bd9771 2 * "$Id: util.h 7621 2008-06-06 18:55:35Z mike $"
ef416fc2 3 *
4 * Mini-daemon utility definitions for the Common UNIX Printing System (CUPS).
5 *
c934a06c 6 * Copyright 2007-2008 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
23# include <cups/cups.h>
24# include <cups/file.h>
25# include <cups/string.h>
26# include <stdlib.h>
27# include <errno.h>
28# include <signal.h>
29# include <dirent.h>
30
31
4509bb49
MS
32/*
33 * C++ magic...
34 */
35
36# ifdef __cplusplus
37extern "C" {
38# endif /* __cplusplus */
39
40
41/*
42 * Types...
43 */
44
45typedef int (*cupsd_compare_func_t)(const void *, const void *);
46
47
ef416fc2 48/*
49 * Prototypes...
50 */
51
c934a06c
MS
52extern int cupsdCompareNames(const char *s, const char *t);
53extern int cupsdExec(const char *command, char **argv);
54extern cups_file_t *cupsdPipeCommand(int *pid, const char *command,
55 char **argv, int user);
56extern void cupsdSendIPPGroup(ipp_tag_t group_tag);
57extern void cupsdSendIPPHeader(ipp_status_t status_code,
58 int request_id);
59extern void cupsdSendIPPInteger(ipp_tag_t value_tag,
60 const char *name, int value);
61extern void cupsdSendIPPString(ipp_tag_t value_tag,
62 const char *name, const char *value);
63extern void cupsdSendIPPTrailer(void);
ef416fc2 64
65
4509bb49
MS
66# ifdef __cplusplus
67}
68# endif /* __cplusplus */
69
ef416fc2 70#endif /* !_CUPSD_UTIL_H_ */
71
72/*
75bd9771 73 * End of "$Id: util.h 7621 2008-06-06 18:55:35Z mike $".
ef416fc2 74 */